~agilebg/openerp-product-attributes/adding_product_pack_7

« back to all changes in this revision

Viewing changes to product_pack/pack_view.xml

  • Committer: Alex Comba
  • Date: 2013-08-26 10:57:18 UTC
  • Revision ID: alex.comba@agilebg.com-20130826105718-y39b6zcz0zxmu48k
[REF] product_stock module porting to 7.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<openerp>
3
 
<data>
4
 
 
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">
13
 
                                <page string="Pack">
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"/>
17
 
                                        <label string=""/>
18
 
                                        <separator string="Pack Products" colspan="4"/>
19
 
                                        <field name="pack_line_ids" colspan="4" nolabel="1"/>
20
 
                                </page>
21
 
                        </notebook>
22
 
                </field>
23
 
        </record>
24
 
 
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"/>
34
 
                        </form>
35
 
                </field>
36
 
        </record>
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"/>
45
 
                        </tree>
46
 
                </field>
47
 
        </record>
48
 
</data>
 
3
        <data>
 
4
 
 
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">
 
12
                                        <page string="Pack">
 
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"/>
 
16
                                                <label string=""/>
 
17
                                                <separator string="Pack Products" colspan="4"/>
 
18
                                                <field name="pack_line_ids" colspan="4" nolabel="1"/>
 
19
                                        </page>
 
20
                                </notebook>
 
21
                        </field>
 
22
                </record>
 
23
 
 
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"/>
 
32
                                </form>
 
33
                        </field>
 
34
                </record>
 
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"/>
 
42
                                </tree>
 
43
                        </field>
 
44
                </record>
 
45
        </data>
49
46
</openerp>
50
47