60 lines
1.7 KiB
XML
60 lines
1.7 KiB
XML
<odoo>
|
|
<data>
|
|
<!-- explicit list view definition -->
|
|
<!--
|
|
<record model="ir.ui.view" id="template.list">
|
|
<field name="name">template list</field>
|
|
<field name="model">template.template</field>
|
|
<field name="arch" type="xml">
|
|
<tree>
|
|
<field name="name"/>
|
|
<field name="value"/>
|
|
<field name="value2"/>
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
-->
|
|
|
|
<!-- actions opening views on models -->
|
|
<!--
|
|
<record model="ir.actions.act_window" id="template.action_window">
|
|
<field name="name">template window</field>
|
|
<field name="res_model">template.template</field>
|
|
<field name="view_mode">tree,form</field>
|
|
</record>
|
|
-->
|
|
|
|
<!-- server action to the one above -->
|
|
<!--
|
|
<record model="ir.actions.server" id="template.action_server">
|
|
<field name="name">template server</field>
|
|
<field name="model_id" ref="model_template_template"/>
|
|
<field name="state">code</field>
|
|
<field name="code">
|
|
action = {
|
|
"type": "ir.actions.act_window",
|
|
"view_mode": "tree,form",
|
|
"res_model": model._name,
|
|
}
|
|
</field>
|
|
</record>
|
|
-->
|
|
|
|
<!-- Top menu item -->
|
|
<!--
|
|
<menuitem name="template" id="template.menu_root"/>
|
|
-->
|
|
<!-- menu categories -->
|
|
<!--
|
|
<menuitem name="Menu 1" id="template.menu_1" parent="template.menu_root"/>
|
|
<menuitem name="Menu 2" id="template.menu_2" parent="template.menu_root"/>
|
|
-->
|
|
<!-- actions -->
|
|
<!--
|
|
<menuitem name="List" id="template.menu_1_list" parent="template.menu_1"
|
|
action="template.action_window"/>
|
|
<menuitem name="Server to list" id="template" parent="template.menu_2"
|
|
action="template.action_server"/>
|
|
-->
|
|
</data>
|
|
</odoo> |