From 9185053d4fe477fdce59bf499d6e85ec50ca1425 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Tue, 13 Aug 2013 12:18:09 +0200 Subject: [PATCH] [ADD] decouple_oe_sa --- decouple_oe_sa/__init__.py | 21 ++++++++ decouple_oe_sa/__openerp__.py | 53 +++++++++++++++++++ decouple_oe_sa/data/ir_cron.xml | 8 +++ decouple_oe_sa/data/ir_ui_menu.xml | 7 +++ decouple_oe_sa/model/__init__.py | 20 +++++++ .../model/publisher_warranty_contract.py | 28 ++++++++++ decouple_oe_sa/static/src/xml/base.xml | 8 +++ 7 files changed, 145 insertions(+) create mode 100644 decouple_oe_sa/__init__.py create mode 100644 decouple_oe_sa/__openerp__.py create mode 100644 decouple_oe_sa/data/ir_cron.xml create mode 100644 decouple_oe_sa/data/ir_ui_menu.xml create mode 100644 decouple_oe_sa/model/__init__.py create mode 100644 decouple_oe_sa/model/publisher_warranty_contract.py create mode 100644 decouple_oe_sa/static/src/xml/base.xml diff --git a/decouple_oe_sa/__init__.py b/decouple_oe_sa/__init__.py new file mode 100644 index 000000000..4d083ea93 --- /dev/null +++ b/decouple_oe_sa/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2013 Therp BV (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## +import model diff --git a/decouple_oe_sa/__openerp__.py b/decouple_oe_sa/__openerp__.py new file mode 100644 index 000000000..eb028bdf0 --- /dev/null +++ b/decouple_oe_sa/__openerp__.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2013 Therp BV (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## +{ + "name" : "Remove openerp.com bindings", + "version" : "1.0", + "author" : "Therp BV", + "complexity": "normal", + "description": """This module deactivates all bindings to openerp.com that + 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 + """, + "category" : "", + "depends" : [ + 'base', + 'mail', + ], + "data" : [ + 'data/ir_ui_menu.xml', + 'data/ir_cron.xml', + ], + "js": [ + ], + "css": [ + ], + "qweb": [ + 'static/src/xml/base.xml', + ], + "auto_install": False, + "installable": True, + "external_dependencies" : { + 'python' : [], + }, +} diff --git a/decouple_oe_sa/data/ir_cron.xml b/decouple_oe_sa/data/ir_cron.xml new file mode 100644 index 000000000..faa58ff60 --- /dev/null +++ b/decouple_oe_sa/data/ir_cron.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/decouple_oe_sa/data/ir_ui_menu.xml b/decouple_oe_sa/data/ir_ui_menu.xml new file mode 100644 index 000000000..72529f77a --- /dev/null +++ b/decouple_oe_sa/data/ir_ui_menu.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/decouple_oe_sa/model/__init__.py b/decouple_oe_sa/model/__init__.py new file mode 100644 index 000000000..f69741171 --- /dev/null +++ b/decouple_oe_sa/model/__init__.py @@ -0,0 +1,20 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2013 Therp BV (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## diff --git a/decouple_oe_sa/model/publisher_warranty_contract.py b/decouple_oe_sa/model/publisher_warranty_contract.py new file mode 100644 index 000000000..1ff79e72a --- /dev/null +++ b/decouple_oe_sa/model/publisher_warranty_contract.py @@ -0,0 +1,28 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# OpenERP, Open Source Management Solution +# This module copyright (C) 2013 Therp BV (). +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################## +from openerp.osv.orm import Model + + +class publisher_warranty_contract(Model): + _inherit = 'publisher_warranty.contract' + + def update_notification(self, cr, uid, ids, cron_mode=True, context=None): + pass diff --git a/decouple_oe_sa/static/src/xml/base.xml b/decouple_oe_sa/static/src/xml/base.xml new file mode 100644 index 000000000..eec09444c --- /dev/null +++ b/decouple_oe_sa/static/src/xml/base.xml @@ -0,0 +1,8 @@ + + + + + this.parent().remove(); + + +