Browse Source

Hide menus in Settings instead of deleting them

pull/65/head
Daniel Reis 10 years ago
parent
commit
11aaf76a82
  1. 8
      disable_openerp_online/__openerp__.py
  2. 7
      disable_openerp_online/data/ir_ui_menu.xml
  3. 15
      disable_openerp_online/views/ir_ui_menu.xml

8
disable_openerp_online/__openerp__.py

@ -28,7 +28,7 @@ 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
* apps and updates menu items in settings are hidden inside Tools\Parameters
* help and account menu items in user menu are removed
* prevent lookup of OPW for current database uuid and resulting
'unsupported' warning
@ -40,15 +40,11 @@ come with the standard code:
],
"data": [
"views/disable_openerp_online.xml",
'data/ir_ui_menu.xml',
'views/ir_ui_menu.xml',
'data/ir_cron.xml',
],
"qweb": [
'static/src/xml/base.xml',
],
"auto_install": False,
"installable": True,
"external_dependencies": {
'python': [],
},
}

7
disable_openerp_online/data/ir_ui_menu.xml

@ -1,7 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<delete model="ir.ui.menu" search="[('id', '=', ref('base.module_mi'))]" />
<delete model="ir.ui.menu" search="[('id', '=', ref('base.menu_module_updates'))]" />
</data>
</openerp>

15
disable_openerp_online/views/ir_ui_menu.xml

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<!-- Menus moved under Tools\Parameters -->
<record model="ir.ui.menu" id="base.module_mi">
<field name="parent_id" ref="base.menu_ir_property"/>
</record>
<record model="ir.ui.menu" id="base.menu_module_updates">
<field name="parent_id" ref="base.menu_ir_property"/>
</record>
</data>
</openerp>
Loading…
Cancel
Save