diff --git a/disable_openerp_online/__init__.py b/disable_openerp_online/__init__.py new file mode 100644 index 000000000..755cda011 --- /dev/null +++ b/disable_openerp_online/__init__.py @@ -0,0 +1,24 @@ +# -*- 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 + +from openerp.tools.misc import upload_data_thread +upload_data_thread.run = lambda x: None diff --git a/disable_openerp_online/__openerp__.py b/disable_openerp_online/__openerp__.py new file mode 100644 index 000000000..0f96c7ebf --- /dev/null +++ b/disable_openerp_online/__openerp__.py @@ -0,0 +1,55 @@ +# -*- 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/disable_openerp_online/data/ir_cron.xml b/disable_openerp_online/data/ir_cron.xml new file mode 100644 index 000000000..faa58ff60 --- /dev/null +++ b/disable_openerp_online/data/ir_cron.xml @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/disable_openerp_online/data/ir_ui_menu.xml b/disable_openerp_online/data/ir_ui_menu.xml new file mode 100644 index 000000000..72529f77a --- /dev/null +++ b/disable_openerp_online/data/ir_ui_menu.xml @@ -0,0 +1,7 @@ + + + + + + + diff --git a/disable_openerp_online/model/__init__.py b/disable_openerp_online/model/__init__.py new file mode 100644 index 000000000..a5c6ee5b0 --- /dev/null +++ b/disable_openerp_online/model/__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 publisher_warranty_contract diff --git a/disable_openerp_online/model/publisher_warranty_contract.py b/disable_openerp_online/model/publisher_warranty_contract.py new file mode 100644 index 000000000..1ff79e72a --- /dev/null +++ b/disable_openerp_online/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/disable_openerp_online/static/src/img/icon.png b/disable_openerp_online/static/src/img/icon.png new file mode 100644 index 000000000..7252e01ea Binary files /dev/null and b/disable_openerp_online/static/src/img/icon.png differ diff --git a/disable_openerp_online/static/src/xml/base.xml b/disable_openerp_online/static/src/xml/base.xml new file mode 100644 index 000000000..eec09444c --- /dev/null +++ b/disable_openerp_online/static/src/xml/base.xml @@ -0,0 +1,8 @@ + + + + + this.parent().remove(); + + +