~vauxoo/addons-vauxoo/8.0-import_tax_tariff-dev-yani-rev-2

« back to all changes in this revision

Viewing changes to mrp_advance/mrp_bom_cost/mrp_po_view.xml

  • Committer: Rodolfo Lopez
  • Date: 2012-09-12 23:27:15 UTC
  • mto: This revision was merged to the branch mainline in revision 441.
  • Revision ID: rodo@vauxoo.com-20120912232715-dv31jzd7eiuu3ihd
[ADD][mrp_advance/mrp_bom_cost]

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<openerp>
 
3
    <data>
 
4
    <menuitem id="menu_mrp_product" name="Products" parent="base.menu_mrp_root" sequence="1"/>
 
5
<!--Product
 
6
    new sub-menu:Products Assets, Products for Sales.
 
7
    -->
 
8
        <record id="product_normal_action_assets" model="ir.actions.act_window">
 
9
            <field name="name">Products Assets</field>
 
10
            <field name="type">ir.actions.act_window</field>
 
11
            <field name="res_model">product.product</field>
 
12
            <field name="domain">[('product_active','=',True)]</field>
 
13
            <field name="view_type">form</field>
 
14
            <field name="view_mode">tree,form</field>
 
15
        </record>
 
16
        <menuitem action="product_normal_action_assets" id="menu_products_assets" parent="menu_mrp_product" sequence="18"/>
 
17
 
 
18
        <record id="product_normal_action_sales" model="ir.actions.act_window">
 
19
            <field name="name">Products for Sales</field>
 
20
            <field name="type">ir.actions.act_window</field>
 
21
            <field name="res_model">product.product</field>
 
22
            <field name="domain">[('product_active','=',False)]</field>
 
23
            <field name="view_type">form</field>
 
24
            <field name="view_mode">tree,form</field>
 
25
        </record>
 
26
        <menuitem action="product_normal_action_sales" id="menu_products_sales" parent="menu_mrp_product" sequence="18"/>
 
27
 
 
28
    <!--Product
 
29
    new field of type active in product.template
 
30
    -->
 
31
        <record id="product_normal_form_active" model="ir.ui.view">
 
32
            <field name="name">product.normal.form_active</field>
 
33
            <field name="model">product.product</field>
 
34
            <field name="type">form</field>
 
35
            <field name="inherit_id" ref="product.product_normal_form_view"/>
 
36
            <field name="arch" type="xml">
 
37
                <field name="product_manager" position="after">
 
38
                    <field name="product_active" select="2"/>
 
39
                </field> 
 
40
            </field>
 
41
        </record>
 
42
 
 
43
        <record id="product_template_form_view_active" model="ir.ui.view">
 
44
            <field name="name">product.template.product.form_active</field>
 
45
            <field name="model">product.template</field>
 
46
            <field name="type">form</field>
 
47
            <field name="inherit_id" ref="product.product_template_form_view"/>
 
48
            <field name="arch" type="xml">
 
49
                <field name="product_manager" position="after">
 
50
                    <field name="product_active" select="2"/>
 
51
                </field> 
 
52
            </field>
 
53
        </record>
 
54
        
 
55
    <!--MRP
 
56
    Bill of Materials
 
57
    -->
 
58
 
 
59
   <!-- bom Assets -->
 
60
        <record id="mrp_bom_form_action_assets" model="ir.actions.act_window">
 
61
            <field name="name">Bill of Materials Assets</field>
 
62
            <field name="type">ir.actions.act_window</field>
 
63
            <field name="res_model">mrp.bom</field>
 
64
            <field name="view_type">form</field>
 
65
            <field name="domain">[('bom_id','=',False),('bom_assets','=',True)]</field>
 
66
        </record>
 
67
        <menuitem action="mrp_bom_form_action_assets" id="menu_mrp_bom_form_action_assets" parent="mrp.menu_mrp_configuration"/>
 
68
 
 
69
        <record id="mrp_bom_form_action_new_assets" model="ir.actions.act_window">
 
70
            <field name="name">New Bill of Materials Assets</field>
 
71
            <field name="type">ir.actions.act_window</field>
 
72
            <field name="res_model">mrp.bom</field>
 
73
            <field name="view_type">form</field>
 
74
            <field name="view_mode">form,tree</field>
 
75
            <field name="domain">[('bom_id','=',False),('bom_assets','=',True)]</field>
 
76
            <field name="context">{'bom_assets': True}</field>
 
77
        </record>
 
78
        <menuitem action="mrp_bom_form_action_new_assets" id="menu_mrp_bom_form_action_new_assets" parent="menu_mrp_bom_form_action_assets"/> 
 
