odoo_17.0.1/odoo/addons/base/views/base_menus.xml

54 lines
2.7 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<!-- Top menu item -->
<menuitem name="Settings"
id="menu_administration"
web_icon="base,static/description/settings.png"
sequence="550"
groups="base.group_erp_manager">
<menuitem id="menu_administration_shortcut" name="Custom Shortcuts" sequence="50"/>
<!-- FYI The group no_one on 'User & Companies' and 'Translations' is a FP/APR request -->
<menuitem id="menu_users" name="Users &amp; Companies" sequence="1"/>
<menuitem id="menu_translation" name="Translations" sequence="2" groups="base.group_no_one">
<menuitem id="menu_translation_app" name="Application Terms" sequence="4" groups="base.group_no_one"/>
<menuitem id="menu_translation_export" name="Import / Export" sequence="3" groups="base.group_no_one"/>
</menuitem>
<menuitem id="menu_config" name="General Settings" sequence='3'/>
<menuitem id="menu_custom" name="Technical" sequence="110" groups="base.group_no_one">
<menuitem id="next_id_2" name="User Interface"/>
<menuitem id="menu_email" name="Email" sequence="1"/>
<menuitem id="next_id_9" name="Database Structure"/>
<menuitem id="menu_automation" name="Automation"/>
<menuitem id="menu_security" name="Security" sequence="25"/>
<menuitem id="menu_ir_property" name="Parameters" sequence="24"/>
</menuitem>
</menuitem>
<menuitem id="menu_management" name="Apps" sequence="500" web_icon="base,static/description/modules.png" groups="base.group_system"/>
<menuitem id="base.menu_tests" name="Tests" sequence="1000" web_icon="test_exceptions,static/description/icon.png"/>
<record model="ir.ui.menu" id="base.menu_administration">
<field name="groups_id" eval="[Command.set([ref('group_system'), ref('group_erp_manager')])]"/>
</record>
<record id="action_client_base_menu" model="ir.actions.client">
<field name="name">Open Settings Menu</field>
<field name="tag">reload</field>
<field name="params" eval="{'menu_id': ref('base.menu_administration')}"/>
</record>
<record id="open_menu" model="ir.actions.todo">
<field name="name">Open Menu</field>
<field name="action_id" ref="action_client_base_menu"/>
<field name="sequence">100</field>
<field name="state">done</field>
</record>
<record id="action_open_website" model="ir.actions.act_url">
<field name="name">Home Menu</field>
<field name="target">self</field>
<field name="url">/web</field>
</record>
</odoo>