dashboard_menu_view.xml 1.7 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
<odoo>
    <record id="dashboard_menu_form_view" model="ir.ui.view">
        <field name="name">dashboard.menu.form.view</field>
        <field name="model">dashboard.menu</field>
        <field name="arch" type="xml">
            <form>
                <sheet>
                    <group>
                        <group>
                            <field name="name"/>
                            <field name="menu_id"/>
                            <field name="group_ids" widget="many2many_tags" invisible="1"/>
                            <field name="client_action" invisible="1"/>
                        </group>
                    </group>
                </sheet>
            </form>
        </field>
    </record>

    <record id="view_dashboard_menu_tree" model="ir.ui.view">
        <field name="name">dashboard.menu.tree.view</field>
        <field name="model">dashboard.menu</field>
        <field name="arch" type="xml">
            <tree>
                <field name="name"/>
                <field name="menu_id"/>
            </tree>
        </field>
    </record>

    <record id="action_dashboard_menu" model="ir.actions.act_window">
        <field name="name">Dashboard Menu</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">dashboard.menu</field>
        <field name="view_mode">tree,form</field>
    </record>
    <menuitem name="Configuration" id="menu_dynamic_dashboard_configuration" parent="odoo_dynamic_dashboard.menu_dashboard"
              sequence="3"/>
    <menuitem name="Dashboards" id="menu_dynamic_dashboard_menu" parent="odoo_dynamic_dashboard.menu_dynamic_dashboard_configuration"
              sequence="3" action="action_dashboard_menu"/>


</odoo>