Hide menus in Settings instead of deleting them
parent
ae8b0afa10
commit
11aaf76a82
|
@ -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': [],
|
||||
},
|
||||
}
|
||||
|
|
|
@ -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>
|
|
@ -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…
Reference in New Issue