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