Holger Brunn
11 years ago
7 changed files with 145 additions and 0 deletions
-
21decouple_oe_sa/__init__.py
-
53decouple_oe_sa/__openerp__.py
-
8decouple_oe_sa/data/ir_cron.xml
-
7decouple_oe_sa/data/ir_ui_menu.xml
-
20decouple_oe_sa/model/__init__.py
-
28decouple_oe_sa/model/publisher_warranty_contract.py
-
8decouple_oe_sa/static/src/xml/base.xml
@ -0,0 +1,21 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# OpenERP, Open Source Management Solution |
|||
# This module copyright (C) 2013 Therp BV (<http://therp.nl>). |
|||
# |
|||
# 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 <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
|||
import model |
@ -0,0 +1,53 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# OpenERP, Open Source Management Solution |
|||
# This module copyright (C) 2013 Therp BV (<http://therp.nl>). |
|||
# |
|||
# 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 <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
|||
{ |
|||
"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' : [], |
|||
}, |
|||
} |
@ -0,0 +1,8 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<openerp> |
|||
<data> |
|||
<record id="mail.ir_cron_module_update_notification" model="ir.cron"> |
|||
<field name="active" eval="False" /> |
|||
</record> |
|||
</data> |
|||
</openerp> |
@ -0,0 +1,7 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<openerp> |
|||
<data> |
|||
<delete model="ir.ui.menu" id="base.module_mi" /> |
|||
<delete model="ir.ui.menu" id="base.menu_module_updates" /> |
|||
</data> |
|||
</openerp> |
@ -0,0 +1,20 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# OpenERP, Open Source Management Solution |
|||
# This module copyright (C) 2013 Therp BV (<http://therp.nl>). |
|||
# |
|||
# 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 <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
@ -0,0 +1,28 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################## |
|||
# |
|||
# OpenERP, Open Source Management Solution |
|||
# This module copyright (C) 2013 Therp BV (<http://therp.nl>). |
|||
# |
|||
# 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 <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################## |
|||
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 |
@ -0,0 +1,8 @@ |
|||
<?xml version="1.0" encoding="UTF-8"?> |
|||
<templates> |
|||
<t t-extend="UserMenu"> |
|||
<t t-jquery="a[data-menu='account'], a[data-menu='help']"> |
|||
this.parent().remove(); |
|||
</t> |
|||
</t> |
|||
</templates> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue