[REF] purchase: search view of purchase order and form view of merge order wizard
[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" select="1" widget="selection" position="before">
12                         <field name="location_id" select="1" widget="selection" 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_journal"/>
30                     </group>
31                 </form>
32             </field>
33         </record>
34
35
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"  widget="selection"/>
47                         <field name="property_stock_production"  widget="selection"/>
48                         <field name="property_stock_inventory"  widget="selection"/>
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                                         <group col="4" colspan="2">
65                                                 <field name="standard_price" readonly="True"/>
66                                                 <button name="%(action_view_change_standard_price)d" string="Change Price" type="action" icon="gtk-execute"/>
67                                 </group>
68                         </field>
69                 </field>
70             </record>
71
72         <record id="view_normal_property_acc_form" model="ir.ui.view">
73             <field name="name">product.normal.stock.acc.property.form.inherit</field>
74             <field name="model">product.product</field>
75             <field name="type">form</field>
76             <field name="inherit_id" ref="product.product_normal_form_view"/>
77             <field name="priority">26</field>
78             <field name="arch" type="xml">
79                 <field name="property_account_expense" position="after">
80                     <field name="property_stock_account_output" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
81                     <field name="property_stock_account_input" domain="[('type','&lt;&gt;','view'),('type','&lt;&gt;','consolidation')]"/>
82                 </field>
83             </field>
84         </record>
85
86         <record id="view_normal_stock_property_form" model="ir.ui.view">
87             <field name="name">product.normal.stock.form.inherit</field>
88             <field name="model">product.product</field>
89             <field name="type">form</field>
90             <field name="inherit_id" ref="product.product_normal_form_view"/>
91             <field name="arch" type="xml">
92                 <group name="status" position="after">
93                     <group colspan="2" col="2">
94                         <separator string="Stocks" colspan="4"/>
95                         <field name="qty_available"/>
96                         <field name="virtual_available"/>
97                     </group>
98                     <group colspan="2" col="2" name="lot" groups="base.group_extended">
99                         <separator string="Lots" colspan="4"/>
100                         <field name="track_production" />
101                         <field name="track_incoming" />
102                         <field name="track_outgoing" />
103                     </group>
104                 </group>
105             </field>
106         </record>
107
108         <record id="view_normal_property_form" model="ir.ui.view">
109             <field name="name">product.normal.stock.property.form.inherit</field>
110             <field name="model">product.product</field>
111             <field name="type">form</field>
112             <field name="inherit_id" ref="product.product_normal_form_view"/>
113             <field name="arch" type="xml">
114                 <group name="store" position="after">
115                     <group col="2" colspan="2" name="store">
116                         <separator string="Counter-Part Locations Properties" colspan="2"/>
117                         <field name="property_stock_procurement" widget="selection" domain="[('usage','=','procurement')]"/>
118                         <field name="property_stock_production" widget="selection"/>
119                         <field name="property_stock_inventory" widget="selection"/>
120                     </group>
121                 </group>
122             </field>
123         </record>
124
125
126     </data>
127 </openerp>