summaryrefslogtreecommitdiff
path: root/fixco_custom/views/brands_views.xml
blob: 09fc75a873b88ec4d7eb32ec3807e03408224e3e (plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<?xml version="1.0" encoding="utf-8"?>
<odoo>
    <record id="view_brands_form" model="ir.ui.view">
        <field name="name">brands.form</field>
        <field name="model">brands</field>
        <field name="arch" type="xml">
            <form string="Brand">
                <sheet>
                    <group>
                        <field name="name"/>
                    </group>
                    <notebook>
                        <page string="Products">
                            <field name="product_ids">
                                <tree editable="bottom">
                                    <field name="name"/>
                                    <field name="default_code"/>
                                    <field name="list_price"/>
                                </tree>
                            </field>
                        </page>
                        <page string="Categories">
                            <field name="category_ids">
                                <tree>
                                    <field name="name"/>
                                </tree>
                            </field>
                        </page>
                    </notebook>
                </sheet>
            </form>
        </field>
    </record>

    <record id="view_brands_tree" model="ir.ui.view">
        <field name="name">brands.tree</field>
        <field name="model">brands</field>
        <field name="arch" type="xml">
            <tree>
                <field name="name"/>
            </tree>
        </field>
    </record>

    <record id="brands_action" model="ir.actions.act_window">
        <field name="name">Brands</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">brands</field>
        <field name="view_mode">tree,form</field>
    </record>

    <menuitem
        id="menu_brands"
        name="Brands"
        parent="sale_management.menu_product_attribute_action"
        sequence="4"
        action="brands_action"
    />
</odoo>