79
 
 
80
<!-- bom for Sales -->
 
81
        <record id="mrp_bom_form_action_for_sales" model="ir.actions.act_window">
 
82
            <field name="name">Bill of Materials for Sales</field>
 
83
            <field name="type">ir.actions.act_window</field>
 
84
            <field name="res_model">mrp.bom</field>
 
85
            <field name="view_type">form</field>
 
86
            <field name="domain">[('bom_id','=',False),('bom_assets','=',False)]</field>
 
87
        </record>
 
88
        <menuitem action="mrp_bom_form_action_for_sales" id="menu_mrp_bom_form_action_for_sales" parent="mrp.menu_mrp_configuration"/>
 
89
 
 
90
        <record id="mrp_bom_form_action_new_for_sales" model="ir.actions.act_window">
 
91
            <field name="name">New Bill of Materials for Sales</field>
 
92
            <field name="type">ir.actions.act_window</field>
 
93
            <field name="res_model">mrp.bom</field>
 
94
            <field name="view_type">form</field>
 
95
            <field name="view_mode">form,tree</field>
 
96
            <field name="domain">[('bom_id','=',False),('bom_assets','=',False)]</field>
 
97
            <field name="context">{'bom_assets': False}</field>
 
98
        </record>
 
99
        <menuitem action="mrp_bom_form_action_new_for_sales" id="menu_mrp_bom_form_action_new_for_sales" parent="menu_mrp_bom_form_action_for_sales"/>
 
100
 
 
101
<!-- field bom_assets 
 
102
            <record model="ir.ui.view" id="view_mrp_bom_form_cost_assets">
 
103
            <field name="name">mrp.bom.form.cost_assets</field>
 
104
            <field name="model">mrp.bom</field>
 
105
            <field name="type">form</field>
 
106
            <field name="inherit_id" ref="mrp.mrp_bom_form_view"/>
 
107
            <field name="arch" type="xml">
 
108
                <field name="type" position="after">
 
109
                    <field name="bom_assets" invisible='0'/>
 
110
                </field>                
 
111
            </field>
 
112
        </record>
 
113
-->
 
114
            <record model="ir.ui.view" id="view_mrp_bom_form_cost1">
 
115
            <field name="name">mrp.bom.form.cost_t1</field>
 
116
            <field name="model">mrp.bom</field>
 
117
            <field name="type">form</field>
 
118
            <field name="inherit_id" ref="mrp.mrp_bom_form_view"/>
 
119
            <field name="arch" type="xml">
 
120
                <field name="product_uom" position="before">
 
121
                    <field name="category_id" invisible='1'/>
 
122
                </field>                
 
123
            </field>
 
124
        </record>
 
125
 
 
126
            <record model="ir.ui.view" id="view_mrp_bom_form_cost2">
 
127
            <field name="name">mrp.bom.form.cost_t2</field>
 
128
            <field name="model">mrp.bom</field>
 
129
            <field name="type">form</field>
 
130
            <field name="inherit_id" ref="mrp.mrp_bom_form_view"/>
 
131
            <field name="arch" type="xml">
 
132
                <field name="product_uom" position="replace">
 
133
                    <field name="product_uom" required='1' domain="[('category_id','=',category_id)]"/>
 
134
                </field>                
 
135
            </field>
 
136
        </record>
 
137
 
 
138
        <record model="ir.ui.view" id="view_mrp_bom_form_cost">
 
139
            <field name="name">mrp.bom.form.cost_t</field>
 
140
            <field name="model">mrp.bom</field>
 
141
            <field name="type">form</field>
 
142
            <field name="inherit_id" ref="mrp.mrp_bom_form_view"/>
 
143
            <field name="arch" type="xml">
 
144
                <field name="bom_lines" position="after">
 
145
                    <field name="cost_t"/>
 
146
                    <field name="cost_u"/>
 
147
                </field>
 
148
            </field>
 
149
        </record>
 
150
        <record model="ir.ui.view" id="view_mrp_bom_tree_cost">
 
151
            <field name="name">mrp.bom.tree.cost_t</field>
 
152
            <field name="model">mrp.bom</field>
 
153
            <field name="type">tree</field>
 
154
            <field name="inherit_id" ref="mrp.mrp_bom_tree_view"/>
 
155
            <field name="arch" type="xml">
 
156
                <field name="product_uom" position="after">
 
157
                    <field name="cost_t"/>
 
158
                    <field name="cost_u"/>
 
159
                </field>
 
160
            </field>
 
161
        </record>
 
162
        
 
163
    </data>
 
164
</openerp>