summaryrefslogtreecommitdiff
path: root/fixco_custom/views/product_product.xml
blob: a622d3662ae88b33d4fb080627d2b5421e37bccb (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
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
    <data>
        <record id="product_normal_form_view_inherit" model="ir.ui.view">
            <field name="name">Product Template</field>
            <field name="model">product.product</field>
            <field name="inherit_id" ref="product.product_normal_form_view"/>
            <field name="arch" type="xml">
                <xpath expr="//header" position="inside">
                    <button name="action_open_pricelist_wizard"
                            type="object"
                            string="Create/Update Purchase Pricelist"
                            class="oe_highlight"/>
                </xpath>
                <field name="categ_id" position="after">
                    <field name="brand_id" />
                    <field name="barcode_box" />
                    <field name="qty_pcs_box" />
                    <field name="qr_code_variant" widget="image" readonly="True"/>
                    <field name="product_public_category_id" attrs="{'required': [('brand_id', '=', 3)]}"/>
                </field>
                <field name="uom_po_id" position="after">
                    <field name="qty_multiple" />
                </field>
                <notebook position="inside">
                    <page string="Bundling">
                        <field name="bundling_line_ids"/>
                    </page>
                </notebook>
            </field>
        </record>

        <record id="bundling_line_tree" model="ir.ui.view">
            <field name="name">bundling.line.tree</field>
            <field name="model">bundling.line</field>
            <field name="arch" type="xml">
                <tree editable="bottom">
                    <field name="variant_id" />
                    <field name="product_uom_qty" />
                    <field name="master_sku" />
                    <field name="price"/>
                </tree>
            </field>
        </record>

    </data>
</odoo>