views.xml 1.79 KB
<odoo>
  <data>
    <!-- explicit list view definition -->
    <!--
    <record model="ir.ui.view" id="my_module.list">
      <field name="name">my_module list</field>
      <field name="model">my_module.my_module</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="my_module.action_window">
      <field name="name">my_module window</field>
      <field name="res_model">my_module.my_module</field>
      <field name="view_mode">tree,form</field>
    </record>
    -->

    <!-- server action to the one above -->
    <!--
    <record model="ir.actions.server" id="my_module.action_server">
      <field name="name">my_module server</field>
      <field name="model_id" ref="model_my_module_my_module"/>
      <field name="state">code</field>
      <field name="code">
        action = {
          "type": "ir.actions.act_window",
          "view_mode": "tree,form",
          "res_model": self._name,
        }
      </field>
    </record>
    -->

    <!-- Top menu item -->
    <!--
    <menuitem name="my_module" id="my_module.menu_root"/>
    -->
    <!-- menu categories -->
    <!--
    <menuitem name="Menu 1" id="my_module.menu_1" parent="my_module.menu_root"/>
    <menuitem name="Menu 2" id="my_module.menu_2" parent="my_module.menu_root"/>
    -->
    <!-- actions -->
    <!--
    <menuitem name="List" id="my_module.menu_1_list" parent="my_module.menu_1"
              action="my_module.action_window"/>
    <menuitem name="Server to list" id="my_module" parent="my_module.menu_2"
              action="my_module.action_server"/>
    -->
  </data>
</odoo>