Browse Source

[ADD] decouple_oe_sa

pull/2/head
Holger Brunn 12 years ago
parent
commit
9185053d4f
  1. 21
      decouple_oe_sa/__init__.py
  2. 53
      decouple_oe_sa/__openerp__.py
  3. 8
      decouple_oe_sa/data/ir_cron.xml
  4. 7
      decouple_oe_sa/data/ir_ui_menu.xml
  5. 20
      decouple_oe_sa/model/__init__.py
  6. 28
      decouple_oe_sa/model/publisher_warranty_contract.py
  7. 8
      decouple_oe_sa/static/src/xml/base.xml

21
decouple_oe_sa/__init__.py

@ -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

53
decouple_oe_sa/__openerp__.py

@ -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' : [],
},
}

8
decouple_oe_sa/data/ir_cron.xml

@ -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>

7
decouple_oe_sa/data/ir_ui_menu.xml

@ -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>

20
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 (<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/>.
#
##############################################################################

28
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 (<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

8
decouple_oe_sa/static/src/xml/base.xml

@ -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>
Loading…
Cancel
Save