1
1
<?xml version="1.0" encoding="utf-8"?>
5
<!-- Product view modification -->
6
<record model="ir.ui.view" id="nan_product_pack_form">
7
<field name="name">product.product.pack.form</field>
8
<field name="model">product.product</field>
9
<field name="type">form</field>
10
<field name="inherit_id" ref="product.product_normal_form_view" />
11
<field name="arch" type="xml">
12
<notebook position="inside">
14
<label string="If you add products in the 'Pack Products' field, all those products will be added automatically when a new quotation or order is created." colspan="4"/>
15
<field name="stock_depends"/>
16
<field name="pack_fixed_price"/>
18
<separator string="Pack Products" colspan="4"/>
19
<field name="pack_line_ids" colspan="4" nolabel="1"/>
25
<!-- product.pack.line -->
26
<record model="ir.ui.view" id="product_pack_line_form">
27
<field name="name">product.pack.line.form</field>
28
<field name="model">product.pack.line</field>
29
<field name="type">form</field>
30
<field name="arch" type="xml">
31
<form string="Pack Product Line">
32
<field name="quantity"/>
33
<field name="product_id"/>
37
<record model="ir.ui.view" id="product_pack_line_tree">
38
<field name="name">product.pack.line.tree</field>
39
<field name="model">product.pack.line</field>
40
<field name="type">tree</field>
41
<field name="arch" type="xml">
42
<tree string="Pack Product Lines">
43
<field name="quantity"/>
44
<field name="product_id"/>
5
<!-- Product view modification -->
6
<record model="ir.ui.view" id="nan_product_pack_form">
7
<field name="name">product.product.pack.form</field>
8
<field name="model">product.product</field>
9
<field name="inherit_id" ref="product.product_normal_form_view" />
10
<field name="arch" type="xml">
11
<notebook position="inside">
13
<label string="If you add products in the 'Pack Products' field, all those products will be added automatically when a new quotation or order is created." colspan="4"/>
14
<field name="stock_depends"/>
15
<field name="pack_fixed_price"/>
17
<separator string="Pack Products" colspan="4"/>
18
<field name="pack_line_ids" colspan="4" nolabel="1"/>
24
<!-- product.pack.line -->
25
<record model="ir.ui.view" id="product_pack_line_form">
26
<field name="name">product.pack.line.form</field>
27
<field name="model">product.pack.line</field>
28
<field name="arch" type="xml">
29
<form string="Pack Product Line">
30
<field name="quantity"/>
31
<field name="product_id"/>
35
<record model="ir.ui.view" id="product_pack_line_tree">
36
<field name="name">product.pack.line.tree</field>
37
<field name="model">product.pack.line</field>
38
<field name="arch" type="xml">
39
<tree string="Pack Product Lines">
40
<field name="quantity"/>
41
<field name="product_id"/>