Browse Source

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

pull/2/head
unknown 11 years ago
committed by Ronald Portier
parent
commit
92938b83c2
  1. 4
      disable_openerp_online/__openerp__.py
  2. 7
      disable_openerp_online/static/src/js/disable_openerp_online.js

4
disable_openerp_online/__openerp__.py

@ -20,7 +20,7 @@
############################################################################## ##############################################################################
{ {
"name" : "Remove openerp.com bindings", "name" : "Remove openerp.com bindings",
"version" : "1.0",
"version" : "1.1",
"author" : "Therp BV", "author" : "Therp BV",
"complexity": "normal", "complexity": "normal",
"description": """ "description": """
@ -30,6 +30,7 @@ come with the standard code:
* update notifier code is deactivated and the function is overwritten * update notifier code is deactivated and the function is overwritten
* apps and updates menu items in settings are removed * apps and updates menu items in settings are removed
* help and account menu items in user menu 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" : "", "category" : "",
"depends" : [ "depends" : [
@ -41,6 +42,7 @@ come with the standard code:
'data/ir_cron.xml', 'data/ir_cron.xml',
], ],
"js": [ "js": [
'static/src/js/disable_openerp_online.js',
], ],
"css": [ "css": [
], ],

7
disable_openerp_online/static/src/js/disable_openerp_online.js

@ -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() {}
});
};
Loading…
Cancel
Save