[MRG] Prevent banner with "My OpenERP is not supported" message.

pull/2/head
unknown 2014-01-01 20:53:00 +01:00 committed by Ronald Portier
commit 92938b83c2
2 changed files with 10 additions and 1 deletions

View File

@ -20,7 +20,7 @@
##############################################################################
{
"name" : "Remove openerp.com bindings",
"version" : "1.0",
"version" : "1.1",
"author" : "Therp BV",
"complexity": "normal",
"description": """
@ -30,6 +30,7 @@ come with the standard code:
* update notifier code is deactivated and the function is overwritten
* apps and updates menu items in settings are removed
* help and account menu items in user menu are removed
* prevent lookup of OPW for current database uuid and resulting 'unsupported' warning
""",
"category" : "",
"depends" : [
@ -41,6 +42,7 @@ come with the standard code:
'data/ir_cron.xml',
],
"js": [
'static/src/js/disable_openerp_online.js',
],
"css": [
],

View File

@ -0,0 +1,7 @@
openerp.disable_openerp_online = function(instance) {
// Disabling the lookup of a valid OPW for the dbuuid,
// resulting in 'Your OpenERP is not supported'
instance.web.WebClient.include({
show_annoucement_bar: function() {}
});
};