Files
app-odoo/app_sample/views/menu_views.xml
2023-10-09 01:39:01 +08:00

35 lines
1.5 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!-- Sample样例-->
<!-- Root根菜单This Menu Item will appear in the Upper bar, That's why It needs NO parent or action -->
<menuitem id="module_new_root" name="Module New Root"
web_icon="app_sample,static/description/icon.png"
groups="group_app_user"
sequence="90"/>
<!-- Category,菜单分组This Menu Item Must have a parent -->
<menuitem id="module_new_cat" name="Module New Category"
parent="module_new_root"
sequence="91"/>
<!-- Action操作菜单This Menu Item must have a parent and an action -->
<!-- model.new Menu -->
<menuitem id="menu_model_new" name="Model New"
parent="module_new_cat"
sequence="92"
action="action_model_new"/>
<menuitem id="menu_model_new_report" name="Model New Report"
parent="module_new_cat"
sequence="93"
action="action_model_new_report"/>
<!-- Exist Menu改当前存在菜单Change exist menu, use context if you are using multi language-->
<!-- <record id="Exist_ID_menu" model="ir.ui.menu" context="{'lang': 'zh_CN}">-->
<!-- <field name="groups_id"-->
<!-- eval="[(6,0,[ref('Exist_ID')])]"/>-->
<!-- </record>-->
</data>
</odoo>