[MERGE] from trunk
[odoo/odoo.git] / addons / stock / product_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
5         <record id="product_search_form_view_stock" model="ir.ui.view">
6             <field name="name">product.search.stock.form</field>
7             <field name="model">product.product</field>
8             <field name="type">search</field>
9             <field name="inherit_id" ref="product.product_search_form_view"/>
10             <field name="arch" type="xml">
11                    <field name="pricelist_id" position="before">
12                        <field name="location_id" widget="selection" context="{'location': self}"/>
13                        <field name="warehouse_id" widget="selection" context="{'warehouse': self}"/>
14                        <separator orientation="vertical"/>
15                    </field>
16             </field>
17         </record>
18
19         <record id="view_category_property_form" model="ir.ui.view">
20             <field name="name">product.category.stock.property.form.inherit</field>
21             <field name="model">product.category</field>
22             <field name="type">form</field>
23             <field name="inherit_id" ref="product.product_category_form_view"/>
24             <field name="arch" type="xml">
25                 <form position="inside">
26                     <group col="2" colspan="2">
27                         <separator string="Accounting Stock Properties" colspan="2"/>
28                         <field name="property_stock_account_input_categ" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
29                         <field name="property_stock_account_output_categ" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
30                         <field name="property_stock_variation"/>
31                         <field name="property_stock_journal"/>
32                     </group>
33                 </form>
34             </field>
35         </record>
36
37         <record id="view_template_property_form" model="ir.ui.view">
38             <field name="name">product.template.stock.property.form.inherit</field>
39             <field name="model">product.template</field>
40             <field name="type">form</field>
41             <field name="inherit_id" ref="product.product_template_form_view"/>
42             <field name="arch" type="xml">
43                  <page position="after" string="Information">
44                     <page string="Properties">
45                         <separator string="Counter-Part Locations Properties" colspan="4"/>
46                         <field name="property_stock_procurement" domain="[('usage','=','procurement')]"/>
47                         <field name="property_stock_production" domain="[('usage','=','production')]"/>
48                         <field name="property_stock_inventory" domain="[('usage','=','inventory')]"/>
49                         <separator string="Accounting Entries" colspan="4"/>
50                         <field name="property_stock_account_input" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
51                         <field name="property_stock_account_output" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
52                     </page>
53                 </page>
54             </field>
55         </record>
56
57         <record id="view_product_standard_price_form" model="ir.ui.view">
58             <field name="name">product.product.standard.price.form.inherit</field>
59             <field name="model">product.product</field>
60             <field name="type">form</field>
61             <field name="inherit_id" ref="product.product_normal_form_view"/>
62             <field name="arch" type="xml">
63                 <field name="standard_price" position="replace">
64                     <label string="Cost Price :" align="1.0"/>
65                     <group col="2" colspan="1">
66                         <field name="standard_price" attrs="{'readonly':[('cost_method','=','average')]}" nolabel="1"/>
67                         <button name="%(action_view_change_standard_price)d" string="Update"
68                             type="action" icon="gtk-execute" attrs="{'invisible':[('cost_method','&lt;&gt;','average')]}"/>
69                     </group>
70                 </field>
71             </field>
72         </record>
73
74         <record id="view_normal_property_acc_form" model="ir.ui.view">
75             <field name="name">product.normal.stock.acc.property.form.inherit</field>
76             <field name="model">product.product</field>
77             <field name="type">form</field>
78             <field name="inherit_id" ref="product.product_normal_form_view"/>
79             <field name="priority">26</field>
80             <field name="arch" type="xml">
81                 <xpath expr="/form/notebook/page/group[@name='properties']" position="before">
82                     <group groups="base.group_extended">
83                         <separator string="Inventory Valuation" colspan="4"/>
84                         <group colspan="2" col="2">
85                             <field name="valuation"/>
86                         </group>
87                         <group colspan="2" col="2">
88                             <field name="property_stock_account_input" attrs="{'readonly':[('valuation', '!=', 'real_time')]}"
89                                 domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" groups="base.group_extended"/>
90                             <field name="property_stock_account_output" attrs="{'readonly':[('valuation', '!=', 'real_time')]}"
91                                 domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]" groups="base.group_extended"/>
92                         </group>
93                     </group>
94                     <newline/>
95                 </xpath>
96             </field>
97         </record>
98
99         <record id="view_normal_stock_property_form" model="ir.ui.view">
100             <field name="name">product.normal.stock.form.inherit</field>
101             <field name="model">product.product</field>
102             <field name="type">form</field>
103             <field name="inherit_id" ref="product.product_normal_form_view"/>
104             <field name="arch" type="xml">
105                 <group name="status" position="after">
106                     <group colspan="2" col="3">
107                         <separator string="Stocks" colspan="4"/>
108                         <field name="qty_available"/>
109                         <button name="%(action_view_change_product_quantity)d" string="Update" attrs="{'invisible': [('type', '=', 'service')]}"
110                             type="action" icon="gtk-execute" groups = "stock.group_stock_manager,stock.group_stock_user"/>
111                         <newline/>
112                         <field name="virtual_available"/>
113                     </group>
114                     <group colspan="2" col="2" name="lot" groups="base.group_extended">
115                         <separator string="Lots" colspan="4"/>
116                         <field name="track_production" />
117                         <field name="track_incoming" />
118                         <field name="track_outgoing" />
119                     </group>
120                 </group>
121             </field>
122         </record>
123
124         <record id="view_normal_property_form" model="ir.ui.view">
125             <field name="name">product.normal.stock.property.form.inherit</field>
126             <field name="model">product.product</field>
127             <field name="type">form</field>
128             <field name="inherit_id" ref="product.product_normal_form_view"/>
129             <field name="arch" type="xml">
130                 <group name="store" position="after">
131                     <group col="2" colspan="2" name="store" groups="base.group_extended">
132                         <separator string="Counter-Part Locations Properties" colspan="2"/>
133                         <field name="property_stock_procurement" attrs="{'readonly':[('type','=','service')]}" domain="[('usage','=','procurement')]"/>
134                         <field name="property_stock_production" attrs="{'readonly':[('type','=','service')]}" domain="[('usage','=','production')]"/>
135                         <field name="property_stock_inventory"  attrs="{'readonly':[('type','=','service')]}" domain="[('usage','=','inventory')]"/>
136                     </group>
137                 </group>
138             </field>
139         </record>
140
141 <!--        <record id="view_product_valuation_form" model="ir.ui.view">
142             <field name="name">product.valuation.stock.form.inherit</field>
143             <field name="model">product.product</field>
144             <field name="type">form</field>
145             <field name="inherit_id" ref="product.product_normal_form_view"/>
146             <field name="arch" type="xml">
147                 <field name="cost_method" position="after">
148                     <field name="valuation"/>
149                 </field>
150             </field>
151         </record>-->
152
153     </data>
154 </openerp>