From 8d49bd445a6d9f1f9720a3606a4d2345da4b950f Mon Sep 17 00:00:00 2001 From: Bui Ngoc Tu Date: Fri, 18 Mar 2016 18:18:45 +0700 Subject: [PATCH 1/5] [MIG] Migrate the module disable_openerp_online to v9 --- disable_openerp_online/__openerp__.py | 4 ++-- .../static/src/js/disable_openerp_online.js | 16 +++++++++------- disable_openerp_online/static/src/xml/base.xml | 2 +- .../views/disable_openerp_online.xml | 5 ++++- disable_openerp_online/views/ir_ui_menu.xml | 2 +- 5 files changed, 17 insertions(+), 12 deletions(-) diff --git a/disable_openerp_online/__openerp__.py b/disable_openerp_online/__openerp__.py index ed4cedda7..e5ae8b6eb 100644 --- a/disable_openerp_online/__openerp__.py +++ b/disable_openerp_online/__openerp__.py @@ -20,7 +20,7 @@ ############################################################################## { "name": "Remove odoo.com bindings", - "version": "8.0.1.1.0", + "version": "9.0.0.1.0", "author": "Therp BV,Odoo Community Association (OCA)", "license": "AGPL-3", "complexity": "normal", @@ -47,5 +47,5 @@ come with the standard code: "qweb": [ 'static/src/xml/base.xml', ], - 'installable': False, + 'installable': True, } 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 d028ae72a..d728e3557 100644 --- a/disable_openerp_online/static/src/js/disable_openerp_online.js +++ b/disable_openerp_online/static/src/js/disable_openerp_online.js @@ -1,7 +1,9 @@ -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() {} - }); -}; +odoo.define('disable_openerp_online.announcement', function (require) { + "use strict"; + var WebClient = require('web.WebClient'); + WebClient.include({ + show_announcement_bar: function() { + // do nothing here + } + }); +}); diff --git a/disable_openerp_online/static/src/xml/base.xml b/disable_openerp_online/static/src/xml/base.xml index eec09444c..ad5685077 100644 --- a/disable_openerp_online/static/src/xml/base.xml +++ b/disable_openerp_online/static/src/xml/base.xml @@ -1,7 +1,7 @@ - + this.parent().remove(); diff --git a/disable_openerp_online/views/disable_openerp_online.xml b/disable_openerp_online/views/disable_openerp_online.xml index 038d8d428..373b63598 100644 --- a/disable_openerp_online/views/disable_openerp_online.xml +++ b/disable_openerp_online/views/disable_openerp_online.xml @@ -1,7 +1,10 @@ -