[FIX] Stock : adding attrs in order to make the field required
[odoo/odoo.git] / addons / stock / stock_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4
5         <menuitem icon="terp-stock" id="menu_stock_root" name="Warehouse"
6                   groups="group_stock_manager,group_stock_user" sequence="5"
7                   web_icon="images/warehouse.png"
8                   web_icon_hover="images/warehouse-hover.png"/>
9         <menuitem id="menu_stock_warehouse_mgmt" name="Warehouse Management" parent="menu_stock_root" sequence="1" groups="base.group_extended"/>
10         <menuitem id="menu_stock_products_moves" name="Products Moves" parent="menu_stock_root" sequence="2"/>
11         <menuitem id="menu_stock_product" name="Product" parent="menu_stock_root" sequence="6"/>
12         <menuitem name="Products by Category" id="menu_product_by_category_stock_form" action="product.product_category_action"
13            parent="stock.menu_stock_product" sequence="0"/>
14         <menuitem action="product.product_normal_action" id="menu_stock_products_menu" parent="menu_stock_product" sequence="1"/>
15         <menuitem id="menu_stock_configuration" name="Configuration" parent="menu_stock_root" sequence="15" groups="group_stock_manager"/>
16         <menuitem id="menu_warehouse_config" name="Warehouse Management" parent="menu_stock_configuration" sequence="1"/>
17         <menuitem id="menu_stock_inventory_control" name="Inventory Control" parent="menu_stock_root" sequence="4"/>
18         <menuitem
19             id="menu_product_in_config_stock" name="Product"
20             parent="stock.menu_stock_configuration" sequence="2"/>
21         <menuitem
22             action="product.product_category_action_form" id="menu_product_category_config_stock"
23             parent="stock.menu_product_in_config_stock" sequence="0"/>
24         <menuitem
25             action="product.product_ul_form_action" groups="base.group_extended"
26             id="menu_product_packaging_stock_action" parent="stock.menu_product_in_config_stock" sequence="1"/>
27          <menuitem
28             id="menu_stock_unit_measure_stock" name="Units of Measure"
29             parent="stock.menu_product_in_config_stock"  sequence="2"/>
30          <menuitem
31              action="product.product_uom_categ_form_action" id="menu_stock_uom_categ_form_action"
32              parent="stock.menu_stock_unit_measure_stock" sequence="0"/>
33          <menuitem
34               action="product.product_uom_form_action" id="menu_stock_uom_form_action"
35               parent="stock.menu_stock_unit_measure_stock" sequence="1"/>
36
37         <record id="stock_inventory_line_tree" model="ir.ui.view">
38             <field name="name">stock.inventory.line.tree</field>
39             <field name="model">stock.inventory.line</field>
40             <field name="type">tree</field>
41             <field name="arch" type="xml">
42                 <tree string="Stock Inventory Lines">
43                     <field name="product_id"/>
44                     <field name="product_qty"/>
45                     <field name="product_uom"/>
46                     <field name="prod_lot_id" groups="base.group_extended"/>
47                     <button name="%(stock.action_view_stock_inventory_line_split)d"
48                             string="Split inventory lines" groups="base.group_extended"
49                             type="action" icon="gtk-justify-fill"/>
50                     <field name="location_id"/>
51                 </tree>
52             </field>
53         </record>
54         <record id="view_inventory_line_form" model="ir.ui.view">
55             <field name="name">stock.inventory.line.form</field>
56             <field name="model">stock.inventory.line</field>
57             <field name="type">form</field>
58             <field name="arch" type="xml">
59                 <form string="Stock Inventory Lines">
60                     <field context="location=location_id,uom=product_uom,to_date=parent.date" name="product_id" on_change="on_change_product_id(location_id,product_id,product_uom,parent.date)" select="1" domain="[('type','&lt;&gt;','service')]"/>
61                     <field name="tracking" invisible="1" />
62                     <field name="product_qty"/>
63                     <field name="product_uom"/>
64                     <field name="prod_lot_id" groups="base.group_extended" attrs="{'required':[('tracking','=',True)]}"/>
65                     <field colspan="4" domain="[('usage','=','internal')]" name="location_id" select="1"/>
66                         <button name="%(stock.action_view_stock_inventory_line_split)d"
67                             string="Split inventory lines" groups="base.group_extended"
68                             type="action" icon="terp-stock_effects-object-colorize"/>
69                 </form>
70             </field>
71         </record>
72
73          <record id="view_inventory_filter" model="ir.ui.view">
74             <field name="name">stock.inventory.filter</field>
75             <field name="model">stock.inventory</field>
76             <field name="type">search</field>
77             <field name="arch" type="xml">
78                 <search string="Search Inventory">
79                     <group col="10" colspan="4">
80                         <field name="name"/>
81                         <field name="date"/>
82                         <field name="company_id" groups="base.group_multi_company" widget="selection"/>
83                     </group>
84                     <newline/>
85                     <group expand="0" string="Group By..." colspan="4" col="4" groups="base.group_extended">
86                         <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
87                         <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
88                     </group>
89                 </search>
90
91             </field>
92         </record>
93
94         <record id="view_inventory_tree" model="ir.ui.view">
95             <field name="name">stock.inventory.tree</field>
96             <field name="model">stock.inventory</field>
97             <field name="type">tree</field>
98             <field name="arch" type="xml">
99                 <tree string="Lot Inventory" colors="grey:state in ('cancel')">
100                     <field name="name"/>
101                     <field name="date"/>
102                     <field name="state"/>
103                 </tree>
104             </field>
105         </record>
106
107         <record id="view_inventory_form" model="ir.ui.view">
108             <field name="name">stock.inventory.form</field>
109             <field name="model">stock.inventory</field>
110             <field name="type">form</field>
111             <field name="arch" type="xml">
112                 <form string="Physical Inventory">
113                     <field name="name"/>
114                     <field name="date"/>
115                     <field name="company_id" groups="base.group_multi_company" widget="selection"/>
116                     <notebook colspan="4">
117                     <page string="General Informations">
118                         <field colspan="4" name="inventory_line_id" nolabel="1" widget="one2many_list">
119                             <tree string="Products" editable="bottom">
120                                 <field colspan="4" domain="[('usage','=','internal')]" name="location_id"/>
121                                 <field context="location=location_id,uom=product_uom,to_date=parent.date" name="product_id" on_change="on_change_product_id(location_id,product_id,product_uom,parent.date)"  domain="[('type','&lt;&gt;','service')]"/>
122                                 <field name="tracking" invisible="1" />
123                                 <field name="product_qty"/>
124                                 <field name="product_uom"/>
125                                 <field name="prod_lot_id" groups="base.group_extended" attrs="{'required':[('tracking','=',True)]}"/>
126                                 <button name="%(stock.action_view_stock_inventory_line_split)d"
127                                     string="Split inventory lines" groups="base.group_extended"
128                                     type="action" icon="terp-stock_effects-object-colorize" states="draft,confirm"/>
129                                 <field name="state" invisible="True"/>
130                             </tree>
131                             <form string="Products ">
132                                 <field domain="[('usage','=','internal')]" name="location_id"/>
133                                 <newline/>
134                                 <field context="location=location_id,uom=product_uom,to_date=parent.date" name="product_id" on_change="on_change_product_id(location_id,product_id,product_uom,parent.date)"  domain="[('type','&lt;&gt;','service')]"/>
135                                 <field name="tracking" invisible="1" />
136                                 <field name="product_qty"/>
137                                 <field name="product_uom"/>
138                                 <group colspan="2" col="4">
139                                 <field name="prod_lot_id" groups="base.group_extended" attrs="{'required':[('tracking','=',True)]}"/>
140                                     <button name="%(stock.action_view_stock_inventory_line_split)d"
141                                         string="Split inventory lines" groups="base.group_extended"
142                                         type="action" icon="terp-stock_effects-object-colorize"/>
143                                 </group>
144                             </form>
145                         </field>
146                     </page><page string="Posted Inventory" groups="base.group_extended">
147                              <field colspan="2" name="move_ids" nolabel="1" widget="one2many_list" context="{'inventory_id':active_id}" >
148                                 <tree string="Stock Moves">
149                                     <field name="product_id"/>
150                                     <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
151                                     <field name="product_uom" string="UoM"/>
152                                     <field name="prodlot_id" groups="base.group_extended"/>
153                                      <button name="%(track_line)d" string="Split in production lots" type="action"
154                                         icon="terp-stock_effects-object-colorize"
155                                         attrs="{'invisible': [('prodlot_id','&lt;&gt;',False)]}"
156                                         states="draft,done,cancel"
157                                         context="{'inventory_id':parent.id}"
158                                         groups="base.group_extended"/>
159                                      <field groups="base.group_extended" name="tracking_id"/>
160                                      <button name="%(split_into)d" string="Put in a new pack" type="action"
161                                         groups="base.group_extended"
162                                         icon="terp-stock_effects-object-colorize"
163                                         context="{'inventory_id':parent.id}"
164                                         states="draft,done,cancel"/>
165                                     <field name="location_id"/>
166                                     <field name="location_dest_id"/>
167                                     <field name="date" string="Date"/>
168                                     <field name="state"  invisible="True"/>
169                                 </tree>
170                              </field>
171                     </page>
172                     </notebook>
173                     <group col="2" colspan="2">
174                      <field name="state"/>
175                     </group>
176                     <group col="3" colspan="2">
177                         <button name="action_cancel_inventary" states="draft,confirm,done" string="Cancel Inventory" type="object" icon="gtk-cancel"/>
178                         <button name="action_confirm" states="draft" string="Confirm Inventory" type="object" icon="gtk-apply"/>
179                         <button name="action_done" states="confirm" string="Validate Inventory" type="object" icon="gtk-jump-to"/>
180                         <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="gtk-convert"/>
181                     </group>
182                 </form>
183             </field>
184         </record>
185
186         <record id="action_inventory_form" model="ir.actions.act_window">
187             <field name="name">Physical Inventories</field>
188             <field name="type">ir.actions.act_window</field>
189             <field name="res_model">stock.inventory</field>
190             <field name="view_type">form</field>
191             <field name="view_id" ref="view_inventory_tree"/>
192             <field name="context">{'full':'1'}</field>
193             <field name="search_view_id" ref="view_inventory_filter" />
194             <field name="help">Periodical Inventories are used to count the number of products available per location. You can use it once a year when you do the general inventory or whenever you need it, to correct the current stock level of a product.</field>
195         </record>
196         <menuitem action="action_inventory_form" id="menu_action_inventory_form" parent="menu_stock_inventory_control" sequence="30"/>
197
198         <record id="action_inventory_form_draft" model="ir.actions.act_window">
199             <field name="name">Draft Physical Inventories</field>
200             <field name="type">ir.actions.act_window</field>
201             <field name="res_model">stock.inventory</field>
202             <field name="view_type">form</field>
203             <field name="domain">[('state','=','draft')]</field>
204             <field name="filter" eval="True"/>
205         </record>
206
207         <record id="view_tracking_form" model="ir.ui.view">
208             <field name="name">stock.tracking.form</field>
209             <field name="model">stock.tracking</field>
210             <field name="type">form</field>
211             <field name="arch" type="xml">
212                 <form string="Packs">
213                     <group col="2" colspan="2">
214                         <separator string="Pack Identification" colspan="2"/>
215                         <field name="name"/>
216                         <field name="serial"/>
217                         <field name="date"/>
218                         <field name="active" groups="base.group_extended"/>
219                     </group>
220                     <group col="2" colspan="2">
221                         <separator string="Traceability" colspan="4"/>
222                         <button name="action_traceability" icon="gtk-go-up" string="Upstream traceability" type="object"
223                             context="{'type': '','field': ''}" colspan="2"/>
224                         <button name="action_traceability" icon="gtk-go-down" string="Downstream traceability" type="object"
225                             context="{'type': 'move_history_ids','field': ''}" colspan="2"/>
226                     </group>
227                     <notebook colspan="4">
228                         <page string="Stock Moves">
229                             <field colspan="2" name="move_ids" nolabel="1"/>
230                         </page>
231                     </notebook>
232                 </form>
233             </field>
234         </record>
235         <record id="view_tracking_tree" model="ir.ui.view">
236             <field name="name">stock.tracking.tree</field>
237             <field name="model">stock.tracking</field>
238             <field name="type">tree</field>
239             <field name="arch" type="xml">
240                 <tree string="Packs">
241                     <field name="name"/>
242                     <field name="serial"/>
243                     <field name="date"/>
244                 </tree>
245             </field>
246         </record>
247         <record id="action_tracking_form" model="ir.actions.act_window">
248             <field name="name">Packs</field>
249             <field name="type">ir.actions.act_window</field>
250             <field name="res_model">stock.tracking</field>
251             <field name="view_type">form</field>
252             <field name="view_id" ref="view_tracking_tree"/>
253             <field name="help">This is the list of all your packs. When you select a Pack, you can get the upstream or downstream traceability of the products contained in the pack.</field>
254         </record>
255         <menuitem id="menu_traceability" name="Traceability" parent="menu_stock_root" sequence="3"/>
256         <menuitem action="action_tracking_form" id="menu_action_tracking_form"
257             groups="base.group_extended"
258             sequence="6"
259             parent="menu_traceability"/>
260
261         <record id="lot_line_tree" model="ir.ui.view">
262             <field name="name">stock.tracking.tree</field>
263             <field name="model">stock.tracking</field>
264             <field name="type">tree</field>
265             <field name="field_parent">child_ids</field>
266             <field name="arch" type="xml">
267                 <tree colors="grey:not active" string="Packs">
268                     <field name="name" />
269                     <field name="serial" />
270                     <field name="date" />
271                 </tree>
272             </field>
273         </record>
274
275         <record model="ir.ui.view" id="search_stock_packs">
276             <field name="name">Pack Search</field>
277             <field name="model">stock.tracking</field>
278             <field name="type">search</field>
279             <field name="arch" type="xml">
280                 <search string="Pack Search">
281                     <group col="10" colspan="4">
282                         <field name="name" />
283                         <field name="serial" />
284                         <field name="date" />
285                         <field name="active" groups="base.group_extended"/>
286                     </group>
287                 </search>
288             </field>
289         </record>
290
291         <record id="view_production_lot_revision_form" model="ir.ui.view">
292             <field name="name">stock.production.lot.revision.form</field>
293             <field name="model">stock.production.lot.revision</field>
294             <field name="type">form</field>
295             <field name="arch" type="xml">
296                 <form string="Production Lot Revisions">
297                     <field colspan="4" name="name"/>
298                     <field colspan="2" name="indice"/>
299                     <field colspan="2" name="date"/>
300                     <newline/>
301                     <field name="author_id" readonly="1"/>
302                     <newline/>
303                     <separator string="Description" colspan="4"/>
304                     <field colspan="4" name="description" nolabel="1"/>
305                 </form>
306             </field>
307         </record>
308         <record id="view_production_lot_revision_tree" model="ir.ui.view">
309             <field name="name">stock.production.lot.revision.tree</field>
310             <field name="model">stock.production.lot.revision</field>
311             <field name="type">tree</field>
312             <field name="arch" type="xml">
313                 <tree string="Production Lot Revisions">
314                     <field name="indice"/>
315                     <field name="author_id"/>
316                     <field name="date"/>
317                     <field name="name"/>
318                 </tree>
319             </field>
320         </record>
321         <record id="view_production_lot_form" model="ir.ui.view">
322             <field name="name">stock.production.lot.form</field>
323             <field name="model">stock.production.lot</field>
324             <field name="type">form</field>
325             <field name="arch" type="xml">
326                 <form string="Production Lot">
327                     <group col="4" colspan="2">
328                         <separator string="Production Lot Identification" colspan="4"/>
329                         <field name="product_id" colspan="4"/>
330                         <field name="prefix" colspan="2"/>
331                         <field name="name" colspan="2"/>
332                         <field name="ref" colspan="4"/>
333                         <field name="date" colspan="4"/>
334                     </group>
335                     <group col="2" colspan="2">
336                         <separator string="Traceability" colspan="4"/>
337                         <field name="stock_available" colspan="4"/>
338                         <button name="action_traceability" string="Upstream Traceability" type="object" context="{'type': '', 'field': 'prodlot_id'}" icon="gtk-go-up" colspan="2"/>
339                         <button name="action_traceability" string="Downstream Traceability" type="object" context="{'type': 'move_history_ids', 'field': 'prodlot_id'}" icon="gtk-go-down" colspan="2"/>
340                     </group>
341                     <notebook colspan="4">
342                         <page string="Revisions">
343                             <field colspan="2" name="revisions" nolabel="1"/>
344                         </page>
345                         <page string="Stock Moves">
346                             <field colspan="2" name="move_ids" nolabel="1" widget="one2many_list">
347                                 <tree  string="Stock Moves">
348                                     <field name="picking_id" string="Reference"/>
349                                     <field name="origin"/>
350                                     <field name="partner_id"/>
351                                     <field name="product_id"/>
352                                     <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
353                                     <field name="product_uom" string="UoM"/>
354                                     <field name="tracking_id"/>
355                                     <field name="date"/>
356                                     <field name="prodlot_id" groups="base.group_extended"/>
357                                     <field name="location_id"/>
358                                     <field name="location_dest_id"/>
359                                     <field name="state"/>
360                                 </tree>
361                              </field>
362                         </page>
363                     </notebook>
364                 </form>
365             </field>
366         </record>
367         <record id="view_production_lot_tree" model="ir.ui.view">
368             <field name="name">stock.production.lot.tree</field>
369             <field name="model">stock.production.lot</field>
370             <field name="type">tree</field>
371             <field name="arch" type="xml">
372                 <tree string="Production Lot">
373                     <field name="prefix" />
374                     <field name="name"/>
375                     <field name="ref"/>
376                     <field name="product_id"/>
377                     <field name="stock_available"/>
378                     <field name="date"/>
379                 </tree>
380             </field>
381         </record>
382
383         <record model="ir.ui.view" id="search_product_lot_filter">
384             <field name="name">Production Lots Filter</field>
385             <field name="model">stock.production.lot</field>
386             <field name="type">search</field>
387             <field name="arch" type="xml">
388                 <search string="Product Lots Filter">
389                     <group col="10" colspan="4">
390                         <filter icon="terp-check" name="available" string="Available" domain="[('stock_available', '&gt;', 0)]" help="Available Product Lots" />
391                         <separator orientation="vertical"/>
392                         <field name="prefix"/>
393                         <field name="name"/>
394                         <field name="ref"/>
395                         <field name="product_id"/>
396                         <field name="date"/>
397                     </group>
398                     <newline/>
399                     <group expand="0" string="Group By..." colspan="4" col="8">
400                         <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
401                     </group>
402                 </search>
403             </field>
404         </record>
405
406         <record id="action_production_lot_form" model="ir.actions.act_window">
407             <field name="name">Production Lots</field>
408             <field name="type">ir.actions.act_window</field>
409             <field name="res_model">stock.production.lot</field>
410             <field name="view_type">form</field>
411             <field name="view_id" ref="view_production_lot_tree"/>
412             <field name="search_view_id" ref="search_product_lot_filter" />
413             <field name="context">{'full':'1',"search_default_available":1}</field>
414             <field name="help">This is the list of all the production lots (serial numbers) you recorded. When you select a lot, you can get the upstream or downstream traceability of the products contained in lot. By default, the list is filtred on the serial numbers that are available in your warehouse but you can uncheck the 'Available' button to get all the lots you produced, received or delivered to customers.</field>
415         </record>
416         <menuitem action="action_production_lot_form" id="menu_action_production_lot_form"
417             parent="menu_traceability" groups="base.group_extended"
418             sequence="1"/>
419
420         #
421         # Lot composition (history)
422         #
423         <record id="stock_move_tree" model="ir.ui.view">
424             <field name="name">Stock Moves</field>
425             <field name="model">stock.move</field>
426             <field name="type">tree</field>
427             <field name="field_parent">move_history_ids</field>
428             <field name="arch" type="xml">
429                 <tree colors="grey:state in ('cancel')" string="Moves">
430                     <field name="product_id" />
431                     <field name="product_qty" />
432                     <field name="product_uom"  string="UOM"/>
433                     <field name="prodlot_id"  groups="base.group_extended"/>
434                     <field groups="base.group_extended" name="tracking_id"/>
435                     <field name="product_packaging" domain="[('product_id','=',product_id)]" groups="base.group_extended"/>
436                     <field name="picking_id"/>
437                     <field name="location_id" />
438                     <field name="location_dest_id" />
439                     <field name="create_date"/>
440                     <field name="date" string="Date"/>
441                     <field name="date_expected" string="Date Expected"/>
442                     <field name="state"/>
443                     <button name="action_done" states="confirmed,assigned" string="Process" type="object" icon="gtk-go-forward"/>
444                 </tree>
445             </field>
446         </record>
447
448         <record id="stock_move_tree2" model="ir.ui.view">
449             <field name="name">Stock Moves</field>
450             <field name="model">stock.move</field>
451             <field name="type">tree</field>
452             <field name="field_parent">move_history_ids2</field>
453             <field name="arch" type="xml">
454                 <tree colors="grey:state in ('cancel')" string="Moves">
455                     <field name="product_id" />
456                     <field name="product_qty" />
457                     <field name="product_uom"  string="UOM"/>
458                     <field name="prodlot_id"  groups="base.group_extended"/>
459                     <field groups="base.group_extended" name="tracking_id"/>
460                     <field name="product_packaging" domain="[('product_id','=',product_id)]" groups="base.group_extended"/>
461                     <field name="picking_id"/>
462                     <field name="location_id" />
463                     <field name="location_dest_id" />
464                     <field name="create_date" />
465                     <field name="date" string="Date"/>
466                      <field name="date_expected" string="Date Expected"/>
467                     <field name="state"/>
468                 </tree>
469             </field>
470         </record>
471
472         <record id="action3" model="ir.actions.act_window">
473             <field name="name">Downstream traceability</field>
474             <field name="type">ir.actions.act_window</field>
475             <field name="res_model">stock.move</field>
476             <field name="domain">[('id','in',active_ids)]</field>
477             <field name="view_type">tree</field>
478             <field eval="stock_move_tree2" name="view_id"/>
479         </record>
480
481         <record id="ir_move_traceability_upstream" model="ir.values">
482             <field name="key2">tree_but_action</field>
483             <field name="model">stock.move</field>
484             <field name="name">Downstream traceability</field>
485             <field eval="'ir.actions.act_window,'+str(action3)" name="value"/>
486             <field eval="True" name="object"/>
487         </record>
488
489         <record id="action5" model="ir.actions.act_window">
490             <field name="name">Upstream traceability</field>
491             <field name="type">ir.actions.act_window</field>
492             <field name="res_model">stock.move</field>
493             <field name="domain">[('id','in',active_ids)]</field>
494             <field name="view_type">tree</field>
495             <field eval="stock_move_tree" name="view_id"/>
496         </record>
497
498         <record id="ir_move_traceability_downstream" model="ir.values">
499             <field name="key2">tree_but_action</field>
500             <field name="model">stock.move</field>
501             <field name="name">Upstream traceability</field>
502             <field eval="'ir.actions.act_window,'+str(action5)" name="value"/>
503             <field eval="True" name="object"/>
504         </record>
505
506         <record id="view_location_form" model="ir.ui.view">
507             <field name="name">stock.location.form</field>
508             <field name="model">stock.location</field>
509             <field name="type">form</field>
510             <field name="arch" type="xml">
511                 <form string="Stock Location">
512                     <group col="2" colspan="2">
513                         <separator string="Location" colspan="2"/>
514                         <field name="name"/>
515                         <field name="usage"/>
516                         <field name="location_id"/>
517                     </group>
518                     <group col="4" colspan="2">
519                         <separator string="Additional Information" colspan="4"/>
520                         <field name="address_id" context="{'contact_display':'partner'}" colspan="4"/>
521                         <field name="company_id" groups="base.group_multi_company" widget="selection" colspan="4"/>
522                         <field name="icon" groups="base.group_extended" colspan="4"/>
523                         <field name="scrap_location" groups="base.group_extended"/>
524                         <field name="active" groups="base.group_extended"/>
525                     </group>
526                     <group col="2" colspan="2" groups="base.group_extended">
527                         <separator string="Chained Locations" colspan="2"/>
528                         <field name="chained_location_type"/>
529                         <field name="chained_location_id"  attrs="{'required':[('chained_location_type','=','fixed')]}"/>
530                         <field name="chained_auto_packing"/>
531                         <field name="chained_delay"/>
532                         <field name="chained_journal_id"/>
533                         <field name="chained_picking_type"/>
534                         <field name="chained_company_id" widget="selection"/>
535                     </group>
536                     <group col="2" colspan="2">
537                         <separator string="Localization" colspan="2"/>
538                         <field name="posx"/>
539                         <field name="posy"/>
540                         <field name="posz"/>
541                         <separator string="Accounting Information" colspan="2" groups="base.group_extended"/>
542                         <field name="valuation_in_account_id" attrs="{'readonly':[('usage','not in',('inventory','production'))]}" groups="base.group_extended"/>
543                         <field name="valuation_out_account_id" attrs="{'readonly':[('usage','not in',('inventory','production'))]}" groups="base.group_extended"/>
544                     </group>
545                     <separator string="Additional Information" colspan="4"/>
546                     <field colspan="4" name="comment" nolabel="1"/>
547                 </form>
548             </field>
549         </record>
550
551         <record id="view_location_search" model="ir.ui.view">
552             <field name="name">stock.location.search</field>
553             <field name="model">stock.location</field>
554             <field name="type">search</field>
555             <field name="arch" type="xml">
556                 <search string="Stock Locations">
557                     <filter icon="terp-go-home" name="in_location"
558                         string="Internal" domain="[('usage', '=', 'internal')]" help="Internal Locations" />
559                     <filter icon="terp-personal" name="customer"
560                         string="Customer" domain="[('usage', '=', 'customer')]" help="Customer Locations" />
561                     <filter icon="terp-personal" name="supplier"
562                         string="Supplier" domain="[('usage', '=', 'supplier')]" help="Supplier Locations" />
563                     <separator orientation="vertical"/>
564                     <field name="name"/>
565                 </search>
566             </field>
567         </record>
568
569
570         <record id="view_location_tree2" model="ir.ui.view">
571             <field name="name">stock.location.tree</field>
572             <field name="model">stock.location</field>
573             <field name="type">tree</field>
574             <field name="priority" eval="2"/>
575             <field name="arch" type="xml">
576                 <tree string="Stock Location" colors="blue:usage=='view';darkred:usage=='internal'">
577                     <field name="complete_name"/>
578                     <field name="usage"/>
579                     <field name="stock_real" invisible="'product_id' not in context"/>
580                     <field name="stock_virtual" invisible="'product_id' not in context"/>
581                 </tree>
582             </field>
583         </record>
584
585         <record id="action_location_form" model="ir.actions.act_window">
586             <field name="name">Locations</field>
587             <field name="res_model">stock.location</field>
588             <field name="type">ir.actions.act_window</field>
589             <field name="view_type">form</field>
590             <field name="view_id" ref="view_location_tree2"/>
591             <field name="search_view_id" ref="view_location_search"/>
592             <field name="context">{'full':1, 'search_default_in_location':1}</field>
593             <field name="help">Define your locations to reflect your warehouse structure and organization. OpenERP is able to manage physical locations (warehouses, shelves, bin, etc), partner locations (customers, suppliers) and virtual locations which are the counterpart of the stock operations like the manufacturing orders consumptions, inventories, etc. Every stock operation in OpenERP moves the products from one location to another one. For instance, if you receive products from a supplier, OpenERP will move products from the Supplier location to the Stock location. Each report can be performed on physical, partner or virtual locations.</field>
594         </record>
595         <menuitem action="action_location_form" id="menu_action_location_form" parent="menu_warehouse_config"/>
596
597         <record id="view_location_tree" model="ir.ui.view">
598             <field name="name">stock.location.tree</field>
599             <field name="model">stock.location</field>
600             <field name="type">tree</field>
601             <field name="field_parent">child_ids</field>
602             <field name="arch" type="xml">
603                 <tree toolbar="1">
604                     <field icon="icon" name="name"/>
605                 </tree>
606             </field>
607         </record>
608         <record id="action_location_tree" model="ir.actions.act_window">
609             <field name="name">Location Structure</field>
610             <field name="res_model">stock.location</field>
611             <field name="type">ir.actions.act_window</field>
612             <field name="domain">[('location_id','=',False)]</field>
613             <field name="view_type">tree</field>
614             <field name="view_id" ref="view_location_tree"/>
615             <field name="help">This is the structure of your company's warehouses and locations. You can click on a location to get the list of the products and their stock level in this particular location and all its children.</field>
616         </record>
617         <menuitem action="action_location_tree"
618             id="menu_action_location_tree"
619             parent="menu_stock_inventory_control"
620             sequence="20"/>
621
622         <record id="view_warehouse" model="ir.ui.view">
623             <field name="name">stock.warehouse</field>
624             <field name="model">stock.warehouse</field>
625             <field name="type">form</field>
626             <field name="arch" type="xml">
627                 <form string="Warehouse">
628                     <field colspan="4" name="name" select="1"/>
629                     <field name="lot_input_id"/>
630                     <field name="lot_stock_id"/>
631                     <field name="lot_output_id"/>
632                     <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
633                     <newline/>
634                     <field name="partner_address_id" context="{'contact_display':'partner'}"/>
635                 </form>
636             </field>
637         </record>
638         <record id="view_warehouse_tree" model="ir.ui.view">
639             <field name="name">stock.warehouse.tree</field>
640             <field name="model">stock.warehouse</field>
641             <field name="type">tree</field>
642             <field name="arch" type="xml">
643                 <tree string="Warehouse">
644                     <field name="name"/>
645                     <field name="lot_input_id"/>
646                     <field name="lot_stock_id"/>
647                     <field name="lot_output_id"/>
648                     <field name="partner_address_id" context="{'contact_display':'partner'}"/>
649                 </tree>
650             </field>
651         </record>
652         <record id="action_warehouse_form" model="ir.actions.act_window">
653             <field name="name">Warehouses</field>
654             <field name="res_model">stock.warehouse</field>
655             <field name="type">ir.actions.act_window</field>
656             <field name="view_type">form</field>
657             <field name="view_id" ref="view_warehouse_tree"/>
658             <field name="help">Create and manage your warehouses and assign them a location from here</field>
659         </record>
660         <menuitem action="action_warehouse_form" id="menu_action_warehouse_form" parent="menu_warehouse_config"/>
661
662         <record model="ir.ui.view" id="stock_picking_calendar">
663             <field name="name">stock.picking.calendar</field>
664             <field name="model">stock.picking</field>
665             <field name="type">calendar</field>
666             <field name="priority" eval="2"/>
667             <field name="arch" type="xml">
668                 <calendar string="Calendar View" date_start="min_date" date_stop="max_date" color="address_id">
669                     <field name="origin"/>
670                     <field name="type"/>
671                     <field name="address_id"/>
672                 </calendar>
673             </field>
674         </record>
675         <record id="vpicktree" model="ir.ui.view">
676             <field name="name">stock.picking.tree</field>
677             <field name="model">stock.picking</field>
678             <field name="type">tree</field>
679             <field name="arch" type="xml">
680                 <tree colors="blue:state in ('draft');grey:state in ('cancel');red:state not in ('cancel', 'done') and date &lt; current_date" string="Picking list">
681                     <field name="name"/>
682                     <field name="backorder_id" groups="base.group_extended"/>
683                     <field name="origin"/>
684                     <field name="date"/>
685                     <field name="min_date"/>
686                     <field name="invoice_state"/>
687                     <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
688                     <field name="state"/>
689                     <button name="action_process" states="confirmed,assigned" groups="stock.group_stock_user" string="Process" type="object" icon="gtk-go-forward"/>
690                 </tree>
691             </field>
692         </record>
693         <record id="view_picking_form" model="ir.ui.view">
694             <field name="name">stock.picking.form</field>
695             <field name="model">stock.picking</field>
696             <field name="type">form</field>
697             <field eval="12" name="priority"/>
698             <field name="arch" type="xml">
699                 <form string="Internal Picking list">
700                     <group colspan="4" col="6">
701                         <group colspan="4" col="4">
702                             <field name="name" readonly="1"/>
703                             <field name="origin"/>
704                             <field name="address_id" on_change="onchange_partner_in(address_id)" context="{'contact_display':'partner'}" colspan="4"/>
705                             <field name="backorder_id" readonly="1" groups="base.group_extended"/>
706                         </group>
707                         <group colspan="2" col="2">
708                             <field name="date"/>
709                             <field name="min_date" readonly="1"/>
710                             <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
711                         </group>
712                     </group>
713                     <notebook colspan="4">
714                         <page string="Products">
715                             <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines}">
716                                 <tree colors="grey:scrapped == True" string="Stock Moves">
717                                     <field name="product_id"/>
718                                     <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
719                                     <field name="product_uom" string="UoM"/>
720                                     <field name="product_uos" groups="product.group_uos"/>
721                                     <button name="%(stock.move_scrap)d"
722                                         string="Scrap Products" type="action"
723                                         icon="gtk-convert" context="{'scrap': True}"
724                                         states="draft,waiting,confirmed,assigned"
725                                         groups="base.group_extended"/>
726                                     <field name="scrapped" invisible="1"/>
727                                     <field name="prodlot_id" groups="base.group_extended"/>
728                                     <button
729                                         name="%(stock.track_line)d"
730                                         string="Split in production lots"
731                                         groups="base.group_extended"
732                                         type="action" icon="terp-stock_effects-object-colorize"
733                                         states="draft,waiting,confirmed,assigned" />
734                                     <field groups="base.group_extended" name="tracking_id"/>
735                                     <button name="setlast_tracking" string="Put in current pack" type="object"
736                                         attrs="{'invisible': [('tracking_id','&lt;&gt;',False)]}"
737                                         icon="terp-stock_effects-object-colorize"
738                                         groups="base.group_extended"
739                                         states="draft,assigned,confirmed"/>
740                                     <button name="%(split_into)d" string="Put in a new pack" type="action"
741                                         groups="base.group_extended"
742                                         icon="terp-stock_effects-object-colorize"
743                                         states="draft,assigned,confirmed"/>
744                                     <field name="location_id"/>
745                                     <field name="location_dest_id"/>
746                                     <field name="date_expected" string="Date Expected"/>
747                                     <field name="state"/>
748                                 </tree>
749                                 <form string="Stock Moves">
750                                     <group colspan="2" col="4">
751                                         <separator colspan="4" string="Move Information"/>
752                                         <field name="name" invisible="1" colspan="4"/>
753                                         <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id)" colspan="4"/>
754                                         <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="3"/>
755                                         <button name="%(stock.move_scrap)d"
756                                                 string="Scrap" type="action" groups="base.group_extended"
757                                                 icon="gtk-convert" context="{'scrap': True}"
758                                                 states="draft,waiting,confirmed,assigned" colspan="1"/>
759                                         <field name="product_uom" string="Unit Of Measure" colspan="4"/>
760                                         <field name="product_uos_qty" groups="product.group_uos" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4"/>
761                                         <field groups="product.group_uos" name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4"/>
762                                         <field groups="base.group_extended" name="product_packaging"  domain="[('product_id','=',product_id)]" colspan="4"/>
763                                     </group>
764
765                                     <group colspan="2" col="2">
766                                         <separator string="Locations" colspan="2" />
767                                         <field name="location_id" domain="[('usage','=','internal')]" />
768                                         <field name="location_dest_id" domain="[('usage','=','internal')]" />
769                                     </group>
770
771                                     <group colspan="2" col="2">
772                                         <separator string="Dates" colspan="2" />
773                                         <field name="create_date" invisible="1"/>
774                                         <field name="date"/>
775                                         <field name="date_expected"/>
776                                     </group>
777
778                                     <group colspan="2" col="4" groups="base.group_extended">
779                                         <separator string="Traceability" colspan="4" groups="base.group_extended"/>
780                                         <field name="tracking_id" groups="base.group_extended"  colspan="3"/>
781                                         <button name="%(split_into)d" string="New pack" type="action"
782                                               groups="base.group_extended"
783                                               icon="terp-stock_effects-object-colorize"
784                                               states="draft,assigned,confirmed"  colspan="1"/>
785                                         <field name="prodlot_id" groups="base.group_extended"
786                                             context="{'location_id':location_id, 'product_id':product_id}"
787                                             domain="[('product_id','=?',product_id)]"
788                                             on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)"  colspan="3"/>
789                                         <button name="%(track_line)d"
790                                             groups="base.group_extended"
791                                             states="draft,waiting,confirmed,assigned"
792                                             string="Split" type="action" icon="terp-stock_effects-object-colorize" colspan="1" />
793                                     </group>
794                                     <label string="" colspan="4"/>
795                                     <field name="state"/>
796                                     <group col="4" colspan="2">
797                                         <button name="action_cancel" states="assigned" string="Cancel" type="object" icon="gtk-cancel"/>
798                                         <button name="action_confirm" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
799                                         <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
800                                         <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
801                                     </group>
802                                 </form>
803                             </field>
804                             <group col="10" colspan="4">
805                                 <field name="state" readonly="1"/>
806                                 <button name="button_cancel" states="assigned,confirmed,draft" string="_Cancel" icon="gtk-cancel"/>
807                                 <button name="draft_force_assign" states="draft" string="Process Later" type="object" icon="gtk-apply"/>
808                                 <button name="draft_validate" states="draft" string="Process Now" type="object" icon="gtk-media-play"/>
809                                 <button name="action_assign" states="confirmed" string="Check Availability" type="object" icon="gtk-find"/>
810                                 <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
811                                 <button name="action_process" states="assigned" string="Process"  groups="stock.group_stock_user" type="object" icon="gtk-go-forward"/>
812                                 <button name="%(action_stock_invoice_onshipping)d" string="Create Invoice"  attrs="{'invisible': ['|','|',('state','&lt;&gt;','done'),('invoice_state','=','invoiced'),('invoice_state','=','none')]}"  type="action" icon="terp-gtk-go-back-rtl" />
813                             </group>
814                         </page>
815                         <page string="Additional info" groups="base.group_extended,base.group_multi_company">
816                             <field name="auto_picking" groups="base.group_extended"/>
817                             <field name="invoice_state" groups="base.group_extended"/>
818                             <field name="date_done" groups="base.group_extended"/>
819                             <field name="move_type" groups="base.group_extended"/>
820                             <field name="type" groups="base.group_extended"/>
821                             <field name="company_id" groups="base.group_multi_company" widget="selection"/>
822                         </page>
823                         <page string="Notes">
824                             <field colspan="4" name="note" nolabel="1"/>
825                         </page>
826                     </notebook>
827                 </form>
828             </field>
829         </record>
830
831         <record id="view_stock_picking_filter" model="ir.ui.view">
832             <field name="name">stock.picking.list.select</field>
833             <field name="model">stock.picking</field>
834             <field name="type">search</field>
835             <field name="arch" type="xml">
836                 <search string="Search Stock Picking">
837                     <group col="10" colspan="4">
838                         <filter icon="terp-check" name="available" string="Available" domain="[('state','=','assigned')]" help="Available Pickings"/>
839                         <filter icon="terp-camera_test" string="Confirmed" domain="[('state','=','confirmed')]" help="Confirmed Pickings"/>
840                         <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" help="Pickings already processed"/>
841                         <separator orientation="vertical"/>
842                         <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order" groups="base.group_extended"/>
843                         <separator orientation="vertical"/>
844                         <filter icon="terp-dolar" name="to_invoice" string="To Invoice" domain="[('invoice_state','=','2binvoiced')]" help="Internal Pickings to invoice"/>
845                         <separator orientation="vertical"/>
846                         <field name="name"/>
847                         <field name="address_id"/>
848                         <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
849                     </group>
850                     <newline/>
851                     <group expand="0" string="Group By..." colspan="4" col="8">
852                         <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
853                         <separator orientation="vertical" />
854                         <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
855                         <separator orientation="vertical" />
856                         <filter string="Date" icon="terp-go-month" domain="[]"  context="{'group_by':'date'}"/>
857                         <separator orientation="vertical" />
858                         <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}"  groups="base.group_extended"/>
859                     </group>
860                 </search>
861             </field>
862         </record>
863
864         <!--
865         #
866         # Sending Products
867         #
868         -->
869         <record id="view_picking_out_tree" model="ir.ui.view">
870             <field name="name">stock.picking.out.tree</field>
871             <field name="model">stock.picking</field>
872             <field name="type">tree</field>
873             <field name="arch" type="xml">
874                 <tree colors="blue:state in ('draft');grey:state in ('cancel');red:state not in ('cancel', 'done') and date &lt; current_date" string="Delivery Orders">
875                     <field name="name"/>
876                     <field name="partner_id"/>
877                     <field name="origin"/>
878                     <field name="date"/>
879                     <field name="min_date"/>
880                     <field name="backorder_id" groups="base.group_extended"/>
881                     <field name="invoice_state"/>
882                     <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
883                     <field name="state"/>
884                     <button name="action_process" states="assigned" string="Process" type="object" icon="gtk-go-forward"/>
885                 </tree>
886             </field>
887         </record>
888         <record id="view_picking_out_form" model="ir.ui.view">
889             <field name="name">stock.picking.out.form</field>
890             <field name="model">stock.picking</field>
891             <field name="type">form</field>
892             <field name="arch" type="xml">
893                 <form string="Delivery Orders">
894                     <group col="6" colspan="4">
895                         <group colspan="4" col="4">
896                             <field name="name" readonly="1"/>
897                             <field name="origin" readonly="1"/>
898                             <field name="address_id" on_change="onchange_partner_in(address_id)" context="{'contact_display':'partner'}" colspan="4"/>
899                             <field name="invoice_state"/>
900                             <field name="backorder_id" readonly="1" groups="base.group_extended"/>
901                         </group>
902                         <group colspan="2" col="2">
903                             <field name="date"/>
904                             <field name="min_date" readonly="1"/>
905                             <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
906                         </group>
907                     </group>
908                     <notebook colspan="4">
909                         <page string="Products">
910                             <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines, 'address_out_id': address_id}" >
911                                 <tree colors="grey:scrapped==True" string="Stock Moves">
912                                     <field name="product_id"/>
913                                     <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
914                                     <field name="product_uom" string="UoM"/>
915                                     <field name="product_uos" groups="product.group_uos"/>
916                                     <button name="%(stock.move_scrap)d"
917                                         string="Scrap Products" type="action"
918                                         icon="gtk-convert" context="{'scrap': True}"
919                                         states="draft,waiting,confirmed,assigned" />
920                                     <field name="scrapped" invisible="1"/>
921                                     <field name="prodlot_id" groups="base.group_extended"/>
922                                     <button name="%(track_line)d" string="Split in production lots" type="action"
923                                         icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('prodlot_id','&lt;&gt;',False)]}"
924                                         states="draft,assigned,confirmed"
925                                         groups="base.group_extended"/>
926                                     <field name="tracking_id" groups="base.group_extended"/>
927                                     <button name="setlast_tracking" string="Put in current pack" type="object"
928                                         attrs="{'invisible': [('tracking_id','&lt;&gt;',False)]}"
929                                         groups="base.group_extended"
930                                         icon="terp-stock_effects-object-colorize"
931                                         states="draft,assigned,confirmed"/>
932                                     <button name="%(split_into)d" string="Put in a new pack" type="action"
933                                         icon="terp-stock_effects-object-colorize"
934                                         groups="base.group_extended"
935                                         states="draft,assigned,confirmed"/>
936                                     <field name="location_id"/>
937                                     <field name="date"/>
938                                     <field name="state"/>
939                                     <button name="%(action_partial_move_server)d" string="Partial" type="action" states="confirmed,assigned" icon="gtk-justify-fill"/>
940                                     <button name="action_done" states="confirmed,assigned" string="Process" type="object" icon="gtk-go-forward"/>
941                                 </tree>
942                                 <form string="Stock Moves">
943                                     <group colspan="2" col="4">
944                                         <separator colspan="4" string="Move Information"/>
945                                         <field name="name" invisible="1" colspan="4" />
946                                         <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id)" colspan="4" />
947                                         <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="3" />
948                                         <button name="%(stock.move_scrap)d"
949                                                 string="Scrap" type="action"
950                                                 icon="gtk-convert" context="{'scrap': True}"
951                                                 states="draft,waiting,confirmed,assigned" colspan="1" groups="base.group_extended"/>
952                                         <field name="product_uom" string="Unit Of Measure" colspan="4" />
953                                         <field name="product_uos_qty" groups="product.group_uos" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4" />
954                                         <field groups="product.group_uos" name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" />
955                                         <field groups="base.group_extended" name="product_packaging"  domain="[('product_id','=',product_id)]" colspan="4" />
956                                     </group>
957
958                                     <group colspan="2" col="2">
959                                         <separator string="Locations" colspan="2" />
960                                         <field name="location_id" domain="[('usage','=','internal')]" />
961                                         <field name="location_dest_id" domain="[('usage','&lt;&gt;','view')]" />
962                                     </group>
963
964                                     <group colspan="2" col="2">
965                                         <separator string="Dates" colspan="2" />
966                                         <field name="create_date" invisible="1"/>
967                                         <field name="date"/>
968                                         <field name="date_expected"/>
969                                     </group>
970
971                                     <group colspan="2" col="4" groups="base.group_extended">
972                                         <separator string="Traceability" colspan="4" groups="base.group_extended"/>
973                                         <field name="tracking_id" groups="base.group_extended" colspan="3" />
974                                           <button name="%(split_into)d" string="New pack" type="action"
975                                               groups="base.group_extended"
976                                               icon="terp-stock_effects-object-colorize"
977                                               states="draft,assigned,confirmed" colspan="1"/>
978                                         <field name="prodlot_id" groups="base.group_extended"
979                                             context="{'location_id':location_id, 'product_id':product_id}"
980                                             domain="[('product_id','=?',product_id)]"
981                                             on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"/>
982                                         <button name="%(track_line)d"
983                                               groups="base.group_extended"
984                                               states="draft,waiting,confirmed,assigned"
985                                               string="Split" type="action" icon="terp-stock_effects-object-colorize" colspan="1" />
986                                     </group>
987                                     <label string="" colspan="4"/>
988                                     <field name="state"/>
989                                     <group col="4" colspan="2">
990                                         <button name="action_cancel" states="assigned" string="Cancel" type="object" icon="gtk-cancel"/>
991                                         <button name="action_confirm" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
992                                         <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
993                                         <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
994                                     </group>
995                                 </form>
996                             </field>
997                             <group col="12" colspan="4">
998                                 <field name="state" readonly="1"/>
999                                 <button name="button_cancel" states="assigned,confirmed,draft" string="_Cancel" icon="gtk-cancel"/>
1000                                 <button name="draft_force_assign" states="draft" string="Process Later" type="object" icon="gtk-ok"/>
1001                                 <button name="draft_validate" states="draft" string="Process Now" type="object" icon="gtk-yes"/>
1002                                 <button name="action_assign" states="confirmed" string="Check Availability" type="object" groups="base.group_extended" icon="gtk-find"/>
1003                                 <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
1004                                 <button name="action_process" states="assigned" string="Process" type="object" icon="gtk-go-forward"/>
1005                                 <button name="%(act_stock_return_picking)d" string="Return Products" states="done" type="action" icon="gtk-execute"/>
1006                                 <button name="%(action_stock_invoice_onshipping)d" string="Create Invoice" attrs="{'invisible': ['|','|',('state','&lt;&gt;','done'),('invoice_state','=','invoiced'),('invoice_state','=','none')]}"  type="action" icon="terp-gtk-go-back-rtl"/>
1007                             </group>
1008                         </page>
1009                         <page string="Additional info" groups="base.group_extended,base.group_multi_company">
1010                             <field name="auto_picking" groups="base.group_extended"/>
1011                             <field name="date_done" groups="base.group_extended"/>
1012                             <field name="move_type" groups="base.group_extended"/>
1013                             <field name="type" groups="base.group_extended"/>
1014                             <field name="company_id" groups="base.group_multi_company" widget="selection"/>
1015                         </page>
1016                         <page string="Notes">
1017                             <field colspan="4" name="note" nolabel="1"/>
1018                         </page>
1019                     </notebook>
1020                 </form>
1021             </field>
1022         </record>
1023
1024         <record id="view_picking_out_search" model="ir.ui.view">
1025             <field name="name">stock.picking.out.search</field>
1026             <field name="model">stock.picking</field>
1027             <field name="type">search</field>
1028             <field name="arch" type="xml">
1029                 <search string="Picking list">
1030                     <group col="8" colspan="4">
1031                         <filter icon="terp-check" name="available" string="Available" domain="[('state','=','assigned')]" help="Assigned Delivery Orders"/>
1032                         <filter icon="terp-camera_test" name="confirmed" string="Confirmed" domain="[('state','=','confirmed')]" help="Confirmed Delivery Orders"/>
1033                         <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" help="Delivery orders already processed"/>
1034                         <separator orientation="vertical"/>
1035                         <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order" groups="base.group_extended"/>
1036                         <separator orientation="vertical"/>
1037                         <filter icon="terp-dolar" name="to_invoice" string="To Invoice" domain="[('invoice_state','=','2binvoiced')]" help="Delivery orders to invoice"/>
1038                         <separator orientation="vertical"/>
1039                         <field name="name"/>
1040                         <field name="partner_id" />
1041                         <field name="origin"/>
1042                         <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
1043                         <field name="company_id" widget="selection" groups="base.group_multi_company"/>
1044                    </group>
1045                     <newline/>
1046                     <group expand="0" string="Group By..." colspan="4" col="8">
1047                         <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
1048                         <separator orientation="vertical" />
1049                         <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1050                         <separator orientation="vertical" />
1051                         <filter string="Order Date" icon="terp-go-month" domain="[]"  context="{'group_by':'date'}"/>
1052                         <filter string="Expected Date" icon="terp-go-month" domain="[]"  context="{'group_by':'min_date'}"/>
1053                         <separator orientation="vertical" />
1054                         <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}"  groups="base.group_extended"/>
1055                     </group>
1056                 </search>
1057             </field>
1058         </record>
1059
1060         <record id="action_picking_tree" model="ir.actions.act_window">
1061             <field name="name">Delivery Orders</field>
1062             <field name="res_model">stock.picking</field>
1063             <field name="type">ir.actions.act_window</field>
1064             <field name="view_type">form</field>
1065             <field name="view_mode">tree,form,calendar</field>
1066             <field name="domain">[('type','=','out')]</field>
1067             <field name="context">{'contact_display': 'partner_address', 'search_default_available': 1}</field>
1068             <field name="search_view_id" ref="view_picking_out_search"/>
1069             <field name="help">This is the list of all delivery orders that have to be prepared, according to your different sales orders and your logistics rules.</field>
1070         </record>
1071         <record id="action_picking_tree_out_view1_waiting" model="ir.actions.act_window.view">
1072             <field eval="1" name="sequence"/>
1073             <field name="view_mode">tree</field>
1074             <field name="view_id" ref="view_picking_out_tree"/>
1075             <field name="act_window_id" ref="action_picking_tree"/>
1076         </record>
1077         <record id="action_picking_tree_out_view2_waiting" model="ir.actions.act_window.view">
1078             <field eval="2" name="sequence"/>
1079             <field name="view_mode">form</field>
1080             <field name="view_id" ref="view_picking_out_form"/>
1081             <field name="act_window_id" ref="action_picking_tree"/>
1082         </record>
1083         <record id="action_picking_tree_out_view2_waiting_cal" model="ir.actions.act_window.view">
1084             <field eval="3" name="sequence"/>
1085             <field name="view_mode">calendar</field>
1086             <field name="act_window_id" ref="action_picking_tree"/>
1087         </record>
1088         <menuitem action="action_picking_tree" id="menu_action_picking_tree" parent="menu_stock_warehouse_mgmt" sequence="3"/>
1089
1090         <record id="view_picking_in_tree" model="ir.ui.view">
1091             <field name="name">stock.picking.in.tree</field>
1092             <field name="model">stock.picking</field>
1093             <field name="type">tree</field>
1094             <field name="arch" type="xml">
1095                 <tree colors="blue:state in ('draft');grey:state in ('done');red:state not in ('cancel', 'done') and date &lt; current_date" string="Picking list">
1096                     <field name="name"/>
1097                     <field name="partner_id" />
1098                     <field name="backorder_id" groups="base.group_extended"/>
1099                     <field name="origin"/>
1100                     <field name="date"/>
1101                     <field name="min_date"/>
1102                     <field name="invoice_state" groups="base.group_extended"/>
1103                     <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
1104                     <field name="state"/>
1105                     <button name="action_process" states="assigned" string="Process" type="object" icon="gtk-go-forward"/>
1106                     <button name="button_cancel" states="assigned,confirmed,draft" string="Cancel" icon="gtk-cancel" confirm="This operation will cancel the shipment. Do you want to continue?" />
1107                 </tree>
1108             </field>
1109         </record>
1110         <record id="view_picking_in_form" model="ir.ui.view">
1111             <field name="name">stock.picking.in.form</field>
1112             <field name="model">stock.picking</field>
1113             <field name="type">form</field>
1114             <field name="arch" type="xml">
1115                 <form string="Input Picking List">
1116                     <group colspan="4" col="6">
1117                         <group colspan="4" col="4">
1118                             <field name="name" readonly="1"/>
1119                             <field name="origin"/>
1120                             <field name="address_id" on_change="onchange_partner_in(address_id)" context="{'contact_display':'partner'}" colspan="4"/>
1121                             <field name="invoice_state" string="Invoice Control"/>
1122                             <field name="backorder_id" readonly="1" groups="base.group_extended"/>
1123                         </group>
1124                         <group colspan="2" col="2">
1125                             <field name="date"/>
1126                             <field name="min_date" readonly="1"/>
1127                             <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
1128                         </group>
1129                     </group>
1130                     <notebook colspan="4">
1131                         <page string="General Information">
1132                             <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines, 'address_in_id': address_id}" >
1133                                 <tree colors="grey:scrapped==True" string="Stock Moves">
1134                                     <field name="product_id" />
1135                                     <field name="product_qty" />
1136                                     <field name="product_uom" string="UoM" />
1137                                     <button name="%(stock.move_scrap)d"
1138                                         string="Scrap Products" type="action"
1139                                         icon="gtk-convert" context="{'scrap': True}"
1140                                         states="draft,waiting,confirmed,assigned"
1141                                         groups="base.group_extended"/>
1142                                     <field name="scrapped" invisible="1"/>
1143                                     <field name="prodlot_id" groups="base.group_extended"/>
1144                                     <button
1145                                            name="%(stock.track_line)d"
1146                                            string="Split in production lots"
1147                                            groups="base.group_extended"
1148                                            type="action" icon="terp-stock_effects-object-colorize"
1149                                            states="draft,waiting,confirmed,assigned" />
1150                                     <field name="tracking_id" groups="base.group_extended"/>
1151                                     <button name="setlast_tracking" string="Put in current pack" type="object"
1152                                         groups="base.group_extended"
1153                                         icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('tracking_id','&lt;&gt;',False)]}"
1154                                         states="draft,assigned,confirmed"/>
1155                                     <button name="%(split_into)d" string="Put in a new pack" type="action"
1156                                         groups="base.group_extended"
1157                                         icon="terp-stock_effects-object-colorize"
1158                                         states="draft,assigned,confirmed"/>
1159                                     <field name="location_dest_id"/>
1160                                     <field name="state"/>
1161                                 </tree>
1162                                 <form string="Stock Moves">
1163                                     <group colspan="2" col="4">
1164                                         <separator colspan="4" string="Move Information"/>
1165                                         <field name="name" invisible="1" colspan="4"/>
1166                                         <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id)" colspan="4"/>
1167                                         <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="3"/>
1168                                         <button name="%(stock.move_scrap)d"
1169                                                 string="Scrap" type="action" groups="base.group_extended"
1170                                                 icon="gtk-convert" context="{'scrap': True}"
1171                                                 states="draft,waiting,confirmed,assigned" colspan="1"/>
1172                                         <field name="product_uom" string="Unit Of Measure" colspan="4"/>
1173                                         <field name="product_uos_qty" groups="product.group_uos" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4"/>
1174                                         <field groups="product.group_uos" name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4"/>
1175                                         <field groups="base.group_extended" name="product_packaging"  domain="[('product_id','=',product_id)]" colspan="4"/>
1176                                     </group>
1177
1178                                     <group colspan="2" col="2">
1179                                         <separator string="Locations" colspan="2" />
1180                                         <field name="location_id" domain="[('usage','&lt;&gt;','view')]" />
1181                                         <field name="location_dest_id" domain="[('usage','=','internal')]" />
1182                                     </group>
1183
1184                                     <group colspan="2" col="2">
1185                                         <separator string="Dates" colspan="2" />
1186                                         <field name="create_date" invisible="1"/>
1187                                         <field name="date"/>
1188                                         <field name="date_expected"/>
1189                                     </group>
1190
1191                                     <group colspan="2" col="4" groups="base.group_extended">
1192                                         <separator string="Traceability" colspan="4" groups="base.group_extended"/>
1193                                         <field name="tracking_id" groups="base.group_extended" colspan="3" />
1194                                         <button name="%(split_into)d" string="New pack" type="action"
1195                                               groups="base.group_extended"
1196                                               icon="terp-stock_effects-object-colorize"
1197                                               states="draft,assigned,confirmed" colspan="1"/>
1198                                         <field name="prodlot_id" groups="base.group_extended"
1199                                             context="{'location_id':location_id, 'product_id':product_id}"
1200                                             domain="[('product_id','=?',product_id)]"
1201                                             on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"/>
1202                                         <button name="%(track_line)d"
1203                                               groups="base.group_extended"
1204                                               states="draft,waiting,confirmed,assigned"
1205                                               string="Split" type="action" icon="terp-stock_effects-object-colorize" colspan="1" />
1206                                     </group>
1207                                     <label string="" colspan="4"/>
1208                                     <field name="state"/>
1209                                     <group col="4" colspan="2">
1210                                         <button name="action_cancel" states="assigned" string="_Cancel" type="object" icon="gtk-cancel"/>
1211                                         <button name="action_confirm" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
1212                                         <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
1213                                         <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
1214                                     </group>
1215                                 </form>
1216                             </field>
1217                             <group col="10" colspan="4">
1218                                 <field name="state" readonly="1"/>
1219                                 <button name="button_cancel" states="assigned,confirmed,draft" string="_Cancel" icon="gtk-cancel"/>
1220                                 <button name="draft_force_assign" states="draft" string="Process Later" type="object" icon="gtk-ok"/>
1221                                 <button name="draft_validate" states="draft" string="Process Now" type="object" icon="gtk-media-play"/>
1222                                 <button name="action_assign" states="confirmed" string="Check Availability" type="object" icon="gtk-find"/>
1223                                 <button name="force_assign" states="confirmed" string="Force Availability" type="object" groups="base.group_extended" icon="gtk-jump-to"/>
1224                                 <button name="action_process" states="assigned" string="Process" type="object" icon="gtk-go-forward"/>
1225                                 <group colspan="1" states="done">
1226                                     <button name="%(act_stock_return_picking)d" string="Return Products" states="done" type="action" icon="gtk-execute"/>
1227                                 </group>
1228                                     <button states="done" name="%(action_stock_invoice_onshipping)d" string="Create Invoice" attrs="{'invisible': ['|','|',('state','&lt;&gt;','done'),('invoice_state','=','invoiced'),('invoice_state','=','none')]}" type="action" icon="terp-gtk-go-back-rtl" />
1229                             </group>
1230                         </page>
1231                         <page string="Additional Info" groups="base.group_extended,base.group_multi_company">
1232                             <field name="type" groups="base.group_extended"/>
1233                             <field name="company_id" groups="base.group_multi_company" widget="selection"/>
1234                         </page>
1235                         <page string="Notes">
1236                             <field colspan="4" name="note" nolabel="1"/>
1237                         </page>
1238                     </notebook>
1239                 </form>
1240             </field>
1241         </record>
1242
1243         <record id="view_picking_in_search" model="ir.ui.view">
1244             <field name="name">stock.picking.in.search</field>
1245             <field name="model">stock.picking</field>
1246             <field name="type">search</field>
1247             <field name="arch" type="xml">
1248                 <search string="Incoming Shipments">
1249                     <group col="8" colspan="4">
1250                         <filter icon="terp-check" name="available" string="Available" domain="[('state','=','assigned')]" help="Incoming Shipments Available" />
1251                         <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" help="Incoming Shipments already processed"/>
1252                         <separator orientation="vertical" />
1253                         <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order" groups="base.group_extended"/>
1254                         <separator orientation="vertical"/>
1255                         <field name="name"/>
1256                         <field name="partner_id"/>
1257                         <field name="origin"/>
1258                         <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
1259                         <field name="company_id" widget="selection" groups="base.group_multi_company" />
1260                     </group>
1261                     <newline/>
1262                     <group expand="0" string="Extended Filters..." colspan="4" col="8">
1263                         <filter string="To invoice" name="to_invoice" icon="terp-dolar" domain="[('invoice_state', '=', '2binvoiced')]" />
1264                     </group>
1265                     <newline/>
1266                     <group expand="0" string="Group By..." colspan="4" col="8">
1267                         <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
1268                         <separator orientation="vertical" />
1269                         <filter icon="terp-stock_effects-object-colorize" name="state" string="State" domain="[]" context="{'group_by':'state'}"/>
1270                         <separator orientation="vertical" />
1271                         <filter string="Order Date" icon="terp-go-month" domain="[]"  context="{'group_by':'date'}"/>
1272                         <filter string="Expected Date" icon="terp-go-month" domain="[]"  context="{'group_by':'min_date'}"/>
1273                         <separator orientation="vertical" />
1274                         <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}"  groups="base.group_extended"/>
1275                     </group>
1276                 </search>
1277             </field>
1278         </record>
1279
1280
1281         <record id="action_picking_tree4" model="ir.actions.act_window">
1282             <field name="name">Incoming Shipments</field>
1283             <field name="res_model">stock.picking</field>
1284             <field name="type">ir.actions.act_window</field>
1285             <field name="view_type">form</field>
1286             <field name="view_mode">tree,form,calendar</field>
1287             <field name="domain">[('type','=','in')]</field>
1288             <field name="context">{'contact_display': 'partner_address',"search_default_available":1}</field>
1289             <field name="search_view_id" ref="view_picking_in_search"/>
1290             <field name="help">The Incoming Shipments is the list of all orders you will receive from your supplier. An incoming shipment contains a list of products to be received according to the original purchase order. You can validate the shipment totally or partially.</field>
1291         </record>
1292         <record id="action_invoice_tree5_view1" model="ir.actions.act_window.view">
1293             <field eval="1" name="sequence"/>
1294             <field name="view_mode">tree</field>
1295             <field name="view_id" ref="view_picking_in_tree"/>
1296             <field name="act_window_id" ref="action_picking_tree4"/>
1297         </record>
1298         <record id="action_invoice_tree5_view2" model="ir.actions.act_window.view">
1299             <field eval="2" name="sequence"/>
1300             <field name="view_mode">form</field>
1301             <field name="view_id" ref="view_picking_in_form"/>
1302             <field name="act_window_id" ref="action_picking_tree4"/>
1303         </record>
1304         <record id="action_invoice_tree5_view2_cal" model="ir.actions.act_window.view">
1305             <field eval="3" name="sequence"/>
1306             <field name="view_mode">calendar</field>
1307             <field name="act_window_id" ref="action_picking_tree4"/>
1308         </record>
1309         <menuitem action="action_picking_tree4" id="menu_action_picking_tree4" parent="menu_stock_warehouse_mgmt" sequence="1"/>
1310
1311         <record id="view_picking_internal_search" model="ir.ui.view">
1312             <field name="name">stock.picking.internal.search</field>
1313             <field name="model">stock.picking</field>
1314             <field name="type">search</field>
1315             <field name="arch" type="xml">
1316                 <search string="Internal Picking List">
1317                     <group col="8" colspan="4">
1318                         <filter icon="terp-check" string="Available" domain="[('state','=','assigned')]" help="Assigned Internal Moves"/>
1319                         <filter icon="terp-camera_test" name="confirmed" string="Confirmed" domain="[('state','=','confirmed')]" help="Confirmed Internal Moves" />
1320                         <separator orientation="vertical"/>
1321                         <field name="name"/>
1322                         <field name="origin"/>
1323                         <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
1324                         <field name="company_id" widget="selection"/>
1325                     </group>
1326                     <newline/>
1327                     <group expand="0" string="Group By..." colspan="4" col="8">
1328                         <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1329                         <separator orientation="vertical"/>
1330                         <filter string="Order Date" icon="terp-go-month" domain="[]"  context="{'group_by':'date'}"/>
1331                         <filter string="Expected Date" icon="terp-go-month" domain="[]"  context="{'group_by':'min_date'}"/>
1332                         <separator orientation="vertical"/>
1333                         <filter string="Origin" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'origin'}"/>
1334                         <separator orientation="vertical" />
1335                         <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}" groups="base.group_extended"/>
1336                     </group>
1337                 </search>
1338             </field>
1339         </record>
1340
1341         <record id="action_picking_tree6" model="ir.actions.act_window">
1342             <field name="name">Internal Moves</field>
1343             <field name="res_model">stock.picking</field>
1344             <field name="type">ir.actions.act_window</field>
1345             <field name="view_type">form</field>
1346             <field name="view_mode">tree,form,calendar</field>
1347             <field name="domain">[('type','=','internal')]</field>
1348             <field name="context">{'contact_display': 'partner_address',"search_default_available":1}</field>
1349             <field name="search_view_id" ref="view_picking_internal_search"/>
1350             <field name="help">Internal Moves display all inventory operations you have to perform in your warehouse. All operations can be categorized into stock journals, so that each worker has his own list of operations to perform in his own journal. Most operations are prepared automatically by OpenERP according to your preconfigured logistics rules, but you can also record manual stock operations.</field>
1351         </record>
1352
1353         <record model="ir.actions.act_window.view" id="action_picking_tree6_tree_view">
1354             <field name="sequence" eval="1"/>
1355             <field name="view_mode">tree</field>
1356             <field name="view_id" ref="vpicktree"/>
1357             <field name="act_window_id" ref="action_picking_tree6"/>
1358         </record>
1359         <record model="ir.actions.act_window.view" id="action_picking_tree6_form_view">
1360             <field name="sequence" eval="2"/>
1361             <field name="view_mode">form</field>
1362             <field name="view_id" ref="view_picking_form"/>
1363             <field name="act_window_id" ref="action_picking_tree6"/>
1364         </record>
1365
1366
1367
1368         <menuitem action="action_picking_tree6" id="menu_action_picking_tree6" parent="menu_stock_warehouse_mgmt" sequence="2"/>
1369
1370         <record id="view_move_tree" model="ir.ui.view">
1371             <field name="name">stock.move.tree</field>
1372             <field name="model">stock.move</field>
1373             <field name="type">tree</field>
1374             <field eval="6" name="priority"/>
1375             <field name="arch" type="xml">
1376                 <tree colors="grey:state in ('cancel');red:(state not in ('cancel','done')) and date > current_date" string="Moves" editable="top">
1377                     <field name="name"/>
1378                     <field name="picking_id" string="Reference"/>
1379                     <field name="origin"/>
1380                     <field name="create_date" invisible="1"/>
1381                     <field name="partner_id"/>
1382                     <field name="product_id"/>
1383                     <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1384                     <field name="product_uom" string="UoM"/>
1385                     <field name="product_uos" groups="product.group_uos"/>
1386                     <button name="%(stock.move_scrap)d"
1387                         string="Scrap Products" type="action"
1388                         icon="gtk-convert" context="{'scrap': True}"
1389                         states="draft,waiting,confirmed,assigned"
1390                         groups="base.group_extended"/>
1391                     <field name="prodlot_id" groups="base.group_extended"/>
1392                     <button name="%(track_line)d" string="Split in production lots" type="action"
1393                         icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('prodlot_id','&lt;&gt;',False)]}"
1394                         states="draft,waiting,confirmed,assigned,done"
1395                         context="{'default_use_exist': picking_id.type=='in'}"
1396                         groups="base.group_extended"/>
1397                     <field groups="base.group_extended" name="tracking_id"/>
1398                     <button name="setlast_tracking" string="Put in current pack" type="object"
1399                         groups="base.group_extended"
1400                         icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('tracking_id','&lt;&gt;',False)]}"
1401                         states="draft,assigned,confirmed,done"/>
1402                     <button name="%(split_into)d" string="Put in a new pack" type="action"
1403                         groups="base.group_extended"
1404                         icon="terp-stock_effects-object-colorize"
1405                         states="draft,assigned,confirmed,done"/>
1406                     <field name="location_id"/>
1407                     <field name="location_dest_id"/>
1408                     <field name="date"/>
1409                     <field name="date_expected"/>
1410                     <field name="state"/>
1411                     <button name="action_done" states="confirmed,assigned" string="Process" type="object" icon="gtk-go-forward"/>
1412                 </tree>
1413             </field>
1414         </record>
1415
1416 <!--        <menuitem id="menu_traceability_low" name="Low Level" parent="menu_traceability"/> -->
1417
1418         <record id="view_move_form" model="ir.ui.view">
1419             <field name="name">stock.move.form</field>
1420             <field name="model">stock.move</field>
1421             <field name="type">form</field>
1422             <field eval="4" name="priority"/>
1423             <field name="arch" type="xml">
1424                 <form string="Stock Moves">
1425                     <group colspan="4" col="7">
1426                         <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, False)"/>
1427                         <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1428                         <field name="product_uom" string="Unit Of Measure"/>
1429                         <button name="%(stock.move_scrap)d" groups="base.group_extended"
1430                                 string="Scrap" type="action"
1431                                 icon="gtk-convert" context="{'scrap': True}"
1432                                 states="draft,waiting,confirmed,assigned" colspan="1"/>
1433                         <newline/>
1434                         <field name="location_id" context="{'full':True}"/>
1435                         <field name="location_dest_id" context="{'full':True}"/>
1436                         <field name="address_id" context="{'contact_display':'partner'}"/>
1437
1438                     </group>
1439                     <group colspan="2" col="2">
1440                         <separator colspan="2" string="Move Information"/>
1441                         <field name="name" string="Reason"/>
1442                         <field name="product_uos_qty" groups="product.group_uos" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4"/>
1443                         <field name="product_uos" groups="product.group_uos" colspan="4"/>
1444                     </group>
1445
1446                     <group colspan="2" col="2">
1447                         <separator string="Picking" colspan="2" />
1448                         <field name="picking_id"/>
1449                         <field name="company_id" groups="base.group_multi_company" widget="selection"/>
1450                     </group>
1451
1452                     <group colspan="2" col="2">
1453                         <separator string="Dates" colspan="2" />
1454                         <field name="create_date" groups="base.group_extended"/>
1455                         <field name="date" groups="base.group_extended"/>
1456                         <field name="date_expected"/>
1457                     </group>
1458
1459                     <group colspan="2" col="4" groups="base.group_extended">
1460                         <separator string="Traceability" colspan="4" groups="base.group_extended"/>
1461                         <field name="tracking_id" colspan="3" groups="base.group_extended"/>
1462                         <button name="%(split_into)d" string="New pack" type="action"
1463                               groups="base.group_extended"
1464                               icon="terp-stock_effects-object-colorize"
1465                               states="draft,assigned,confirmed" colspan="1"/>
1466                         <field name="prodlot_id" groups="base.group_extended"
1467                             context="{'location_id':location_id, 'product_id':product_id}"
1468                             domain="[('product_id','=?',product_id)]"
1469                             on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"/>
1470                         <button name="%(track_line)d"
1471                               groups="base.group_extended"
1472                               states="draft,waiting,confirmed,assigned"
1473                               string="Split" type="action" icon="terp-stock_effects-object-colorize" colspan="1"/>
1474                     </group>
1475
1476                     <separator colspan="4"/>
1477                     <field name="state"/>
1478                     <group col="4" colspan="2">
1479                         <button name="action_cancel" states="assigned,confirmed" string="_Cancel" type="object" icon="gtk-cancel"/>
1480                         <button name="action_confirm" states="draft" string="Process Later" type="object" icon="gtk-apply"/>
1481                         <button name="force_assign" states="confirmed" string="Set Available" type="object" icon="gtk-yes"/>
1482                         <button name="action_done" states="draft,assigned,confirmed" string="Process Now" type="object" icon="gtk-jump-to"/>
1483                     </group>
1484                 </form>
1485             </field>
1486         </record>
1487
1488         <record id="view_move_search" model="ir.ui.view">
1489             <field name="name">stock.move.search</field>
1490             <field name="model">stock.move</field>
1491             <field name="type">search</field>
1492             <field eval="3" name="priority"/>
1493             <field name="arch" type="xml">
1494                 <search string="Stock Moves">
1495                     <group col="14" colspan="4">
1496                         <filter icon="terp-go-today" string="Today" domain="[('date','&lt;=',time.strftime('%%Y-%%m-%%d 23:59:59')),('date','&gt;=',time.strftime('%%Y-%%m-%%d 00:00:00'))]" help="Orders processed Today or planned for Today"/>
1497                         <separator orientation="vertical"/>
1498                         <filter icon="terp-dialog-close" string="Done" name="done" domain="[('state','=','done')]" help="Stock moves that have been processed"/>
1499                         <filter icon="terp-stock" string="Future" name="future" domain="[('state','in',('assigned','confirmed','waiting'))]" help="Stock moves that are Confirmed, Available or Waiting"/>
1500                         <filter icon="terp-camera_test" string="Ready" name="ready" domain="[('state','=','assigned')]" help="Stock moves that are Available (Ready to process)"/>
1501                         <separator orientation="vertical"/>
1502                         <field name="product_id"/>
1503                         <field name="location_id" string="Location" filter_domain="['|',('location_id','ilike',self),('location_dest_id','ilike',self)]"/>
1504                         <field name="address_id" string="Partner" context="{'contact_display':'partner'}" filter_domain="[('picking_id.address_id','ilike',self)]"/>
1505                         <field name="date"/>
1506                     </group>
1507                     <newline/>
1508                     <group expand="0" string="Extended Filters..." colspan="4" col="8" groups="base.group_extended">
1509                             <field name="origin"/>
1510                             <field name="picking_id"/>
1511                             <field name="prodlot_id"/>
1512                             <field name="tracking_id"/>
1513                             <field name="state"/>
1514                     </group>
1515                     <newline/>
1516                     <group expand="0" string="Group By..." colspan="4" col="8" groups="base.group_extended">
1517                         <filter string="Product" name="by_product" icon="terp-accessories-archiver" domain="[]"  context="{'group_by':'product_id'}"/>
1518                         <filter string="Picking" name="groupby_picking_id" icon="terp-accessories-archiver" domain="[]"  context="{'group_by':'picking_id'}"/>
1519                         <filter string="Lot" name="groupby_prodlot_id" icon="terp-accessories-archiver" domain="[]"  context="{'group_by':'prodlot_id'}"/>
1520                         <filter string="Pack" name="groupby_tracking_id" icon="terp-accessories-archiver" domain="[]"  context="{'group_by':'tracking_id'}"/>
1521                         <separator orientation="vertical"/>
1522                         <filter string="Source" name="groupby_location_id" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'location_id'}"/>
1523                         <filter string="Destination" name="groupby_dest_location_id" icon="terp-gtk-jump-to-ltr" domain="[]" context="{'group_by':'location_dest_id'}"/>
1524                         <separator orientation="vertical"/>
1525                         <filter icon="terp-stock_effects-object-colorize" string="State" domain="[]" context="{'group_by':'state'}" />
1526                         <separator orientation="vertical"/>
1527                         <filter string="Creation" name="groupby_create_date" icon="terp-go-month" domain="[]" context="{'group_by':'create_date'}"/>
1528                         <filter string="Expected" name="groupby_date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
1529                     </group>
1530                 </search>
1531             </field>
1532         </record>
1533
1534         <record id="action_move_form2" model="ir.actions.act_window">
1535             <field name="name">Stock Moves</field>
1536             <field name="res_model">stock.move</field>
1537             <field name="type">ir.actions.act_window</field>
1538             <field name="view_type">form</field>
1539             <field name="view_id" ref="view_move_tree"/>
1540             <field name="search_view_id" ref="view_move_search"/>
1541             <field name="context">{'search_default_Available':1}</field>
1542             <field name="help">This menu gives you the full traceability of inventory operations on a specific product. You can filter on the product to see all the past or future movements for the product.</field>
1543         </record>
1544         <menuitem action="action_move_form2" id="menu_action_move_form2" parent="menu_traceability" sequence="3"/>
1545
1546         ====================================
1547         Reception Picking (By Stock Move)
1548         ====================================
1549             <!--  from stock_partial_move_view -->
1550
1551
1552
1553         <record id="view_move_tree_reception_picking" model="ir.ui.view">
1554             <field name="name">stock.move.tree2</field>
1555             <field name="model">stock.move</field>
1556             <field name="type">tree</field>
1557             <field name="priority" eval="6" />
1558             <field name="arch" type="xml">
1559                 <tree colors="grey:state in ('cancel')" string="Moves">
1560                     <field name="picking_id" string="Reference"/>
1561                     <field name="origin"/>
1562                     <field name="partner_id" string="Partner"/>
1563                     <field name="product_id"/>
1564                     <field name="product_qty" />
1565                     <field name="product_uom" string="UoM"/>
1566                     <button name="%(stock.move_scrap)d"
1567                         string="Scrap Products" type="action"
1568                         icon="gtk-convert" context="{'scrap': True}"
1569                         states="draft,waiting,confirmed,assigned" groups="base.group_extended"/>
1570                     <field name="prodlot_id" groups="base.group_extended"/>
1571                     <button name="%(track_line)d" string="Split in production lots" type="action"
1572                         icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('prodlot_id','&lt;&gt;',False)]}"
1573                        states="draft,waiting,confirmed,assigned,done"
1574                         context="{'default_use_exist': picking_id.type=='in'}"
1575                         groups="base.group_extended"/>
1576                     <field name="tracking_id" groups="base.group_extended"/>
1577                     <button name="setlast_tracking" string="Put in current pack" type="object"
1578                         attrs="{'invisible': [('tracking_id','&lt;&gt;',False)]}"
1579                         groups="base.group_extended"
1580                         icon="terp-stock_effects-object-colorize"
1581                         states="draft,assigned,confirmed,done"/>
1582                     <button name="%(split_into)d" string="Put in a new pack" type="action"
1583                         groups="base.group_extended"
1584                         icon="terp-stock_effects-object-colorize"
1585                         states="draft,assigned,confirmed,done"/>
1586                     <field name="date"/>
1587                     <field name="state"/>
1588                     <button name="action_assign" states="confirmed" string="Set Available" type="object" icon="gtk-yes"/>
1589                     <button name="%(action_partial_move_server)d" string="Partial" type="action" states="confirmed,assigned" icon="gtk-justify-fill"/>
1590                     <button name="action_done" states="confirmed,assigned" string="Process" type="object" icon="gtk-go-forward"/>
1591                 </tree>
1592             </field>
1593         </record>
1594         <!-- test -->
1595           <record id="view_move_tree_reception_picking_board" model="ir.ui.view">
1596             <field name="name">stock.move.tree3</field>
1597             <field name="model">stock.move</field>
1598             <field name="type">tree</field>
1599             <field eval="6" name="priority"/>
1600             <field name="arch" type="xml">
1601                 <tree string="Moves">
1602                     <field name="picking_id" string="Reference"/>
1603                     <field name="partner_id" string="Partner"/>
1604                     <field name="product_id"/>
1605                     <field name="product_qty" />
1606                     <field name="product_uom" string="UoM"/>
1607                     <field name="date"/>
1608                     <button name="action_done" states="confirmed,assigned" string="Process" type="object" icon="gtk-go-forward"/>
1609                 </tree>
1610             </field>
1611         </record>
1612
1613
1614         <record id="view_move_form_reception_picking" model="ir.ui.view">
1615             <field name="name">stock.move.form2</field>
1616             <field name="model">stock.move</field>
1617             <field name="type">form</field>
1618             <field eval="6" name="priority"/>
1619             <field name="arch" type="xml">
1620                 <form string="Receive Products">
1621                     <group colspan="4" col="7">
1622                         <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, False)"/>
1623                         <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1624                         <field name="product_uom" string="Unit Of Measure"/>
1625                         <button name="%(stock.move_scrap)d" groups="base.group_extended"
1626                                 string="Scrap" type="action"
1627                                 icon="gtk-convert" context="{'scrap': True}"
1628                                 states="draft,waiting,confirmed,assigned" colspan="1"/>
1629                         <newline/>
1630                         <field name="location_id" context="{'full':True}"/>
1631                         <field name="location_dest_id" context="{'full':True}"/>
1632                         <field name="address_id" context="{'contact_display':'partner'}"/>
1633
1634                     </group>
1635                     <group colspan="2" col="2">
1636                         <separator colspan="2" string="Move Information"/>
1637                         <field name="name" string="Reason"/>
1638                         <field name="product_uos_qty" groups="product.group_uos"  on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4"/>
1639                         <field name="product_uos" groups="product.group_uos" colspan="4"/>
1640                     </group>
1641
1642                     <group colspan="2" col="2">
1643                         <separator string="Picking" colspan="2" />
1644                         <field name="picking_id"/>
1645                         <field name="company_id" groups="base.group_multi_company" widget="selection"/>
1646                     </group>
1647
1648                     <group colspan="2" col="2">
1649                         <separator string="Dates" colspan="2" />
1650                         <field name="create_date" groups="base.group_extended"/>
1651                         <field name="date" groups="base.group_extended"/>
1652                         <field name="date_expected"/>
1653                     </group>
1654
1655                     <group colspan="2" col="4" groups="base.group_extended">
1656                         <separator string="Traceability" colspan="4" groups="base.group_extended"/>
1657                         <field name="tracking_id" colspan="3" groups="base.group_extended"/>
1658                         <button name="%(split_into)d" string="New pack" type="action"
1659                               groups="base.group_extended"
1660                               icon="terp-stock_effects-object-colorize"
1661                               states="draft,assigned,confirmed,done" colspan="1"/>
1662                         <field name="prodlot_id" groups="base.group_extended"
1663                             context="{'location_id':location_id, 'product_id':product_id}"
1664                             domain="[('product_id','=?',product_id)]"
1665                             on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"/>
1666                         <button name="%(track_line)d"
1667                               groups="base.group_extended"
1668                               states="draft,waiting,confirmed,assigned,done"
1669                               string="Split" type="action" icon="terp-stock_effects-object-colorize" colspan="1"/>
1670                     </group>
1671
1672                     <separator colspan="4"/>
1673                     <field name="state"/>
1674                     <group col="5" colspan="2">
1675                         <button name="action_cancel" states="assigned,confirmed" string="_Cancel" type="object" icon="gtk-cancel"/>
1676                         <button name="action_confirm" states="draft" string="Process Later" type="object" icon="gtk-apply"/>
1677                         <button name="force_assign" states="confirmed" string="Set Available" type="object" icon="gtk-yes"/>
1678                         <button name="%(action_partial_move_server)d" states="assigned" string="Partial" type="action" icon="gtk-justify-fill"/>
1679                         <button name="action_done" states="draft,assigned,confirmed" string="Process Now" type="object" icon="gtk-jump-to"/>
1680                     </group>
1681                 </form>
1682             </field>
1683         </record>
1684
1685         <record id="view_move_search_reception_incoming_picking" model="ir.ui.view">
1686             <field name="name">stock.move.incoming.search2</field>
1687             <field name="model">stock.move</field>
1688             <field name="type">search</field>
1689             <field eval="6" name="priority"/>
1690             <field name="arch" type="xml">
1691                 <search string="Stock Moves">
1692                     <group col="8" colspan="4">
1693                         <filter icon="terp-go-today" string="Today" domain="[('date','&lt;=',time.strftime('%%Y-%%m-%%d 23:59:59')),('date','&gt;=',time.strftime('%%Y-%%m-%%d 00:00:00'))]" help="Orders planned for today"/>
1694                         <separator orientation="vertical"/>
1695                         <filter icon="terp-gtk-go-back-rtl" name="receive" string="To Do" domain="[('state','in',('confirmed','assigned'))]" help="Stock to be received"/>
1696                         <filter icon="terp-dialog-close" name="received" string="Done" domain="[('state','=','done')]"/>
1697                         <separator orientation="vertical"/>
1698                         <field name="origin"/>
1699                         <field name="partner_id" string="Partner"/>
1700                         <field name="product_id"/>
1701                     </group>
1702                     <newline/>
1703                     <group expand="0" string="Extended Filters..." groups="base.group_extended">
1704                        <field name="tracking_id" context="{'tracking': self}"/>
1705                        <field name="prodlot_id"/>
1706                     </group>
1707                     <newline/>
1708                     <group expand="0" string="Group By..." colspan="4" col="8" groups="base.group_extended">
1709                         <filter string="Supplier" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
1710                         <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
1711                         <separator orientation="vertical"/>
1712                         <filter string="Order" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'origin'}"/>
1713                         <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1714                         <separator orientation="vertical"/>
1715                         <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}" />
1716                     </group>
1717                 </search>
1718             </field>
1719         </record>
1720
1721         <record id="view_move_search_reception_outcoming_picking" model="ir.ui.view">
1722             <field name="name">stock.move.outgoing.search2</field>
1723             <field name="model">stock.move</field>
1724             <field name="type">search</field>
1725             <field eval="6" name="priority"/>
1726             <field name="arch" type="xml">
1727                 <search string="Stock Moves">
1728                     <group col="8" colspan="4">
1729                         <filter icon="terp-go-today" string="Today" domain="[('date','&lt;=',time.strftime('%%Y-%%m-%%d 23:59:59')),('date','&gt;=',time.strftime('%%Y-%%m-%%d 00:00:00'))]" help="Orders planned for today"/>
1730                         <separator orientation="vertical"/>
1731                         <filter icon="terp-gtk-go-back-rtl" name="receive" string="To Do" domain="[('state','in',('confirmed','assigned'))]" help="Stock to be delivered (available or not)"/>
1732                         <filter icon="terp-check" name="available" string="Available" domain="[('state','in',('assigned',))]" help="Stock available to be delivered"/>
1733                         <filter icon="terp-dialog-close" name="received" string="Done" domain="[('state','=','done')]"/>
1734                         <separator orientation="vertical"/>
1735                         <field name="origin"/>
1736                         <field name="partner_id" string="Partner"/>
1737                         <field name="product_id"/>
1738                     </group>
1739                     <newline/>
1740                     <group expand="0" string="Extended Filters..." groups="base.group_extended">
1741                        <field name="tracking_id" context="{'tracking_id': self}"/>
1742                        <field name="prodlot_id"/>
1743                     </group>
1744                     <newline/>
1745                     <group expand="0" string="Group By..." colspan="4" col="8" groups="base.group_extended">
1746                         <filter string="Customer" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
1747                         <separator orientation="vertical"/>
1748                         <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
1749                         <filter string="Order" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'origin'}"/>
1750                         <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1751                         <separator orientation="vertical"/>
1752                         <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}" />
1753                     </group>
1754                 </search>
1755             </field>
1756         </record>
1757
1758         <record id="action_reception_picking_move" model="ir.actions.act_window">
1759             <field name="name">Receive Products</field>
1760             <field name="res_model">stock.move</field>
1761             <field name="type">ir.actions.act_window</field>
1762             <field name="view_type">form</field>
1763             <field name="view_mode">tree,form</field>
1764             <field name="domain">['|','&amp;',('picking_id','=',False),('location_id.usage', 'in', ['customer','supplier']),'&amp;',('picking_id','!=',False),('picking_id.type','=','in')]</field>
1765             <field name="view_id" ref="view_move_tree_reception_picking"/>
1766             <field name="context" eval="'{\'search_default_receive\':1, \'product_receive\' : True, \'default_location_id\':%d, \'default_location_dest_id\':%d}' % (ref('stock_location_suppliers'),ref('stock_location_stock') )"/>
1767             <field name="search_view_id" ref="view_move_search_reception_incoming_picking"/>
1768             <field name="help">Here you can receive individual products, no matter what purchase order or picking order they come from. You will find the list of all products you are waiting for. Once you receive an order, you can filter based on the name of the supplier or the purchase order reference. Then you can confirm all products received using the buttons on the right of each line.</field>
1769         </record>
1770
1771         <record model="ir.actions.act_window.view" id="action_move_reception_picking_tree">
1772             <field name="sequence" eval="1"/>
1773             <field name="view_mode">tree</field>
1774             <field name="view_id" ref="view_move_tree_reception_picking"/>
1775             <field name="act_window_id" ref="action_reception_picking_move"/>
1776         </record>
1777         <record model="ir.actions.act_window.view" id="action_move_reception_picking_form">
1778             <field name="sequence" eval="2"/>
1779             <field name="view_mode">form</field>
1780             <field name="view_id" ref="view_move_form_reception_picking"/>
1781             <field name="act_window_id" ref="action_reception_picking_move"/>
1782         </record>
1783
1784         # -------------------------------------------------------------
1785         # Stock incoterms
1786         # -------------------------------------------------------------
1787         <record id="view_incoterms_tree" model="ir.ui.view">
1788             <field name="name">stock.incoterms.tree</field>
1789             <field name="model">stock.incoterms</field>
1790             <field name="type">tree</field>
1791             <field name="arch" type="xml">
1792                 <tree string="Incoterms">
1793                     <field name="code"/>
1794                     <field colspan="4" name="name"/>
1795                 </tree>
1796             </field>
1797         </record>
1798         <record id="stock_incoterms_form" model="ir.ui.view">
1799             <field name="name">stock.incoterms.form</field>
1800             <field name="model">stock.incoterms</field>
1801             <field name="type">form</field>
1802             <field name="arch" type="xml">
1803                 <form string="Incoterms">
1804                     <field colspan="4" name="name" select="1"/>
1805                     <field name="code" select="1"/>
1806                     <field name="active" select="1"/>
1807                 </form>
1808             </field>
1809         </record>
1810         <record id="action_incoterms_tree" model="ir.actions.act_window">
1811             <field name="name">Incoterms</field>
1812             <field name="res_model">stock.incoterms</field>
1813             <field name="type">ir.actions.act_window</field>
1814             <field name="view_type">form</field>
1815             <field name="view_mode">tree,form</field>
1816         </record>
1817
1818         <menuitem action="action_incoterms_tree" id="menu_action_incoterm_open" parent="menu_warehouse_config" sequence="7"/>
1819
1820         <act_window
1821             context="{'location': active_id}"
1822             domain="[('type','&lt;&gt;','service')]"
1823             id="act_product_location_open"
1824             name="Products"
1825             res_model="product.product"
1826             src_model="stock.location"/>
1827
1828         <act_window
1829             context="{'search_default_done': 1,'search_default_product_id': [active_id]}"
1830             id="act_product_stock_move_open"
1831             name="Stock Moves"
1832             res_model="stock.move"
1833             src_model="product.product"/>
1834
1835         <act_window
1836             domain="[('move_lines','in',[active_id])]"
1837             id="act_relate_picking"
1838             name="Related Picking"
1839             res_model="stock.picking"
1840             src_model="stock.move"/>
1841
1842         <act_window
1843             context="{'search_default_future': 1,'search_default_product_id': [active_id]}"
1844             domain="[('state','in',('waiting','confirmed','assigned'))]"
1845             id="act_product_stock_move_futur_open"
1846             name="Future Stock Moves"
1847             res_model="stock.move"
1848             src_model="product.product"
1849             groups="base.group_extended"/>
1850
1851         <record id="ir_act_product_location_open" model="ir.values">
1852             <field name="key2">tree_but_open</field>
1853             <field name="model">stock.location</field>
1854             <field name="name">Products</field>
1855             <field eval="'ir.actions.act_window,%d'%act_product_location_open" name="value"/>
1856             <field eval="True" name="object"/>
1857         </record>
1858
1859
1860         <record id="ir_act_product_location_open" model="ir.values">
1861             <field name="key2">tree_but_open</field>
1862             <field name="model">stock.location</field>
1863             <field name="name">Open Products</field>
1864             <field eval="'ir.actions.act_window,%d'%action_view_stock_location_product" name="value"/>
1865             <field eval="True" name="object"/>
1866         </record>
1867         <record id="action_picking_tree_out" model="ir.actions.act_window">
1868             <field name="name">Customers Packings</field>
1869             <field name="res_model">stock.picking</field>
1870             <field name="type">ir.actions.act_window</field>
1871             <field name="view_type">form</field>
1872             <field name="view_mode">tree,form,calendar</field>
1873             <field name="domain">[('type','=','out')]</field>
1874             <field name="context">{'contact_display': 'partner',"search_default_available":1}</field>
1875             <field name="search_view_id" ref="view_picking_in_search"/>
1876         </record>
1877         <record id="action_invoice_tree5_out" model="ir.actions.act_window.view">
1878             <field eval="1" name="sequence"/>
1879             <field name="view_mode">tree</field>
1880             <field name="view_id" ref="view_picking_in_tree"/>
1881             <field name="act_window_id" ref="action_picking_tree_out"/>
1882         </record>
1883         <record id="action_invoice_tree5_view2_out" model="ir.actions.act_window.view">
1884             <field eval="2" name="sequence"/>
1885             <field name="view_mode">form</field>
1886             <field name="view_id" ref="view_picking_in_form"/>
1887             <field name="act_window_id" ref="action_picking_tree_out"/>
1888         </record>
1889         <record id="action_invoice_tree5_viewout_cal" model="ir.actions.act_window.view">
1890             <field eval="3" name="sequence"/>
1891             <field name="view_mode">calendar</field>
1892             <field name="act_window_id" ref="action_picking_tree_out"/>
1893         </record>
1894
1895         <record id="action_out_picking_move" model="ir.actions.act_window">
1896             <field name="name">Deliver Products</field>
1897             <field name="res_model">stock.move</field>
1898             <field name="type">ir.actions.act_window</field>
1899             <field name="view_type">form</field>
1900             <field name="view_mode">tree,form</field>
1901             <field name="domain">['|','&amp;',('picking_id','=',False),('location_dest_id.usage', 'in', ['customer','supplier']),'&amp;',('picking_id','!=',False),('picking_id.type','=','out')]</field>
1902             <field name="view_id" ref="view_move_tree_reception_picking"/>
1903             <field name="context" eval="'{\'search_default_receive\':1, \'default_location_id\':%d, \'default_location_dest_id\':%d}' % (ref('stock_location_stock'),ref('stock_location_customers'))"/>
1904             <field name="search_view_id" ref="view_move_search_reception_outcoming_picking"/>
1905             <field name="help">You will find in this list all products you have to deliver to your customers. You can process the deliveries directly from this list using the buttons on the right of each line. You can filter the products to deliver by customer, products or sale order (using the Origin field).</field>
1906         </record>
1907
1908         <record model="ir.actions.act_window.view" id="action_move_out_picking_tree">
1909             <field name="sequence" eval="1"/>
1910             <field name="view_mode">tree</field>
1911             <field name="view_id" ref="view_move_tree_reception_picking"/>
1912             <field name="act_window_id" ref="action_out_picking_move"/>
1913         </record>
1914         <record model="ir.actions.act_window.view" id="action_move_out_picking_form">
1915             <field name="sequence" eval="2"/>
1916             <field name="view_mode">form</field>
1917             <field name="view_id" ref="view_move_form"/>
1918             <field name="act_window_id" ref="action_out_picking_move"/>
1919         </record>
1920
1921       <menuitem action="action_reception_picking_move" id="menu_action_pdct_in" parent="menu_stock_products_moves" sequence="1"/>
1922       <menuitem action="action_out_picking_move" id="menu_action_pdct_out" parent="menu_stock_products_moves" sequence="2"/>
1923
1924
1925          <record id="view_stock_journal_filter" model="ir.ui.view">
1926             <field name="name">stock.journal.filter</field>
1927             <field name="model">stock.journal</field>
1928             <field name="type">search</field>
1929             <field name="arch" type="xml">
1930                 <search string="Stock Journal">
1931                     <field name="name"/>
1932                     <field name="user_id"/>
1933                 </search>
1934             </field>
1935         </record>
1936         <record model="ir.ui.view" id="view_stock_journal_tree">
1937             <field name="name">Stock Journals</field>
1938             <field name="model">stock.journal</field>
1939             <field name="type">tree</field>
1940             <field name="arch" type="xml">
1941                 <tree string="Stock Journal">
1942                     <field name="name"/>
1943                     <field name="user_id"/>
1944                 </tree>
1945             </field>
1946         </record>
1947         <record model="ir.ui.view" id="view_stock_journal_form">
1948             <field name="name">Stock Journals</field>
1949             <field name="model">stock.journal</field>
1950             <field name="type">form</field>
1951             <field name="arch" type="xml">
1952                 <form string="Stock Journal">
1953                     <field name="name"/>
1954                     <field name="user_id"/>
1955                 </form>
1956             </field>
1957         </record>
1958         <record id="action_stock_journal_form" model="ir.actions.act_window">
1959             <field name="name">Stock Journals</field>
1960             <field name="res_model">stock.journal</field>
1961             <field name="type">ir.actions.act_window</field>
1962             <field name="view_type">form</field>
1963             <field name="help">The stock journal system allows you to assign each stock operation to a specific journal according to the type of operation to perform or the worker/team that should perform the operation. Examples of stock journals may be: quality control, pick lists, packing, etc.</field>
1964         </record>
1965         <menuitem
1966             action="action_stock_journal_form"
1967             id="menu_action_stock_journal_form"
1968             groups="base.group_extended"
1969             parent="menu_warehouse_config" />
1970
1971     </data>
1972 </openerp>