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