← Back to team overview

openerp-community-reviewer team mailing list archive

lp:~therp-nl/server-env-tools/7.0-my_OpenERP_is_not_unsupported into lp:server-env-tools

 

Stefan Rijnhart (Therp) has proposed merging lp:~therp-nl/server-env-tools/7.0-my_OpenERP_is_not_unsupported into lp:server-env-tools.

Requested reviews:
  Server Environment And Tools Core Editors (server-env-tools-core-editors)

For more details, see:
https://code.launchpad.net/~therp-nl/server-env-tools/7.0-my_OpenERP_is_not_unsupported/+merge/199896
-- 
https://code.launchpad.net/~therp-nl/server-env-tools/7.0-my_OpenERP_is_not_unsupported/+merge/199896
Your team Server Environment And Tools Core Editors is requested to review the proposed merge of lp:~therp-nl/server-env-tools/7.0-my_OpenERP_is_not_unsupported into lp:server-env-tools.
=== modified file 'disable_openerp_online/__openerp__.py'
--- disable_openerp_online/__openerp__.py	2013-08-14 07:48:23 +0000
+++ disable_openerp_online/__openerp__.py	2013-12-21 13:39:10 +0000
@@ -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 @@
 * 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 @@
         'data/ir_cron.xml',
     ],
     "js": [
+        'static/src/js/disable_openerp_online.js',
     ],
     "css": [
     ],

=== added directory 'disable_openerp_online/static/src/js'
=== added file 'disable_openerp_online/static/src/js/disable_openerp_online.js'
--- disable_openerp_online/static/src/js/disable_openerp_online.js	1970-01-01 00:00:00 +0000
+++ disable_openerp_online/static/src/js/disable_openerp_online.js	2013-12-21 13:39:10 +0000
@@ -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() {}
+    });
+};


Follow ups