[MERGE] lp881356
[odoo/odoo.git] / addons / product / product_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4         <menuitem groups="base.group_extended" id="prod_config_main" name="Products" parent="base.menu_base_config" sequence="9"/>
5
6         <record id="product_search_form_view" model="ir.ui.view">
7             <field name="name">product.search.form</field>
8             <field name="model">product.product</field>
9             <field name="type">search</field>
10             <field name="arch" type="xml">
11                 <search string="Product">
12                    <filter string="Services" icon="terp-accessories-archiver" domain="[('type','=','service')]"/>
13                    <filter string="Products" icon="terp-accessories-archiver" domain="['|',('type','=','product'),('type','=','consu')]" help="Both stockable and consumable products"/>
14                    <separator orientation="vertical"/>
15                    <filter string="To Sell" name="filter_to_sell" icon="terp-accessories-archiver-minus" domain="[('sale_ok','=',1)]"/>
16                    <filter name="filter_to_purchase" string="To Purchase" icon="terp-accessories-archiver+" domain="[('purchase_ok', '=', 1)]" />
17                    <separator orientation="vertical"/>
18                    <field name="name"
19                         filter_domain="['|', ('name','ilike',self),('default_code','ilike',self)]"/>
20                    <field name="categ_id" widget="selection" operator="child_of" groups="base.group_extended"/>
21                    <newline/>
22                    <group expand="0" string="Context..." groups="base.group_extended">
23                        <field name="pricelist_id" widget="selection" context="{'pricelist': self}" />
24                        <separator orientation="vertical" groups="base.group_multi_company" />
25                        <field name="company_id" widget="selection" groups="base.group_multi_company" />
26                    </group>
27                    <newline/>
28                    <group  expand='0' string='Group by...' groups="base.group_extended">
29                        <filter string='Category' icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'categ_id'}" groups="base.group_extended"/>
30                        <separator orientation="vertical"/>
31                        <filter string='Default UOM' icon="terp-mrp" domain="[]" context="{'group_by' : 'uom_id'}" />
32                        <separator orientation="vertical"/>
33                        <filter string='Type' icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'type'}" />
34                        <separator orientation="vertical" groups="base.group_multi_company"/>
35                        <filter string='Company' icon="terp-go-home" domain="[]" context="{'group_by' : 'company_id'}" groups="base.group_multi_company" />
36                    </group>
37
38                 </search>
39             </field>
40         </record>
41
42         <record id="product_product_tree_view" model="ir.ui.view">
43             <field name="name">product.product.tree</field>
44             <field name="model">product.product</field>
45             <field name="type">tree</field>
46             <field eval="7" name="priority"/>
47             <field name="arch" type="xml">
48                 <tree colors="red:virtual_available&lt;0;blue:virtual_available&gt;=0 and state in ('draft', 'end', 'obsolete');black:virtual_available&gt;=0 and state not in ('draft', 'end', 'obsolete')" string="Products">
49                     <field name="default_code"/>
50                     <field name="name"/>
51                     <field name="categ_id" invisible="1"/>
52                     <field name="variants" groups="product.group_product_variant"/>
53                     <field name="uom_id" string="UoM"/>
54                     <field name="type"/>
55                     <field name="qty_available"/>
56                     <field name="virtual_available"/>
57                     <field name="lst_price"/>
58                     <field name="price" invisible="not context.get('pricelist',False)"/>
59                     <field name="standard_price" groups="base.group_extended"/>
60                     <field name="state" groups="base.group_extended"/>
61                     <field name="company_id" groups="base.group_multi_company" invisible="1"/>
62                 </tree>
63             </field>
64         </record>
65         <record id="product_normal_form_view" model="ir.ui.view">
66             <field name="name">product.normal.form</field>
67             <field name="model">product.product</field>
68             <field name="type">form</field>
69             <field eval="7" name="priority"/>
70             <field name="arch" type="xml">
71                 <form string="Product">
72                    <group colspan="4" col="8">
73                     <group colspan="4" col="2">
74                         <separator string="Name" colspan="2"/>
75                         <field name="name"/>
76                         <field groups="product.group_product_variant" name="variants" />
77                     </group>
78                     <group colspan="1" col="2">
79                         <separator string="Codes" colspan="2"/>
80                         <field name="default_code"/>
81                         <field name="ean13" groups="base.group_extended"/>
82                     </group>
83                     <group colspan="1" col="2">
84                         <separator string="Characteristics" colspan="2"/>
85                         <field name="sale_ok"/>
86                         <field name="purchase_ok"/>
87                     </group>
88                     <group colspan="1" col="1">
89                         <field name="product_image" widget='image' nolabel="1"/>
90                     </group> 
91                    </group>
92
93                     <notebook colspan="4">
94                         <page string="Information">
95                             <group colspan="2" col="2">
96                                 <separator string="Procurement" colspan="2"/>
97                                 <field name="type"/>
98                                 <field name="procure_method" groups="base.group_extended"/>
99                                 <field name="supply_method"/>
100                             </group>
101                             <group colspan="2" col="2">
102                                 <separator string="Base Prices" colspan="2"/>
103                                 <field name="list_price"/>
104                                 <field groups="base.group_extended" name="cost_method"/>
105                                 <field name="standard_price" attrs="{'readonly':[('cost_method','=','average')]}"
106                                     groups="base.group_extended"/>
107                                 <newline/>
108                                 <field name="price_margin" groups="product.group_product_variant"/>
109                                 <field name="price_extra" groups="product.group_product_variant"/>
110                             </group>
111
112                             <group colspan="2" col="2" groups="base.group_extended">
113                                 <separator string="Weights" colspan="2"/>
114                                 <field digits="(14, 3)" name="volume" attrs="{'readonly':[('type','=','service')]}"/>
115                                 <field name="weight" attrs="{'readonly':[('type','=','service')]}"/>
116                                 <field name="weight_net" attrs="{'readonly':[('type','=','service')]}"/>
117                             </group>
118
119                             <group colspan="2" col="2" name="status" groups="base.group_extended">
120                                 <separator string="Status" colspan="2"/>
121                                 <field name="categ_id"/>
122                                 <field name="state"/>
123                                 <field name="product_manager"/>
124                             </group>
125
126                             <group colspan="2" col="2" name="uom">
127                                 <separator string="Unit of Measure" colspan="2"/>
128                                 <field name="uom_id" on_change="onchange_uom(uom_id,uom_po_id)"/>
129                                 <field name="uom_po_id" groups="base.group_extended"/>
130                             </group>
131
132                             <group colspan="2" col="2" name="uos" groups="product.group_uos">
133                                 <separator string="Second UoM" colspan="2"/>
134                                 <field name="uos_id"/>
135                                 <field name="uos_coeff"/>
136                                 <field name="mes_type"/>
137                             </group>
138
139                         </page>
140                         <page string="Procurement &amp; Locations">
141                             <group colspan="2" col="2" name="delay">
142                                 <separator string="Delays" colspan="2"/>
143                                 <field name="sale_delay" attrs="{'readonly':[('sale_ok','=',0)]}"/>
144                                 <field name="produce_delay"/>
145                                 <field name="warranty"/>
146                             </group>
147                             <group colspan="2" col="2" name="store">
148                                 <separator string="Storage Localisation" colspan="2"/>
149                                 <field name="loc_rack" attrs="{'readonly':[('type','=','service')]}" />
150                                 <field name="loc_row" attrs="{'readonly':[('type','=','service')]}"/>
151                                 <field name="loc_case" attrs="{'readonly':[('type','=','service')]}"/>
152                             </group>
153
154                             <group colspan="2" col="2" name="misc" groups="base.group_extended">
155                                 <separator string="Miscellaneous" colspan="2"/>
156                                 <field name="active"/>
157                                 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
158                             </group>
159
160                         </page>
161                         <page string="Suppliers">
162                             <field colspan="4" name="seller_ids" nolabel="1" context="{'uom_id': uom_id}"/>
163                         </page>
164                         <page string="Descriptions">
165                             <separator string="Description"/>
166                             <field colspan="4" name="description" nolabel="1"/>
167                             <separator string="Sale Description"/>
168                             <field colspan="4" name="description_sale" nolabel="1"/>
169                             <separator string="Purchase Description"/>
170                             <field colspan="4" name="description_purchase" nolabel="1"/>
171                         </page>
172                         <page groups="base.group_extended" string="Packaging">
173                             <field colspan="4" name="packaging" nolabel="1">
174                                 <form string="Packaging">
175                                     <field name="ean"/>
176                                     <field name="sequence" invisible="1"/>
177                                     <newline/>
178                                     <field name="qty"/>
179                                     <field name="ul"/>
180                                     <field name="weight_ul"/>
181                                     <separator colspan="4" string="Palletization"/>
182                                     <field name="ul_qty"/>
183                                     <field name="rows"/>
184                                     <field name="weight"/>
185                                     <separator colspan="4" string="Pallet Dimension"/>
186                                     <field name="height"/>
187                                     <field name="width"/>
188                                     <field name="length"/>
189                                     <separator colspan="4" string="Description"/>
190                                     <field colspan="4" name="name" nolabel="1"/>
191                                 </form>
192                             </field>
193                         </page>
194                     </notebook>
195                 </form>
196             </field>
197         </record>
198
199         <!-- Product Kanban View  -->
200         <record model="ir.ui.view" id="product_kanban_view">
201             <field name="name">Product Kanban</field>
202             <field name="model">product.product</field>
203             <field name="type">kanban</field>
204             <field name="arch" type="xml">
205                 <kanban>
206                     <field name="color"/>
207                     <field name="type"/>
208                     <field name="product_image"/>
209                     <field name="list_price"/>
210                     <templates>
211                         <t t-name="kanban-box">
212                             <t t-if="record.type.raw_value!='service' and record.qty_available.raw_value lte 0" t-set="border">oe_kanban_color_red</t>
213                             <div t-attf-class="#{kanban_color(record.color.raw_value)} #{border || ''}">
214                                 <div class="oe_kanban_box oe_kanban_color_border">
215                                     <div class="oe_kanban_box_header oe_kanban_color_bgdark oe_kanban_color_border oe_kanban_draghandle oe_kanban_title">
216                                         <field name="name"/>
217                                     </div>
218                                     <div class="oe_kanban_box_content oe_kanban_color_bglight oe_kanban_box_show_onclick_trigger">
219                                         <img t-att-src="kanban_image('product.product', 'product_image', record.id.value)" width="48" style="float: left; padding: 0 4px 4px 0"/>
220                                         <div t-if="record.type.raw_value == 'service'">No Stock</div>
221                                         <t t-if="record.type.raw_value != 'service'">
222                                             <div>Stock: <field name="qty_available"/> on hand, <field name="virtual_available"/> available</div>
223                                             <div t-if="record.list_price.raw_value != 0">Public Price: <field name="lst_price"/></div>
224                                             <div>Cost : <field name="standard_price"/></div>
225                                         </t>
226                                         <div class="oe_kanban_clear"/>
227                                     </div>
228                                     <div class="oe_kanban_buttons_set oe_kanban_color_border oe_kanban_color_bglight oe_kanban_box_show_onclick">
229                                         <div class="oe_kanban_left">
230                                             <a string="Edit" icon="gtk-edit" type="edit"/>
231                                             <a string="Change Color" icon="color-picker" type="color" name="color"/>
232                                         </div>
233                                         <div class="oe_kanban_clear"/>
234                                     </div>
235                                 </div>
236                             </div>
237                         </t>
238                     </templates>
239                 </kanban>
240             </field>
241         </record>
242
243         <record id="product_normal_action" model="ir.actions.act_window">
244             <field name="name">Products</field>
245             <field name="type">ir.actions.act_window</field>
246             <field name="res_model">product.product</field>
247             <field name="view_type">form</field>
248             <field name="view_mode">tree,form,kanban</field>
249             <field name="view_id" ref="product_product_tree_view"/>
250             <field name="search_view_id" ref="product_search_form_view"/>
251             <field name="help">You must define a Product for everything you buy or sell. Products can be raw materials, stockable products, consumables or services. The Product form contains detailed information about your products related to procurement logistics, sales price, product category, suppliers and so on.</field>
252         </record>
253         <record id="product_normal_action_sell" model="ir.actions.act_window">
254             <field name="name">Products</field>
255             <field name="type">ir.actions.act_window</field>
256             <field name="res_model">product.product</field>
257             <field name="view_mode">tree,form,kanban</field>
258             <field name="view_type">form</field>
259             <field name="context">{"search_default_filter_to_sell":1}</field>
260             <field name="view_id" ref="product_product_tree_view"/>  
261             <field name="search_view_id" ref="product_search_form_view"/>            
262             <field name="help">You must define a Product for everything you buy or sell. Products can be raw materials, stockable products, consumables or services. The Product form contains detailed information about your products related to procurement logistics, sales price, product category, suppliers and so on.</field>
263         </record>
264         
265         <record id="open_view_product_tree1" model="ir.actions.act_window.view">
266             <field name="sequence" eval="1"/>
267             <field name="view_mode">tree</field>
268            <field name="view_id" ref="product_product_tree_view"/>
269             <field name="act_window_id" ref="product_normal_action_sell"/>
270         </record>
271         
272         <record id="open_view_product_form1" model="ir.actions.act_window.view">
273             <field name="sequence" eval="2"/>
274             <field name="view_mode">form</field>
275             <field name="view_id" ref="product_normal_form_view"/>
276             <field name="act_window_id" ref="product_normal_action_sell"/>
277         </record> 
278
279         <menuitem id="base.menu_product" name="Products" parent="base.menu_base_partner" sequence="9"/>
280         <menuitem action="product.product_normal_action_sell" id="product.menu_products" parent="base.menu_product" sequence="1"/>
281
282         <record id="product_normal_action_puchased" model="ir.actions.act_window">
283             <field name="name">Products</field>
284             <field name="type">ir.actions.act_window</field>
285             <field name="res_model">product.product</field>
286             <field name="view_type">form</field>
287             <field name="view_mode">tree,form,kanban</field>
288             <field name="context">{"search_default_filter_to_purchase":1}</field>
289             <field name="view_id" ref="product_product_tree_view"/>
290             <field name="search_view_id" ref="product_search_form_view"/>
291             <field name="help">Products can be purchased and/or sold. They can be raw materials, stockable products, consumables or services. The Product form contains detailed information about your products related to procurement logistics, sales price, product category, suppliers and so on.</field>
292         </record>
293
294         <record id="product_category_search_view" model="ir.ui.view">
295             <field name="name">product.category.search</field>
296             <field name="model">product.category</field>
297             <field name="type">search</field>
298             <field name="arch" type="xml">
299                 <search string="Product Categories">
300                     <field name="parent_id"/>
301                     <field name="name"/>
302                 </search>
303             </field>
304         </record>
305         <record id="product_category_form_view" model="ir.ui.view">
306             <field name="name">product.category.form</field>
307             <field name="model">product.category</field>
308             <field name="type">form</field>
309             <field name="arch" type="xml">
310                 <form string="Product Categories">
311                     <field name="name"/>
312                     <field name="parent_id"/>
313                     <field name="sequence" invisible="1"/>
314                     <field name="type"/>
315                     <newline/>
316                 </form>
317             </field>
318         </record>
319         <record id="product_category_list_view" model="ir.ui.view">
320             <field name="name">product.category.list</field>
321             <field name="model">product.category</field>
322             <field name="type">tree</field>
323             <field name="priority">1</field>
324             <field name="arch" type="xml">
325                 <tree string="Product Categories">
326                     <field name="complete_name"/>
327                 </tree>
328             </field>
329         </record>
330         <record id="product_category_tree_view" model="ir.ui.view">
331             <field name="name">product.category.tree</field>
332             <field name="model">product.category</field>
333             <field name="type">tree</field>
334             <field name="field_parent">child_id</field>
335             <field name="arch" type="xml">
336                 <tree toolbar="True" string="Product Categories">
337                     <field name="name"/>
338                 </tree>
339             </field>
340         </record>
341         <record id="product_category_action" model="ir.actions.act_window">
342             <field name="name">Products by Category</field>
343             <field name="type">ir.actions.act_window</field>
344             <field name="res_model">product.category</field>
345             <field name="domain">[('parent_id','=',False)]</field>
346             <field name="view_type">tree</field>
347             <field name="view_id" ref="product_category_tree_view"/>
348             <field name="help">Here is a list of all your products classified by category. You can click a category to get the list of all products linked to this category or to a child of this category.</field>
349         </record>
350         <menuitem
351             action="product_category_action"
352             id="product.menu_products_category"
353             groups="base.group_extended"
354             parent="base.menu_product"
355             sequence="0"/>
356         <record id="product_category_action_form" model="ir.actions.act_window">
357             <field name="name">Product Categories</field>
358             <field name="type">ir.actions.act_window</field>
359             <field name="res_model">product.category</field>
360             <field name="view_type">form</field>
361             <field name="search_view_id" ref="product_category_search_view"/>
362             <field name="view_id" ref="product_category_list_view"/>
363         </record>
364         <menuitem action="product_category_action_form"
365             groups="base.group_extended"
366             id="menu_product_category_action_form"
367             parent="prod_config_main" sequence="2"/>
368
369
370         <record id="product_normal_action_tree" model="ir.actions.act_window">
371             <field name="name">Products</field>
372             <field name="type">ir.actions.act_window</field>
373             <field name="res_model">product.product</field>
374             <field name="view_type">form</field>
375             <field name="view_mode">tree,form,kanban</field>
376             <field name="context">{'categ_id':active_id, 'search_default_categ_id':active_id}</field>
377         </record>
378         <record id="ir_product_category_open" model="ir.values">
379             <field eval="'tree_but_open'" name="key2"/>
380             <field eval="'product.category'" name="model"/>
381             <field name="name">Products by Categories</field>
382             <field eval="'ir.actions.act_window,%d'%product_normal_action_tree" name="value"/>
383         </record>
384
385
386         <!-- Unit of Measure -->
387
388         <record id="product_uom_tree_view" model="ir.ui.view">
389             <field name="name">product.uom.tree</field>
390             <field name="model">product.uom</field>
391             <field name="type">tree</field>
392             <field name="arch" type="xml">
393                 <tree string="Units of Measure">
394                     <field name="name"/>
395                     <field name="category_id"/>
396                     <field name="factor"/>
397                 </tree>
398             </field>
399         </record>
400
401         <record id="product_uom_form_view" model="ir.ui.view">
402             <field name="name">product.uom.form</field>
403             <field name="model">product.uom</field>
404             <field name="type">form</field>
405             <field name="arch" type="xml">
406                 <form string="Units of Measure">
407                     <group col="6" colspan="4">
408                         <group col="2"  colspan="2">
409                             <separator string="Unit of Measure Properties" colspan="4"/>
410                             <field name="name" select="1"/>
411                             <field name="category_id" select="1" widget="selection"/>
412                             <field name="active"/>
413                         </group>
414                         <group col="4"  colspan="4">
415                             <separator string="Ratio &amp; Precision" colspan="4"/>
416                             <group colspan="2" col="2">
417                                  <field name="uom_type" on_change="onchange_type(uom_type)"/>
418                                  <field name="rounding"/>
419                             </group>
420                             <group colspan="2" col="2">
421                                   <group col="2" colspan="2" attrs="{'invisible':[('uom_type','!=','smaller')]}">
422                                         <field name="factor"/>
423                                         <label colspan="2" string="  e.g: 1 * (reference unit) = ratio * (this unit)"/>
424                                    </group>
425                                    <group col="2" colspan="2" attrs="{'invisible':[('uom_type','!=','bigger')]}">
426                                         <field name="factor_inv"/>
427                                         <label colspan="2"  string="  e.g: 1 * (this unit) = ratio * (reference unit)"/>
428                                    </group>
429                             </group>
430                         </group>
431                     </group>
432                 </form>
433             </field>
434         </record>
435         <record id="product_uom_form_action" model="ir.actions.act_window">
436             <field name="name">Units of Measure</field>
437             <field name="type">ir.actions.act_window</field>
438             <field name="res_model">product.uom</field>
439             <field name="view_type">form</field>
440             <field name="view_id" ref="product_uom_tree_view"/>
441             <field name="help">Create and manage the units of measure you want to be used in your system. You can define a conversion rate between several Units of Measure within the same category.</field>
442         </record>
443         <menuitem id="next_id_16" name="Units of Measure" parent="prod_config_main" sequence="65"/>
444         <menuitem action="product_uom_form_action" id="menu_product_uom_form_action" parent="next_id_16"/>
445
446         <record id="product_uom_categ_form_view" model="ir.ui.view">
447             <field name="name">product.uom.categ.form</field>
448             <field name="model">product.uom.categ</field>
449             <field name="type">form</field>
450             <field name="arch" type="xml">
451                 <form string="Units of Measure categories">
452                     <field colspan="4" name="name" select="1"/>
453                 </form>
454             </field>
455         </record>
456         <record id="product_uom_categ_form_action" model="ir.actions.act_window">
457             <field name="name">UoM Categories</field>
458             <field name="type">ir.actions.act_window</field>
459             <field name="res_model">product.uom.categ</field>
460             <field name="view_type">form</field>
461             <field name="view_mode">tree,form</field>
462             <field name="help">Create and manage the units of measure categories you want to be used in your system. If several units of measure are in the same category, they can be converted to each other. For example, in the unit of measure category "Time", you will have the following UoM: Hours, Days.</field>
463         </record>
464         <menuitem action="product_uom_categ_form_action" id="menu_product_uom_categ_form_action" parent="product.next_id_16" sequence="5"/>
465
466         <record id="product_ul_form_view" model="ir.ui.view">
467             <field name="name">product.ul.form.view</field>
468             <field name="model">product.ul</field>
469             <field name="type">form</field>
470             <field name="arch" type="xml">
471                 <form string="Packaging">
472                     <field name="name" select="1" />
473                     <field name="type" select="1" />
474                 </form>
475             </field>
476         </record>
477         <record id="product_ul_tree" model="ir.ui.view">
478             <field name="name">product.ul.tree</field>
479             <field name="model">product.ul</field>
480             <field name="type">tree</field>
481             <field name="arch" type="xml">
482                 <tree string="Packaging">
483                     <field name="name" select="1"/>
484                     <field name="type" select="1"/>
485                 </tree>
486             </field>
487         </record>
488         <record id="product_ul_form_action" model="ir.actions.act_window">
489             <field name="name">Packaging</field>
490             <field name="type">ir.actions.act_window</field>
491             <field name="res_model">product.ul</field>
492             <field name="view_type">form</field>
493             <field name="view_mode">tree,form</field>
494             <field name="help">Create and manage your packaging dimensions and types you want to be maintained in your system.</field>
495         </record>
496         <menuitem
497             action="product_ul_form_action" groups="base.group_extended" id="menu_product_ul_form_action" parent="prod_config_main" sequence="3"/>
498
499         <record id="product_packaging_tree_view" model="ir.ui.view">
500             <field name="name">product.packaging.tree.view</field>
501             <field name="model">product.packaging</field>
502             <field name="type">tree</field>
503             <field name="arch" type="xml">
504                 <tree string="Packaging">
505                     <field name="sequence" invisible="1"/>
506                     <field name="ean"/>
507                     <field name="qty"/>
508                     <field name="ul"/>
509                 </tree>
510             </field>
511         </record>
512
513         <record id="product_packaging_form_view" model="ir.ui.view">
514             <field name="name">product.packaging.form.view</field>
515             <field name="model">product.packaging</field>
516             <field name="type">form</field>
517             <field name="arch" type="xml">
518                 <form string="Packaging">
519                     <field name="product_id" select="1"/>
520                     <newline/>
521                     <field name="ean" select="1"/>
522                     <field name="sequence" invisible="1"/>
523                     <newline/>
524                     <field name="qty" select="1"/>
525                     <field name="ul"/>
526                     <field name="weight_ul"/>
527                     <separator colspan="4" string="Palletization"/>
528                     <field name="ul_qty"/>
529                     <field name="rows"/>
530                     <field name="weight"/>
531                     <separator colspan="4" string="Pallet Dimension"/>
532                     <field name="height"/>
533                     <field name="width"/>
534                     <field name="length"/>
535                     <separator colspan="4" string="Other Info"/>
536                     <field colspan="4" name="name" select="1"/>
537                 </form>
538             </field>
539         </record>
540
541         <record id="product_supplierinfo_form_view" model="ir.ui.view">
542             <field name="name">product.supplierinfo.form.view</field>
543             <field name="model">product.supplierinfo</field>
544             <field name="type">form</field>
545             <field name="arch" type="xml">
546                 <form string="Supplier Information">
547                     <field name="name" context="{'default_customer': 0, 'search_default_supplier': 1, 'default_supplier': 1}" options='{"quick_create": false}'/>
548                     <field name="sequence"/>
549                     <field name="product_name" groups="base.group_extended"/>
550                     <field name="product_code" groups="base.group_extended"/>
551                     <field name="min_qty"/>
552                     <field name="product_uom"/>
553                     <field name="delay"/>
554                     <field name="company_id" groups="base.group_multi_company" widget="selection"/>
555                     <field colspan="4" groups="base.group_extended" name="pricelist_ids" nolabel="1" widget="one2many_list">
556                         <tree editable="bottom" string="Pricelist">
557                             <field name="min_quantity"/>
558                             <field name="price"/>
559                         </tree>
560                         <form>
561                             <field name="min_quantity"/>
562                             <field name="price"/>
563                         </form>
564                     </field>
565                 </form>
566             </field>
567         </record>
568         <record id="product_supplierinfo_tree_view" model="ir.ui.view">
569             <field name="name">product.supplierinfo.tree.view</field>
570             <field name="model">product.supplierinfo</field>
571             <field name="type">tree</field>
572             <field name="arch" type="xml">
573                 <tree string="Supplier Information">
574                     <field name="sequence" string="Seq"/>
575                     <field name="name"/>
576                     <field name="delay"/>
577                     <field name="min_qty"/>
578                     <field name="company_id" groups="base.group_multi_company" widget="selection"/>
579                 </tree>
580             </field>
581         </record>
582
583         <record id="product_variant_form_view" model="ir.ui.view">
584             <field name="name">product.variant.form</field>
585             <field name="model">product.product</field>
586             <field name="type">form</field>
587             <field name="arch" type="xml">
588                 <form string="Product Variant">
589                      <field name="product_tmpl_id" select="1"/>
590                     <field name="active" select="1"/>
591                     <field name="variants" select="1"/>
592                     <field name="default_code" select="1"/>
593                     <field name="price_margin" select="1"/>
594                     <field name="price_extra" select="1"/>
595                 </form>
596             </field>
597         </record>
598
599         <record id="product_variant_tree_view" model="ir.ui.view">
600             <field name="name">product.variant.tree</field>
601             <field name="model">product.product</field>
602             <field name="type">tree</field>
603             <field name="arch" type="xml">
604                 <tree string="Product Variant">
605                     <field name="product_tmpl_id"/>
606                     <field name="active"/>
607                     <field name="variants"/>
608                     <field name="default_code"/>
609                     <field name="price_margin"/>
610                     <field name="price_extra"/>
611                 </tree>
612             </field>
613         </record>
614
615         <record id="product_template_tree_view" model="ir.ui.view">
616             <field name="name">product.template.product.tree</field>
617             <field name="model">product.template</field>
618             <field name="type">tree</field>
619             <field name="arch" type="xml">
620                 <tree string="Product Template">
621                     <field name="name"/>
622                     <field name="categ_id"/>
623                     <field name="type"/>
624                     <field name="state" groups="base.group_extended"/>
625                 </tree>
626             </field>
627         </record>
628
629         <record id="product_template_form_view" model="ir.ui.view">
630             <field name="name">product.template.product.form</field>
631             <field name="model">product.template</field>
632             <field name="type">form</field>
633             <field name="arch" type="xml">
634                 <form string="Product Template">
635                     <group colspan="2" col="4">
636                         <separator string="Product Description" colspan="4"/>
637                         <field name="name" select="1"/>
638                     </group>
639                     <group colspan="2" col="2">
640                         <separator string="Product Type" colspan="2"/>
641                         <field name="sale_ok"/>
642                         <field name="purchase_ok"/>
643                     </group>
644                     <notebook colspan="4">
645                         <page string="Information">
646                             <group colspan="2" col="2">
647                                 <separator string="Procurement" colspan="2"/>
648                                 <field name="type"/>
649                                 <field name="procure_method" groups="base.group_extended"/>
650                                 <field name="supply_method"/>
651                             </group>
652
653                             <group colspan="2" col="2">
654                                 <separator string="Base Prices" colspan="2"/>
655                                 <field name="list_price"/>
656                                 <field name="standard_price" attrs="{'readonly':[('cost_method','=','average')]}"
657                                     groups="base.group_extended"/>
658                                 <field groups="base.group_extended" name="cost_method"/>
659                             </group>
660
661                             <group colspan="2" col="2" groups="base.group_extended">
662                                 <separator string="Weights" colspan="2"/>
663                                 <field digits="(14, 3)" name="volume" attrs="{'readonly':[('type','=','service')]}"/>
664                                 <field digits="(14, 3)" name="weight" attrs="{'readonly':[('type','=','service')]}"/>
665                                 <field digits="(14, 3)" name="weight_net" attrs="{'readonly':[('type','=','service')]}"/>
666                             </group>
667
668                             <group colspan="2" col="2" name="status" groups="base.group_extended">
669                                 <separator string="Status" colspan="2"/>
670                                 <field name="categ_id" select="1"/>
671                                 <field name="state"/>
672                                 <field name="product_manager"/>
673                             </group>
674
675                             <group colspan="2" col="2" name="uom">
676                                 <separator string="UOM" colspan="2"/>
677                                 <field name="uom_id" on_change="onchange_uom(uom_id,uom_po_id)"/>
678                                 <field name="uom_po_id" groups="base.group_extended"/>
679                             </group>
680
681                             <group colspan="2" col="2" name="uos" groups="product.group_uos">
682                                 <separator string="Second UoM" colspan="2"/>
683                                 <field name="uos_id"/>
684                                 <field name="uos_coeff"/>
685                                 <field name="mes_type"/>
686                             </group>
687
688                         </page>
689                         <page string="Procurement &amp; Locations" groups="base.group_extended">
690                             <group colspan="2" col="2" name="delay">
691                                 <separator string="Delays" colspan="2"/>
692                                 <field name="sale_delay" attrs="{'readonly':[('sale_ok','=',0)]}"/>
693                                 <field name="produce_delay"/>
694                                 <field name="warranty"/>
695                             </group>
696                             <group colspan="2" col="2" name="store">
697                                 <separator string="Storage Localisation" colspan="2"/>
698                                 <field name="loc_rack"/>
699                                 <field name="loc_row"/>
700                                 <field name="loc_case"/>
701                             </group>
702                             <group colspan="2" col="2" name="misc">
703                                 <separator string="Miscelleanous" colspan="2"/>
704                             </group>
705
706                         </page>
707                         <page string="Suppliers">
708                             <field colspan="4" name="seller_ids" nolabel="1"/>
709                         </page>
710                         <page string="Descriptions">
711                             <separator string="Description"/>
712                             <field colspan="4" name="description" nolabel="1"/>
713                             <separator string="Sale Description"/>
714                             <field colspan="4" name="description_sale" nolabel="1"/>
715                             <separator string="Purchase Description"/>
716                             <field colspan="4" name="description_purchase" nolabel="1"/>
717                         </page>
718                     </notebook>
719                 </form>
720             </field>
721         </record>
722
723         <record id="product_template_action_tree" model="ir.actions.act_window">
724             <field name="name">Product Templates</field>
725             <field name="type">ir.actions.act_window</field>
726             <field name="res_model">product.template</field>
727             <field name="view_type">form</field>
728             <field name="view_id" ref="product_template_tree_view"/>
729         </record>
730
731     </data>
732 </openerp>