From ca894fbec0bc92e11a9efadc0ee4bcb2e561fbb8 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Sat, 21 Dec 2013 14:30:55 +0100 Subject: [PATCH 1/4] [ADD] Prevent database UUID lookup at OpenERP.com --- disable_openerp_online/__openerp__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/disable_openerp_online/__openerp__.py b/disable_openerp_online/__openerp__.py index 0f96c7ebf..6db1ad348 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 resultin '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": [ ], From 2cc70b0f53f3f862f6739f3a95d8138ed58d8c14 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Sat, 21 Dec 2013 14:32:52 +0100 Subject: [PATCH 2/4] [FIX] Add js file --- .../static/src/js/disable_openerp_online.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 disable_openerp_online/static/src/js/disable_openerp_online.js 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..a3de81982 --- /dev/null +++ b/disable_openerp_online/static/src/js/disable_openerp_online.js @@ -0,0 +1,8 @@ +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() {} + }); +} + From 1651f6331d920676828ad3e2822d1bf6727cabb2 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Sat, 21 Dec 2013 14:38:57 +0100 Subject: [PATCH 3/4] [FIX] Style --- disable_openerp_online/static/src/js/disable_openerp_online.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/disable_openerp_online/static/src/js/disable_openerp_online.js b/disable_openerp_online/static/src/js/disable_openerp_online.js index a3de81982..d028ae72a 100644 --- a/disable_openerp_online/static/src/js/disable_openerp_online.js +++ b/disable_openerp_online/static/src/js/disable_openerp_online.js @@ -4,5 +4,4 @@ openerp.disable_openerp_online = function(instance) { instance.web.WebClient.include({ show_annoucement_bar: function() {} }); -} - +}; From 1533c186c69915435ea56e9f5cb817e8e1096bb9 Mon Sep 17 00:00:00 2001 From: Stefan Rijnhart Date: Sat, 21 Dec 2013 15:01:48 +0100 Subject: [PATCH 4/4] [FIX] Typo --- disable_openerp_online/__openerp__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disable_openerp_online/__openerp__.py b/disable_openerp_online/__openerp__.py index 6db1ad348..17ddaeafd 100644 --- a/disable_openerp_online/__openerp__.py +++ b/disable_openerp_online/__openerp__.py @@ -30,7 +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 resultin 'unsupported' warning +* prevent lookup of OPW for current database uuid and resulting 'unsupported' warning """, "category" : "", "depends" : [