~openerp-community/openobject-addons/trunk-addons-community

« back to all changes in this revision

Viewing changes to product_hardware_revision/product_view.xml

  • Committer: Alexis de Lattre
  • Date: 2011-05-24 16:13:24 UTC
  • Revision ID: alexis@via.ecp.fr-20110524161324-4j51rz2usm7jmz6z
Add help on fields
Move hardware revisions to a dedicated tab.

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
 
        <record id="view_product_hardware_revision_form" model="ir.ui.view">
5
 
            <field name="name">view_product_hardware_revision_form</field>
6
 
            <field name="model">product.product</field>
7
 
            <field name="type">form</field>
8
 
            <field name="inherit_id" ref="stock.view_normal_stock_property_form"/>
9
 
            <field name="priority">22</field>
10
 
            <field name="arch" type="xml">
11
 
                <field name="unique_production_number" position="after">
12
 
                                <field name="hardware_revision_ids" string="Hardware Revisions" nolabel="1">
13
 
                                        <tree string="Hardware Revisions">
14
 
                                                <field name="name" />
15
 
                                                <field name="revision" />
16
 
                                        </tree>
17
 
                                        <form string="Hardware Revisions">
18
 
                                                <field name="name" />
19
 
                                                <field name="revision" />
20
 
                                        </form>
21
 
                                </field>
22
 
                                <field name="current_default_revision_id" />
23
 
                </field>
24
 
            </field>
25
 
        </record>
26
 
        <record id="view_product_template_hardware_revision_form" model="ir.ui.view">
27
 
            <field name="name">view_product_template_hardware_revision_form</field>
28
 
            <field name="model">product.template</field>
29
 
            <field name="type">form</field>
30
 
            <field name="inherit_id" ref="product.product_template_form_view"/>
31
 
            <field name="priority">22</field>
32
 
            <field name="arch" type="xml">
33
 
                <group name="uos" position="after">
34
 
                    <field name="hardware_revision_ids" string="Hardware Revisions" nolabel="1">
35
 
                        <tree string="Hardware Revisions">
36
 
                            <field name="name" />
37
 
                            <field name="revision" />
38
 
                        </tree>
39
 
                        <form string="Hardware Revisions">
40
 
                            <field name="name" />
41
 
                            <field name="revision" />
42
 
                        </form>
43
 
                    </field>
44
 
                    <field name="current_default_revision_id" />
45
 
                </group>
46
 
            </field>
47
 
        </record>
48
 
 
49
 
 
50
 
     </data>
 
3
<data>
 
4
 
 
5
<record id="product_hardware_revision_form" model="ir.ui.view">
 
6
    <field name="name">product_hardware_revision_form</field>
 
7
    <field name="model">product.hardware.revision</field>
 
8
    <field name="type">form</field>
 
9
    <field name="arch" type="xml">
 
10
        <form string="Product hardware revisions">
 
11
            <field name="name" select="1" />
 
12
            <field name="revision" select="1" />
 
13
        </form>
 
14
    </field>
 
15
</record>
 
16
 
 
17
<record id="product_hardware_revision_tree" model="ir.ui.view">
 
18
    <field name="name">product_hardware_revision_tree</field>
 
19
    <field name="model">product.hardware.revision</field>
 
20
    <field name="type">tree</field>
 
21
    <field name="arch" type="xml">
 
22
        <tree string="Product hardware revisions">
 
23
            <field name="name" />
 
24
            <field name="revision" />
 
25
        </tree>
 
26
    </field>
 
27
</record>
 
28
 
 
29
 
 
30
<record id="view_product_hardware_revision_form" model="ir.ui.view">
 
31
    <field name="name">product_hardware_revision_product_product_form</field>
 
32
    <field name="model">product.product</field>
 
33
    <field name="type">form</field>
 
34
    <field name="inherit_id" ref="product.product_normal_form_view"/>
 
35
    <field name="priority">22</field>
 
36
    <field name="arch" type="xml">
 
37
        <page string="Information" position="after">
 
38
            <page string="Hardware revisions">
 
39
                <field name="current_default_revision_id" />
 
40
                <field name="hardware_revision_ids" nolabel="1" colspan="4"/>
 
41
            </page>
 
42
        </page>
 
43
    </field>
 
44
</record>
 
45
 
 
46
<record id="view_product_template_hardware_revision_form" model="ir.ui.view">
 
47
    <field name="name">product_hardware_revision_product_template_form</field>
 
48
    <field name="model">product.template</field>
 
49
    <field name="type">form</field>
 
50
    <field name="inherit_id" ref="product.product_template_form_view"/>
 
51
    <field name="priority">22</field>
 
52
    <field name="arch" type="xml">
 
53
        <page string="Information">
 
54
            <page string="Hardware revisions">
 
55
                <field name="current_default_revision_id" />
 
56
                <field name="hardware_revision_ids" nolabel="1" colspan="4" />
 
57
            </page>
 
58
        </page>
 
59
    </field>
 
60
</record>
 
61
 
 
62
 
 
63
</data>
51
64
</openerp>