diff --git a/disable_openerp_online/__openerp__.py b/disable_openerp_online/__openerp__.py index 0f96c7ebf..17ddaeafd 100644 --- a/disable_openerp_online/__openerp__.py +++ b/disable_openerp_online/__openerp__.py @@ -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": [ ], diff --git a/disable_openerp_online/static/src/js/disable_openerp_online.js b/disable_openerp_online/static/src/js/disable_openerp_online.js new file mode 100644 index 000000000..d028ae72a --- /dev/null +++ b/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() {} + }); +};