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