[IMP]: Removed duplicated by.. from Group by
[odoo/odoo.git] / addons / stock / stock_view.xml
1 <?xml version="1.0" encoding="utf-8"?>
2 <openerp>
3     <data>
4         <menuitem icon="terp-stock" id="menu_stock_root" name="Warehouse" sequence="2"/>
5         <menuitem id="menu_stock_warehouse_mgmt" name="Warehouse Management" parent="menu_stock_root" sequence="1"/>
6         <menuitem id="menu_stock_product" name="Product" parent="menu_stock_root" sequence="3"/>
7                 <menuitem action="product.product_normal_action" id="menu_stock_products_menu" parent="menu_stock_product" sequence="1"/>
8         <menuitem id="menu_stock_configuration" name="Configuration" parent="menu_stock_root" sequence="6"/>
9         <menuitem id="menu_stock_inventory_control" name="Inventory Control" parent="menu_stock_root" sequence="2"/>
10
11         =============================
12         Inventory Line
13         =============================
14         <record id="stock_inventory_line_tree" model="ir.ui.view">
15             <field name="name">stock.inventory.line.tree</field>
16             <field name="model">stock.inventory.line</field>
17             <field name="type">tree</field>
18             <field name="arch" type="xml">
19                 <tree string="Stock Inventory Lines">
20                     <field name="product_id"/>
21                     <field name="product_qty"/>
22                     <field name="product_uom"/>
23                     <field name="prod_lot_id"/>
24                     <field name="location_id"/>
25                 </tree>
26             </field>
27         </record>
28         <record id="view_inventory_line_form" model="ir.ui.view">
29             <field name="name">stock.inventory.line.form</field>
30             <field name="model">stock.inventory.line</field>
31             <field name="type">form</field>
32             <field name="arch" type="xml">
33                 <form string="Stock Inventory Lines">
34                     <field context="location=location_id,uom=product_uom" name="product_id" on_change="on_change_product_id(location_id,product_id,product_uom)" select="1" domain="[('type','&lt;&gt;','service')]"/>
35                     <field name="product_qty"/>
36                     <field name="product_uom"/>
37                     <field name="prod_lot_id"/>
38                     <field colspan="4" domain="[('usage','=','internal')]" name="location_id" select="1"/>
39                     <button name="%(split_inventory_lots)d" string="Split Inventory Lines" type="action" icon="gtk-justify-fill"/>
40                 </form>
41             </field>
42         </record>
43
44         =============================
45         Inventory
46         =============================
47         <record id="view_inventory_tree" model="ir.ui.view">
48             <field name="name">stock.inventory.tree</field>
49             <field name="model">stock.inventory</field>
50             <field name="type">tree</field>
51             <field name="arch" type="xml">
52                 <tree string="Lot Inventory">
53                     <field name="name"/>
54                     <field name="date"/>
55                     <field name="state"/>
56                 </tree>
57             </field>
58         </record>
59         <record id="view_inventory_form" model="ir.ui.view">
60             <field name="name">stock.inventory.form</field>
61             <field name="model">stock.inventory</field>
62             <field name="type">form</field>
63             <field name="arch" type="xml">
64                 <form string="Lot Inventory">
65                     <field name="name" select="1"/>
66                     <field name="date" select="1"/>
67                     <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
68                     <notebook colspan="4">
69                     <page string="General Informations">
70                         <field colspan="4" name="inventory_line_id" nolabel="1" widget="one2many_list">
71                             <tree string="Inventory Lines" editable="bottom">
72                                 <field context="location=location_id,uom=product_uom" name="product_id" on_change="on_change_product_id(location_id,product_id,product_uom)" select="1" domain="[('type','&lt;&gt;','service')]"/>
73                                 <field name="product_qty"/>
74                                 <field name="product_uom"/>
75                                 <field name="prod_lot_id"/>
76                                 <field colspan="4" domain="[('usage','=','internal')]" name="location_id" select="1"/>
77                             </tree>
78                             <form string="Inventory Lines">
79                                 <field colspan="4" context="location=location_id,uom=product_uom" name="product_id" on_change="on_change_product_id(location_id,product_id,product_uom)" select="1" domain="[('type','&lt;&gt;','service')]"/>
80                                 <field name="product_qty"/>
81                                 <field name="product_uom"/>
82                                 <field  domain="[('usage','=','internal')]" name="location_id" select="1"/>
83                                 <group colspan="2" col="3">
84                                         <field name="prod_lot_id"/>
85                                         <button name="%(split_inventory_lots)d" string="Split in Production Lots" type="action" icon="gtk-justify-fill"/>
86                                 </group>
87
88                             </form>
89                         </field>
90                     </page><page string="Posted Inventory">
91                         <field colspan="4" name="move_ids" nolabel="1"/>
92                     </page>
93                     </notebook>
94                     <field name="state" select="1"/>
95                     <group col="4" colspan="2">
96                         <button name="action_done" states="draft" string="Confirm Inventory" type="object" icon="gtk-apply"/>
97                         <button name="action_cancel" states="cancel" string="Set to Draft" type="object" icon="gtk-cancel"/>
98                         <button name="action_cancel_inventary" states="draft" string="Cancel Inventory" type="object" icon="gtk-cancel"/>
99                     </group>
100                 </form>
101             </field>
102         </record>
103         <record id="action_inventory_form" model="ir.actions.act_window">
104             <field name="name">Periodical Inventory</field>
105             <field name="type">ir.actions.act_window</field>
106             <field name="res_model">stock.inventory</field>
107             <field name="view_type">form</field>
108             <field name="view_id" ref="view_inventory_tree"/>
109             <field name="context">{'full':'1'}</field>
110         </record>
111         <menuitem action="action_inventory_form" id="menu_action_inventory_form" parent="menu_stock_inventory_control" sequence="2"/>
112
113         <record id="action_inventory_form_draft" model="ir.actions.act_window">
114             <field name="name">Draft Periodical Inventories</field>
115             <field name="type">ir.actions.act_window</field>
116             <field name="res_model">stock.inventory</field>
117             <field name="view_type">form</field>
118             <field name="domain">[('state','=','draft')]</field>
119             <field name="filter" eval="True"/>
120         </record>
121
122         =============================
123         Lot
124         =============================
125
126         <record id="view_tracking_form" model="ir.ui.view">
127             <field name="name">stock.tracking.form</field>
128             <field name="model">stock.tracking</field>
129             <field name="type">form</field>
130             <field name="arch" type="xml">
131                 <form string="Tracking/Serial">
132                     <field name="name" select="1"/>
133                     <field name="serial" select="1"/>
134                     <field name="date" select="1"/>
135                     <field name="active" select="1"/>
136                 </form>
137             </field>
138         </record>
139         <record id="view_tracking_tree" model="ir.ui.view">
140             <field name="name">stock.tracking.tree</field>
141             <field name="model">stock.tracking</field>
142             <field name="type">tree</field>
143             <field name="arch" type="xml">
144                 <tree string="Tracking/Serial">
145                     <field name="name"/>
146                     <field name="serial"/>
147                     <field name="date"/>
148                     <field name="active"/>
149                 </tree>
150             </field>
151         </record>
152         <record id="action_tracking_form" model="ir.actions.act_window">
153             <field name="name">Tracking Lots</field>
154             <field name="type">ir.actions.act_window</field>
155             <field name="res_model">stock.tracking</field>
156             <field name="view_type">form</field>
157             <field name="view_id" ref="view_tracking_tree"/>
158         </record>
159         <menuitem id="menu_traceability" name="Traceability" parent="menu_stock_root" sequence="4"/>
160         <menuitem action="action_tracking_form" id="menu_action_tracking_form" parent="menu_traceability"/>
161
162         <record id="lot_line_tree" model="ir.ui.view">
163             <field name="name">stock.tracking.tree</field>
164             <field name="model">stock.tracking</field>
165             <field name="type">tree</field>
166             <field name="field_parent">child_ids</field>
167             <field name="arch" type="xml">
168                 <tree colors="grey:not active" string="Tracking Number">
169                     <field name="name" select="1"/>
170                     <field name="serial" select="1"/>
171                     <field name="date" select="1"/>
172                 </tree>
173             </field>
174         </record>
175
176         <record id="view_production_lot_revision_form" model="ir.ui.view">
177             <field name="name">stock.production.lot.revision.form</field>
178             <field name="model">stock.production.lot.revision</field>
179             <field name="type">form</field>
180             <field name="arch" type="xml">
181                 <form string="Production Lot Revisions">
182                     <field colspan="4" name="name"/>
183                     <field colspan="2" name="indice"/>
184                     <field colspan="2" name="date"/>
185                     <newline/>
186                     <field name="author_id" readonly="1"/>
187                     <newline/>
188                     <field name="description"/>
189                 </form>
190             </field>
191         </record>
192         <record id="view_production_lot_revision_tree" model="ir.ui.view">
193             <field name="name">stock.production.lot.revision.tree</field>
194             <field name="model">stock.production.lot.revision</field>
195             <field name="type">tree</field>
196             <field name="arch" type="xml">
197                 <tree string="Production Lot Revisions">
198                     <field name="indice"/>
199                     <field name="author_id"/>
200                     <field name="date"/>
201                     <field name="name"/>
202                 </tree>
203             </field>
204         </record>
205         <record id="view_production_lot_form" model="ir.ui.view">
206             <field name="name">stock.production.lot.form</field>
207             <field name="model">stock.production.lot</field>
208             <field name="type">form</field>
209             <field name="arch" type="xml">
210                 <form string="Production Lot">
211                         <notebook colspan="4">
212                                 <page string="Production Lot">
213                                     <field name="name" select="1"/>
214                                     <field name="ref" select="2"/>
215                                     <field name="product_id" select="1"/>
216                                     <field name="stock_available"/>
217                                     <field name="date" select="2"/>
218                                     <field colspan="4" name="revisions" nolabel="1"/>
219                             </page>
220                         </notebook>
221                 </form>
222             </field>
223         </record>
224         <record id="view_production_lot_tree" model="ir.ui.view">
225             <field name="name">stock.production.lot.tree</field>
226             <field name="model">stock.production.lot</field>
227             <field name="type">tree</field>
228             <field name="arch" type="xml">
229                 <tree string="Production Lot">
230                     <field name="date"/>
231                     <field name="name"/>
232                     <field name="ref"/>
233                     <field name="product_id"/>
234                     <field name="stock_available"/>
235                 </tree>
236             </field>
237         </record>
238         <record id="action_production_lot_form" model="ir.actions.act_window">
239             <field name="name">Production Lots</field>
240             <field name="type">ir.actions.act_window</field>
241             <field name="res_model">stock.production.lot</field>
242             <field name="view_type">form</field>
243             <field name="view_id" ref="view_production_lot_tree"/>
244             <field name="context">{'full':'1'}</field>
245         </record>
246         <menuitem action="action_production_lot_form" id="menu_action_production_lot_form" parent="menu_traceability"/>
247
248         #
249         # Lot composition (history)
250         #
251         <record id="stock_move_tree" model="ir.ui.view">
252             <field name="name">Stock Moves</field>
253             <field name="model">stock.move</field>
254             <field name="type">tree</field>
255             <field name="field_parent">move_history_ids</field>
256             <field name="arch" type="xml">
257                 <tree colors="grey:state in ('cancel');black:state not in ('cancel')" string="Moves">
258                     <field name="product_id" select="1"/>
259                     <field name="product_qty" select="1"/>
260                     <field name="product_uom" select="1" string="UOM"/>
261                     <field name="prodlot_id" select="1"/>
262                     <field name="product_packaging" domain="[('product_id','=',product_id)]"/>
263                     <field name="picking_id"/>
264                     <field name="location_id" select="1"/>
265                     <field name="location_dest_id" select="1"/>
266                     <field name="date" select="1"/>
267                     <field name="date_planned" select="1" string="Date"/>
268                     <field name="state"/>
269                 </tree>
270             </field>
271         </record>
272
273         <record id="stock_move_tree2" model="ir.ui.view">
274             <field name="name">Stock Moves</field>
275             <field name="model">stock.move</field>
276             <field name="type">tree</field>
277             <field name="field_parent">move_history_ids2</field>
278             <field name="arch" type="xml">
279                 <tree colors="grey:state in ('cancel');black:state not in ('cancel')" string="Moves">
280                     <field name="product_id" select="1"/>
281                     <field name="product_qty" select="1"/>
282                     <field name="product_uom" select="1" string="UOM"/>
283                     <field name="prodlot_id" select="1"/>
284                     <field name="product_packaging" domain="[('product_id','=',product_id)]"/>
285                     <field name="picking_id"/>
286                     <field name="location_id" select="1"/>
287                     <field name="location_dest_id" select="1"/>
288                     <field name="date" select="1"/>
289                     <field name="date_planned" select="1" string="Date"/>
290                     <field name="state"/>
291                 </tree>
292             </field>
293         </record>
294
295         <wizard
296             id="action_lot2"
297             model="stock.production.lot"
298             name="stock.traceability.lot.upstream"
299             string="Upstream traceability"/>
300
301         <wizard
302             id="action_lot4"
303             model="stock.production.lot"
304             name="stock.traceability.lot.downstream"
305             string="Downstream traceability"/>
306
307         <wizard
308             id="action4"
309             model="stock.tracking"
310             name="stock.traceability.upstream"
311             string="Upstream traceability"/>
312
313         <wizard
314             id="action2"
315             model="stock.tracking"
316             name="stock.traceability.downstream"
317             string="Downstream traceability"/>
318
319         <record id="action3" model="ir.actions.act_window">
320             <field name="name">Downstream traceability</field>
321             <field name="type">ir.actions.act_window</field>
322             <field name="res_model">stock.move</field>
323             <field name="domain">[('id','in',active_ids)]</field>
324             <field name="view_type">tree</field>
325             <field eval="stock_move_tree2" name="view_id"/>
326         </record>
327         <record id="ir_move_traceability_upstream" model="ir.values">
328             <field eval="'tree_but_action'" name="key2"/>
329             <field eval="'stock.move'" name="model"/>
330             <field name="name">Downstream traceability</field>
331             <field eval="'ir.actions.act_window,'+str(action3)" name="value"/>
332             <field eval="True" name="object"/>
333         </record>
334         <record id="action5" model="ir.actions.act_window">
335             <field name="name">Upstream traceability</field>
336             <field name="type">ir.actions.act_window</field>
337             <field name="res_model">stock.move</field>
338             <field name="domain">[('id','in',active_ids)]</field>
339             <field name="view_type">tree</field>
340             <field eval="stock_move_tree" name="view_id"/>
341         </record>
342         <record id="ir_move_traceability_downstream" model="ir.values">
343             <field eval="'tree_but_action'" name="key2"/>
344             <field eval="'stock.move'" name="model"/>
345             <field name="name">Upstream traceability</field>
346             <field eval="'ir.actions.act_window,'+str(action5)" name="value"/>
347             <field eval="True" name="object"/>
348         </record>
349
350
351
352         =============================
353         Location
354         =============================
355         <record id="view_location_form" model="ir.ui.view">
356             <field name="name">stock.location.form</field>
357             <field name="model">stock.location</field>
358             <field name="type">form</field>
359             <field name="arch" type="xml">
360                 <form string="Stock location">
361                     <field name="name" select="1"/>
362                     <field name="active" select="2"/>
363                     <field name="usage" select="1"/>
364                     <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
365                     <field name="account_id" select="1"/>
366                     <field name="location_id"/>
367                     <field name="address_id" context="{'contact_display':'partner'}"/>
368                     <field name="icon"/>
369                     <newline/>
370                     <group col="2" colspan="2">
371                         <separator string="Chained Locations" colspan="2"/>
372                         <field name="chained_location_type"/>
373                         <field name="chained_location_id"/>
374                         <field name="chained_auto_packing"/>
375                         <field name="chained_delay"/>
376                     </group>
377                     <group col="2" colspan="2">
378                         <separator string="Localization" colspan="2"/>
379                         <field name="posx"/>
380                         <field name="posy"/>
381                         <field name="posz"/>
382                     </group>
383                     <separator string="Additional Information" colspan="4"/>
384                     <field colspan="4" name="comment" nolabel="1"/>
385                 </form>
386             </field>
387         </record>
388         <record id="view_location_tree2" model="ir.ui.view">
389             <field name="name">stock.location.tree</field>
390             <field name="model">stock.location</field>
391             <field name="type">tree</field>
392             <field name="arch" type="xml">
393                 <tree string="Stock location" colors="blue:usage=='view';darkred:usage=='internal';black:usage not in ('view','internal')">
394                     <field name="complete_name"/>
395                     <field name="usage"/>
396                     <field name="stock_real" invisible="'product_id' not in context"/>
397                     <field name="stock_virtual" invisible="'product_id' not in context"/>
398                 </tree>
399             </field>
400         </record>
401
402         <record id="action_location_form" model="ir.actions.act_window">
403             <field name="name">Locations</field>
404             <field name="res_model">stock.location</field>
405             <field name="type">ir.actions.act_window</field>
406             <field name="view_type">form</field>
407             <field name="view_id" ref="view_location_tree2"/>
408             <field name="context">{'full':'1'}</field>
409         </record>
410         <menuitem action="action_location_form" id="menu_action_location_form" parent="menu_stock_configuration"/>
411
412         <record id="view_location_tree" model="ir.ui.view">
413             <field name="name">stock.location.tree</field>
414             <field name="model">stock.location</field>
415             <field name="type">tree</field>
416             <field name="field_parent">child_ids</field>
417             <field name="arch" type="xml">
418                 <tree toolbar="1">
419                     <field icon="icon" name="name"/>
420                 </tree>
421             </field>
422         </record>
423         <record id="action_location_tree" model="ir.actions.act_window">
424             <field name="name">Stock Locations Structure</field>
425             <field name="res_model">stock.location</field>
426             <field name="type">ir.actions.act_window</field>
427             <field name="domain">[('location_id','=',False)]</field>
428             <field name="view_type">tree</field>
429             <field name="view_id" ref="view_location_tree"/>
430         </record>
431 <!--        <menuitem action="action_location_tree" id="menu_action_location_tree" parent="menu_stock_root"/>-->
432
433         =============================
434         Warehouse
435         =============================
436         <record id="view_warehouse" model="ir.ui.view">
437             <field name="name">stock.warehouse</field>
438             <field name="model">stock.warehouse</field>
439             <field name="type">form</field>
440             <field name="arch" type="xml">
441                 <form string="Warehouse">
442                     <field colspan="4" name="name" select="1"/>
443                     <field name="lot_input_id"/>
444                     <field name="lot_stock_id"/>
445                     <field name="lot_output_id"/>
446                     <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
447                     <newline/>
448                     <field name="partner_address_id" context="{'contact_display':'partner'}"/>
449                 </form>
450             </field>
451         </record>
452         <record id="view_warehouse_tree" model="ir.ui.view">
453             <field name="name">stock.warehouse.tree</field>
454             <field name="model">stock.warehouse</field>
455             <field name="type">tree</field>
456             <field name="arch" type="xml">
457                 <tree string="Warehouse">
458                     <field name="name"/>
459                     <field name="lot_input_id"/>
460                     <field name="lot_stock_id"/>
461                     <field name="lot_output_id"/>
462                     <field name="partner_address_id" context="{'contact_display':'partner'}"/>
463                 </tree>
464             </field>
465         </record>
466         <record id="action_warehouse_form" model="ir.actions.act_window">
467             <field name="name">Warehouses</field>
468             <field name="res_model">stock.warehouse</field>
469             <field name="type">ir.actions.act_window</field>
470             <field name="view_type">form</field>
471             <field name="view_id" ref="view_warehouse_tree"/>
472         </record>
473         <menuitem action="action_warehouse_form" id="menu_action_warehouse_form" parent="menu_stock_configuration"/>
474
475         ==============================
476         Wizard to Fill From Unreceived Products
477         ===============================
478         <record id="stock_picking_move_wizard_form" model="ir.ui.view">
479             <field name="name">stock.picking.move.wizard.form</field>
480             <field name="model">stock.picking.move.wizard</field>
481             <field name="type">form</field>
482             <field name="arch" type="xml">
483                 <form string="Entry Lines">
484                     <field name="address_id" invisible="True" context="{'contact_display':'partner'}"/>
485                     <field name="picking_id" invisible="True"/>
486                     <field domain="[('picking_id','&lt;&gt;',picking_id),('state','in',['confirmed','assigned']),('picking_id.address_id','=',address_id)]" name="move_ids" nolabel="1"/><newline/>
487                     <group colspan="4">
488                         <button special="cancel" string="Cancel" icon="gtk-cancel"/>
489                         <button name="action_move" string="Add" type="object" icon="gtk-add"/>
490                     </group>
491                 </form>
492                </field>
493         </record>
494         <record id="act_stock_picking_move_wizard" model="ir.actions.act_window">
495             <field name="name">Fill From Unreceived Products</field>
496             <field name="res_model">stock.picking.move.wizard</field>
497             <field name="src_model">stock.picking</field>
498             <field name="type">ir.actions.act_window</field>
499             <field name="view_type">form</field>
500             <field name="view_mode">form</field>
501             <field name="auto_refresh" eval="1"/>
502             <field name="target">new</field>
503             <field name="context">{'action_id': active_id}</field>
504         </record>
505
506
507         =============================
508         Picking
509         =============================
510         <record id="view_stock_split_production_lots" model="ir.ui.view">
511             <field name="name">Split Production Lots</field>
512             <field name="model">stock.split.production.lots</field>
513             <field name="type">form</field>
514             <field name="arch" type="xml">
515                 <form string="Split Production Lots">
516                         <group col="4" colspan="4">
517                            <field name="name"/>
518                            <field name="qty" attrs="{'readonly':[('action','!=','split')]}"/>
519                            <field name="action" colspan="4"/>
520                     </group>
521                     <newline/>
522                     <button name="split_lines" string="Ok" type="object" icon="gtk-go-forward"/>
523                 </form>
524             </field>
525         </record>
526
527         <record id="action_view_stock_split_production_lots" model="ir.actions.act_window">
528             <field name="name">Split Production Lots</field>
529             <field name="type">ir.actions.act_window</field>
530             <field name="res_model">stock.split.production.lots</field>
531             <field name="view_type">form</field>
532             <field name="view_mode">form</field>
533             <field name="target">new</field>
534         </record>
535
536         <record model="ir.ui.view" id="stock_picking_calendar">
537             <field name="name">stock.picking.calendar</field>
538             <field name="model">stock.picking</field>
539             <field name="type">calendar</field>
540             <field name="priority" eval="2"/>
541             <field name="arch" type="xml">
542                 <calendar string="Calendar View" date_start="min_date" date_stop="max_date" color="address_id">
543                     <field name="origin"/>
544                     <field name="type"/>
545                     <field name="address_id"/>
546                 </calendar>
547             </field>
548         </record>
549         <record id="vpicktree" model="ir.ui.view">
550             <field name="name">stock.picking.tree</field>
551             <field name="model">stock.picking</field>
552             <field name="type">tree</field>
553             <field name="arch" type="xml">
554                 <tree colors="red:state in ('cancel');black:state not in ('cancel')" string="Picking list">
555                     <field name="name"/>
556                     <field name="origin"/>
557                     <field name="address_id" select="1"/>
558                     <field name="backorder_id"/>
559                     <field name="date"/>
560                     <field name="min_date"/>
561                     <field name="invoice_state"/>
562                     <field name="state"/>
563                 </tree>
564             </field>
565         </record>
566         <record id="view_picking_form" model="ir.ui.view">
567             <field name="name">stock.picking.form</field>
568             <field name="model">stock.picking</field>
569             <field name="type">form</field>
570             <field name="arch" type="xml">
571                 <form string="Picking list">
572                     <group colspan="4" col="6">
573                         <field name="address_id" select="2" context="{'contact_display':'partner'}"/>
574                         <field name="type"/>
575                         <field name="name" readonly="1"/>
576                         <field name="date"/>
577                         <field name="min_date" select="2"/>
578                         <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
579                     </group>
580                     <notebook colspan="4">
581                         <page string="General Information">
582                             <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines, 'address_out_id': address_id}">
583                                 <form string="Stock Moves">
584                                         <notebook colspan="4">
585                                                 <page string="General Information">
586                                                     <separator colspan="4" string="Move Information"/>
587                                                     <field name="location_id" select="1" domain="[('usage','=','internal')]"/>
588                                                     <field name="location_dest_id" select="1" domain="[('usage','=','internal')]"/>
589                                                     <field colspan="4" context="location=location_id" name="product_id" on_change="onchange_product_id(product_id, location_id, location_dest_id)" select="1"/>
590                                                     <field name="product_qty" select="1" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
591                                                     <field name="product_uom" select="1"/>
592                                                     <field groups="product.group_uos" name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
593                                                     <field groups="product.group_uos" name="product_uos_qty"/>
594                                                     <field colspan="4" invisible="1" name="name" select="1"/>
595                                                     <field invisible="1" name="date"/>
596                                                     <field name="date_planned"/>
597                                                     <field name="address_id" select="1" context="{'contact_display':'partner'}"/>
598                                                     <field groups="base.group_extended" name="product_packaging"/>
599                                                     <field name="prodlot_id" select="2"
600                                                         context="{'location_id':location_id, 'product_id':product_id}"
601                                                         domain="[('product_id','=?',product_id)]"
602                                                         on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id)"/>
603                                                     <field groups="base.group_extended" name="tracking_id" select="2"/>
604                                                     <newline/>
605                                                     <label/>
606                                                     <button name="%(track_line)d" string="Split in production lots" type="action" icon="gtk-justify-fill"/>
607                                                     <separator colspan="4" string="Move State"/>
608                                                     <field name="state" select="1"/>
609                                                     <group>
610                                                         <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
611                                                         <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-no"/>
612                                                         <button name="action_cancel" states="assigned" string="Cancel" type="object" icon="gtk-cancel"/>
613                                                     </group>
614                                                 </page>
615                                                 <page string="Return Picking History">
616                                                                 <field name="move_stock_return_history" nolabel="1"/>
617                                                         </page>
618                                                 </notebook>
619                                 </form>
620                             </field>
621                             <group col="7" colspan="4">
622                                 <label colspan="6"/>
623                                 <button name="%(move_split)d" string="Split Entry Lines in two" type="action" icon="gtk-justify-fill"/>
624                             </group>
625                             <group col="10" colspan="4">
626                                 <field name="state" readonly="1"/>
627                                 <button name="draft_force_assign" states="draft" string="Confirm (Do Not Process Now)" type="object" icon="gtk-apply"/>
628                                 <button name="draft_validate" states="draft" string="Process Now" type="object" icon="gtk-media-play"/>
629                                 <button name="action_assign" states="confirmed" string="Check Availability" type="object" icon="gtk-find"/>
630                                 <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
631                                 <button name="%(partial_picking)d" states="assigned" string="Validate" type="action" icon="gtk-apply"/>
632                                 <button name="button_cancel" states="assigned,confirmed,draft" string="Cancel" icon="gtk-cancel"/>
633                             </group>
634                         </page>
635                         <page string="Notes">
636                             <field colspan="4" name="note" nolabel="1"/>
637                         </page>
638                         <page string="Other info" groups="base.group_extended">
639                             <field name="origin" select="2"/>
640                             <field name="active" select="2"/>
641                             <field name="auto_picking"/>
642                             <field name="invoice_state" select="2"/>
643                             <field name="date_done" select="2"/>
644                             <newline/>
645                             <field name="move_type"/>
646                         </page>
647                     </notebook>
648                 </form>
649             </field>
650         </record>
651
652
653         <record id="view_stock_picking_filter" model="ir.ui.view">
654             <field name="name">stock.picking.list.select</field>
655             <field name="model">stock.picking</field>
656             <field name="type">search</field>
657             <field name="arch" type="xml">
658                 <search string="Search Stock Picking">
659                     <group col="8" colspan="4">
660                         <filter icon="terp-stock" string="Available" domain="[('state','=','assigned')]" help="Available Pickings"/>
661                         <filter icon="terp-stock" string="Confirmed" domain="[('state','=','confirmed')]" help="Confirmed Pickings"/>
662                         <separator orientation="vertical"/>
663                         <field name="location_id" select="1"/>
664                         <field name="location_dest_id" select="1"/>
665                         <field name="name" select="1"/>
666                         <field name="address_id" select="1"/>
667                    </group>
668                     <group expand="context.get('report',False)" string="Group By..." colspan="4" col="8">
669                         <filter string="Partner" icon="terp-stock" domain="[]" context="{'group_by':'address_id'}"/>
670                         <filter string="State" icon="terp-stock" domain="[]" context="{'group_by':'state'}"/>
671                                                 <filter string="Date" icon="terp-stock" domain="[]"  context="{'group_by':'date'}"/>
672                                         </group>
673               </search>
674             </field>
675         </record>
676
677         #
678         # Delivery Orders
679         #
680
681         <record id="view_picking_delivery_tree" model="ir.ui.view">
682             <field name="name">stock.picking.delivery.tree</field>
683             <field name="model">stock.picking</field>
684             <field name="type">tree</field>
685             <field name="arch" type="xml">
686                 <tree colors="red:state in ('cancel');black:state not in ('cancel')" string="Picking list">
687                     <field name="name"/>
688                     <field name="origin"/>
689                     <field name="address_id" select="1"/>
690                     <field name="backorder_id"/>
691                     <field name="date" select="1"/>
692                     <field name="min_date" select="1"/>
693                     <field name="state" select="1"/>
694                 </tree>
695             </field>
696         </record>
697         <record id="view_picking_delivery_form" model="ir.ui.view">
698             <field name="name">stock.picking.delivery.form</field>
699             <field name="model">stock.picking</field>
700             <field name="type">form</field>
701             <field name="arch" type="xml">
702                 <form string="Picking list">
703                     <group col="6" colspan="4">
704                         <field name="address_id" select="1"/>
705                         <field name="type"/>
706                         <field name="name" select="1" readonly="1"/>
707                         <field name="min_date" select="1"/>
708                         <field name="backorder_id" select="2" readonly="1"/>
709                         <field name="origin" select="2"/>
710                         <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
711                     </group>
712                         <notebook colspan="4">
713                         <page string="General Information">
714                             <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines, 'address_out_id': address_id}">
715                                 <form string="Stock Moves">
716                                         <notebook colspan="4">
717                                                 <page string="General Information">
718                                                     <separator colspan="4" string="Move Information"/>
719                                                     <field name="location_id" select="1" domain="[('usage','=','internal')]"/>
720                                                     <field name="location_dest_id" select="1" domain="[('usage','&lt;&gt;','view')]"/>
721                                                     <field colspan="4" context="location=location_id" name="product_id" on_change="onchange_product_id(product_id, location_id, location_dest_id)" select="1"/>
722                                                     <field name="product_qty" select="1" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
723                                                     <field name="product_uom" select="1"/>
724                                                     <field groups="product.group_uos" name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
725                                                     <field groups="product.group_uos" name="product_uos_qty"/>
726                                                     <field colspan="4" invisible="1" name="name" select="1"/>
727                                                     <field invisible="1" name="date"/>
728                                                     <field name="date_planned"/>
729                                                     <field groups="base.group_extended" name="product_packaging"/>
730                                                     <field name="prodlot_id" select="2"
731                                                         context="{'location_id':location_id, 'product_id':product_id}"
732                                                         domain="[('product_id','=?',product_id)]"
733                                                         on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id)"/>
734                                                     <field groups="base.group_extended" name="tracking_id" select="1"/>
735                                                     <separator colspan="4" string="Move State"/>
736                                                     <field name="state" select="1"/>
737                                                     <group>
738                                                         <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
739                                                         <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
740                                                         <button name="action_cancel" states="assigned" string="Cancel" type="object" icon="gtk-cancel"/>
741                                                     </group>
742                                                 </page>
743                                                 <page string="Return Picking History">
744                                                                 <field name="move_stock_return_history" nolabel="1"/>
745                                                         </page>
746                                                 </notebook>
747                                 </form>
748                             </field>
749                             <group col="7" colspan="4">
750                                 <label colspan="6"/>
751                                 <button name="%(move_split)d" string="Split in Two" type="action" states="assigned,confirmed,draft,auto" icon="gtk-justify-fill"/>
752                             </group>
753                             <group col="10" colspan="4">
754                                 <field name="state" readonly="1"/>
755                                 <button name="draft_force_assign" states="draft" string="Process Later" type="object" icon="gtk-ok"/>
756                                 <button name="draft_validate" states="draft" string="Process Now" type="object" icon="gtk-media-play"/>
757                                 <button name="action_assign" states="confirmed" string="Check Availability" type="object" icon="gtk-find"/>
758                                 <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
759                                 <button name="%(partial_picking)d" states="assigned" string="Products Sent" type="action" icon="gtk-go-forward"/>
760                                 <button name="button_cancel" states="assigned,confirmed,draft" string="Cancel" icon="gtk-cancel"/>
761                             </group>
762                         </page>
763                         <page string="Notes">
764                             <field colspan="4" name="note" nolabel="1"/>
765                         </page>
766                         <page string="Other info" groups="base.group_extended">
767                             <field name="auto_picking"/>
768                             <field name="active" select="2"/>
769                             <newline/>
770                             <field name="date" select="1"/>
771                             <field name="date_done" select="2"/>
772                             <field name="move_type"/>
773                         </page>
774                     </notebook>
775                 </form>
776             </field>
777         </record>
778
779        <record id="view_stock_delivery_filter" model="ir.ui.view">
780             <field name="name">stock.view_stock_delivery_filter.list.select</field>
781             <field name="model">stock.picking</field>
782             <field name="type">search</field>
783             <field name="arch" type="xml">
784                 <search string="Search Stock Delivery">
785                     <group col="10" colspan="4">
786                         <filter icon="terp-stock" string="Available" domain="[('state','=','assigned')]" help="Assigned Orders"/>
787                         <filter icon="terp-stock" string="Future Orders" domain="[('state','=','confirmed')]" help="Future Orders"/>
788                         <filter icon="terp-stock" string="Back Orders" domain="[('backorder_id','!=',False)]" help="Back Orders"/>
789                         <separator orientation="vertical"/>
790                         <field name="address_id" select="1"/>
791                         <field name="name" select="1"/>
792                         <field name="origin" select="1"/>
793                    </group>
794                     <group expand="context.get('report',False)" string="Group By..." colspan="4" col="10">
795                         <filter string="Partner" icon="terp-stock" domain="[]"  context="{'group_by':'address_id'}"/>
796                         <filter string="State" icon="terp-stock" domain="[]" context="{'group_by':'state'}"/>
797                                                 <filter string="Order Date" icon="terp-stock" domain="[]" context="{'group_by':'date'}"/>
798                                         </group>
799               </search>
800             </field>
801         </record>
802
803         <record id="action_picking_tree_delivery" model="ir.actions.act_window">
804             <field name="name">Delivery Orders</field>
805             <field name="res_model">stock.picking</field>
806             <field name="type">ir.actions.act_window</field>
807             <field name="view_type">form</field>
808             <field name="view_mode">tree,form,calendar</field>
809             <field name="domain">[('type','=','delivery')]</field>
810             <field name="context">{'contact_display': 'partner'}</field>
811             <field name="search_view_id" ref="view_stock_delivery_filter"/>
812         </record>
813         <record id="action_picking_tree_delivery_view1" model="ir.actions.act_window.view">
814             <field eval="1" name="sequence"/>
815             <field name="view_mode">tree</field>
816             <field name="view_id" ref="view_picking_delivery_tree"/>
817             <field name="act_window_id" ref="action_picking_tree_delivery"/>
818         </record>
819         <record id="action_picking_tree_delivery_view2" model="ir.actions.act_window.view">
820             <field eval="2" name="sequence"/>
821             <field name="view_mode">form</field>
822             <field name="view_id" ref="view_picking_delivery_form"/>
823             <field name="act_window_id" ref="action_picking_tree_delivery"/>
824         </record>
825         <record id="action_picking_tree_delivery_view2_calendar" model="ir.actions.act_window.view">
826             <field eval="3" name="sequence"/>
827             <field name="view_mode">calendar</field>
828             <field name="act_window_id" ref="action_picking_tree_delivery"/>
829         </record>
830         <menuitem action="action_picking_tree_delivery" groups="base.group_extended" id="menu_action_picking_tree_delivery" parent="menu_stock_warehouse_mgmt" sequence="20"/>
831
832         #
833         # Sending Products
834         #
835
836         <record id="view_picking_out_tree" model="ir.ui.view">
837             <field name="name">stock.picking.out.tree</field>
838             <field name="model">stock.picking</field>
839             <field name="type">tree</field>
840             <field name="arch" type="xml">
841                 <tree colors="red:state in ('cancel');grey:state in ('confirmed');blue:state in ('done');black:state not in ('cancel','confirmed','done')" string="Picking list">
842                     <field name="name"/>
843                     <field name="origin"/>
844                     <field name="address_id"/>
845                     <field name="backorder_id"/>
846                     <field name="date"/>
847                     <field name="min_date"/>
848                     <field name="invoice_state"/>
849                     <field name="state"/>
850                 </tree>
851             </field>
852         </record>
853         <record id="view_picking_out_form" model="ir.ui.view">
854             <field name="name">stock.picking.out.form</field>
855             <field name="model">stock.picking</field>
856             <field name="type">form</field>
857             <field name="arch" type="xml">
858                 <form string="Picking list">
859                     <group col="6" colspan="4">
860                         <field name="address_id" select="2"/>
861                         <field name="type"/>
862                         <field name="min_date" select="2"/>
863                         <field name="name" select="1" readonly="1"/>
864                         <field name="invoice_state"/>
865                         <field name="backorder_id" select="2" readonly="1"/>
866                         <field name="origin" select="2" readonly="1"/>
867                         <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
868                     </group>
869                     <notebook colspan="4">
870                         <page string="General Information">
871                             <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines, 'address_out_id': address_id}">
872                                 <form string="Stock Moves">
873                                         <notebook colspan="4">
874                                                                                 <page string="General Information">
875                                                     <separator colspan="4" string="Move Information"/>
876                                                     <field name="location_id" select="1" domain="[('usage','=','internal')]"/>
877                                                     <field name="location_dest_id" select="1" domain="[('usage','&lt;&gt;','view')]"/>
878                                                     <field colspan="4" context="location=location_id" name="product_id" on_change="onchange_product_id(product_id, location_id, location_dest_id)" select="1"/>
879                                                     <field name="product_qty" select="1" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" />
880                                                     <field name="product_uom" select="1"/>
881                                                     <field groups="product.group_uos" name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
882                                                     <field groups="product.group_uos" name="product_uos_qty"/>
883                                                     <field colspan="4" invisible="1" name="name" select="1"/>
884                                                     <field invisible="1" name="date"/>
885                                                     <field name="date_planned"/>
886                                                     <field groups="base.group_extended" name="product_packaging"/>
887                                                     <field name="prodlot_id" select="1"
888                                                         context="{'location_id':location_id, 'product_id':product_id}"
889                                                         domain="[('product_id','=?',product_id)]"
890                                                         on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id)"/>
891                                                     <field groups="base.group_extended" name="tracking_id" select="1"/>
892                                                     <label/>
893                                                     <button name="%(track_line)d" string="Split in production lots" type="action" icon="gtk-justify-fill"/>
894                                                     <separator colspan="4" string="Move State"/>
895                                                     <field name="state" select="1"/>
896                                                     <group>
897                                                         <button name="force_assign" states="confirmed" string="Force Availability" type="object"  icon="gtk-jump-to"/>
898                                                         <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object"  icon="gtk-no"/>
899                                                         <button name="action_cancel" states="assigned" string="Cancel" type="object"  icon="gtk-cancel"/>
900                                                     </group>
901                                         </page>
902                                                 <page string="Return Picking History">
903                                                                 <field name="move_stock_return_history" nolabel="1"/>
904                                                         </page>
905                                                 </notebook>
906                                                                 </form>
907                             </field>
908                             <group col="7" colspan="4">
909                                 <label colspan="6"/>
910                                 <button name="%(move_split)d" string="Split in Two" type="action" icon="gtk-justify-fill"/>
911                             </group>
912                             <group col="10" colspan="4">
913                                 <field name="state" readonly="1"/>
914                                 <button name="draft_force_assign" states="draft" string="Process Later" type="object" icon="gtk-ok"/>
915                                 <button name="draft_validate" states="draft" string="Process Now" type="object" icon="gtk-yes"/>
916                                 <button name="action_assign" states="confirmed" string="Check Availability" type="object" groups="base.group_extended" icon="gtk-apply"/>
917                                 <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
918                                 <button name="%(partial_picking)d" states="assigned" string="Picking Done" type="action" icon="gtk-execute"/>
919                                 <button name="button_cancel" states="assigned,confirmed,draft" string="Cancel" icon="gtk-cancel"/>
920                             </group>
921                         </page>
922                         <page string="Notes">
923                             <field colspan="4" name="note" nolabel="1"/>
924                         </page>
925                         <page string="Other info" groups="base.group_extended">
926                             <field name="active" select="2"/>
927                             <field name="auto_picking"/>
928                             <newline/>
929                             <field name="date" select="2"/>
930                             <field name="date_done" select="2"/>
931                             <field name="move_type"/>
932                         </page>
933                     </notebook>
934                 </form>
935             </field>
936         </record>
937
938                 <record id="view_picking_out_search" model="ir.ui.view">
939             <field name="name">stock.picking.out.search</field>
940             <field name="model">stock.picking</field>
941             <field name="type">search</field>
942             <field name="arch" type="xml">
943                 <search string="Picking list">
944                         <group col="8" colspan="4">
945                         <filter icon="terp-stock" string="Available" domain="[('state','=','assigned')]" help="Assigned Outgoing Orders"/>
946                         <filter icon="terp-stock" string="Confirmed" domain="[('state','=','confirmed')]" help="Confirmed Outgoing Orders"/>
947                         <separator orientation="vertical"/>
948                         <field name="name" select="1"/>
949                         <field name="address_id" select="1"/>
950                         <field name="company_id" select="1" widget="selection"/>
951                    </group>
952                     <group expand="context.get('report',False)" string="Group By..." colspan="4" col="8">
953                         <filter string="Partner" icon="terp-stock" domain="[]" context="{'group_by':'address_id'}"/>
954                         <filter string="State" icon="terp-stock" domain="[]" context="{'group_by':'state'}"/>
955                                                 <filter string="Date" icon="terp-stock" domain="[]"  context="{'group_by':'date'}"/>
956                                         </group>
957                 </search>
958             </field>
959         </record>
960
961         <record id="action_picking_tree" model="ir.actions.act_window">
962             <field name="name">Outgoing Products</field>
963             <field name="res_model">stock.picking</field>
964             <field name="type">ir.actions.act_window</field>
965             <field name="view_type">form</field>
966             <field name="view_mode">tree,form,calendar</field>
967             <field name="domain">[('type','=','out')]</field>
968             <field name="context">{'contact_display': 'partner'}</field>
969             <field name="search_view_id" ref="view_picking_out_search"/>
970         </record>
971         <record id="action_picking_tree_out_view1_waiting" model="ir.actions.act_window.view">
972             <field eval="1" name="sequence"/>
973             <field name="view_mode">tree</field>
974             <field name="view_id" ref="view_picking_out_tree"/>
975             <field name="act_window_id" ref="action_picking_tree"/>
976         </record>
977         <record id="action_picking_tree_out_view2_waiting" model="ir.actions.act_window.view">
978             <field eval="2" name="sequence"/>
979             <field name="view_mode">form</field>
980             <field name="view_id" ref="view_picking_out_form"/>
981             <field name="act_window_id" ref="action_picking_tree"/>
982         </record>
983         <record id="action_picking_tree_out_view2_waiting_cal" model="ir.actions.act_window.view">
984             <field eval="3" name="sequence"/>
985             <field name="view_mode">calendar</field>
986             <field name="act_window_id" ref="action_picking_tree"/>
987         </record>
988 <!--        <menuitem action="action_picking_tree" id="menu_action_picking_tree" parent="menu_stock_root" sequence="19"/>-->
989
990         #
991         # Reception of Products
992         #
993         <record id="view_picking_in_tree" model="ir.ui.view">
994             <field name="name">stock.picking.in.tree</field>
995             <field name="model">stock.picking</field>
996             <field name="type">tree</field>
997             <field name="arch" type="xml">
998                 <tree colors="red:state in ('cancel');black:state not in ('cancel')" string="Picking list">
999                     <field name="name"/>
1000                     <field name="origin"/>
1001                     <field name="address_id"/>
1002                     <field name="backorder_id"/>
1003                     <field name="date"/>
1004                     <field name="min_date"/>
1005                     <field name="invoice_state"/>
1006                     <field name="state"/>
1007                 </tree>
1008             </field>
1009         </record>
1010         <record id="view_picking_in_form" model="ir.ui.view">
1011             <field name="name">stock.picking.in.form</field>
1012             <field name="model">stock.picking</field>
1013             <field name="type">form</field>
1014             <field name="arch" type="xml">
1015                 <form string="Input Picking List">
1016                     <group colspan="4" col="6">
1017                         <field name="address_id" on_change="onchange_partner_in(address_id)" select="2" context="{'contact_display':'partner'}"/>
1018                         <field name="type"/>
1019                         <field name="origin" select="2"/>
1020                         <field name="invoice_state" select="2" string="Invoice Control"/>
1021                         <field name="name" readonly="1" select="1"/>
1022                         <field name="min_date" select="2" readonly="1"/>
1023                         <field name="backorder_id" select="2" readonly="1"/>
1024                         <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
1025                     </group>
1026                     <notebook colspan="4">
1027                         <page string="General Information">
1028                             <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines, 'address_in_id': address_id}">
1029                                 <tree string="Stock Moves">
1030                                     <field name="product_id"/>
1031                                     <field name="product_qty"/>
1032                                     <field name="product_uom"/>
1033                                     <field name="location_dest_id"/>
1034                                     <field name="prodlot_id"/>
1035                                     <field name="state"/>
1036                                 </tree>
1037                                 <form string="Stock Moves">
1038                                         <notebook colspan="4">
1039                                                 <page string="General Information">
1040                                                     <separator colspan="4" string="Move Information"/>
1041                                                     <field name="location_id" select="1" domain="[('usage','&lt;&gt;','view')]"/>
1042                                                     <field domain="[('usage','=','internal')]" name="location_dest_id" select="1"/>
1043                                                     <field colspan="4" context="location=location_id" name="product_id" on_change="onchange_product_id(product_id, location_id, location_dest_id)" select="1"/>
1044                                                     <field name="product_qty" select="1" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1045                                                     <field name="product_uom" select="1"/>
1046                                                     <field groups="product.group_uos" name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1047                                                     <field groups="product.group_uos" name="product_uos_qty"/>
1048                                                     <field colspan="4" invisible="1" name="name" select="1"/>
1049                                                     <field groups="base.group_extended" name="date_planned"/>
1050                                                     <newline/>
1051                                                     <newline/>
1052                                                     <field groups="base.group_extended" name="product_packaging"/>
1053                                                     <newline/>
1054                                                     <field name="prodlot_id" select="1"
1055                                                         context="{'location_id':location_id, 'product_id':product_id}"
1056                                                         domain="[('product_id','=?',product_id)]"
1057                                                         on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id)"/>
1058                                                     <field groups="base.group_extended" name="tracking_id" select="1"/>
1059                                                     <newline/>
1060                                                     <label/>
1061                                                     <button groups="base.group_extended" name="%(track_line)d" string="Split in production lots" type="action" icon="gtk-justify-fill"/>
1062                                                     <separator colspan="4" string="Move State"/>
1063                                                     <field name="state" select="1"/>
1064                                                     <group>
1065                                                         <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon=""/>
1066                                                         <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon=""/>
1067                                                         <button name="action_cancel" states="assigned" string="Cancel" type="object" icon=""/>
1068                                                     </group>
1069                                                 </page>
1070                                                 <page string="Return Picking History">
1071                                                                 <field name="move_stock_return_history" nolabel="1"/>
1072                                                         </page>
1073                                             </notebook>
1074                                 </form>
1075                             </field>
1076                             <group col="7" colspan="4">
1077                                 <label colspan="5"/>
1078                                 <button name="%(act_stock_picking_move_wizard)d" string="Unreceived Products" type="action" states="draft,confirmed,assigned" icon="gtk-redo"/>
1079                             </group>
1080                             <group col="10" colspan="4">
1081                                 <field name="state" readonly="1"/>
1082                                 <button name="draft_force_assign" states="draft" string="Process Later" type="object" icon="gtk-ok"/>
1083                                 <button name="draft_validate" states="draft" string="Process Now" type="object" icon="gtk-media-play"/>
1084                                 <button name="action_assign" states="confirmed" string="Check Availability" type="object" icon="gtk-find"/>
1085                                 <button name="force_assign" states="confirmed" string="Force Availability" type="object" groups="base.group_extended" icon="gtk-jump-to"/>
1086                                 <button name="%(partial_picking)d" states="assigned" string="Products Received" type="action" icon="gtk-ok"/>
1087                                 <button name="button_cancel" states="assigned,confirmed,draft" string="Cancel" icon="gtk-cancel"/>
1088                             </group>
1089                         </page>
1090                         <page string="Notes">
1091                             <field colspan="4" name="note" nolabel="1"/>
1092                         </page>
1093                     </notebook>
1094                 </form>
1095             </field>
1096         </record>
1097
1098                 <record id="view_picking_in_search" model="ir.ui.view">
1099             <field name="name">stock.picking.in.search</field>
1100             <field name="model">stock.picking</field>
1101             <field name="type">search</field>
1102             <field name="arch" type="xml">
1103                 <search string="Input Picking List">
1104                         <group col="8" colspan="4">
1105                         <filter icon="terp-stock" string="To Process" domain="[('state','=','assigned')]" help="Assigned Incoming Orders"/>
1106                         <filter icon="terp-stock" string="Confirmed" domain="[('state','=','confirmed')]" help="Confirmed Incoming Orders"/>
1107                         <separator orientation="vertical"/>
1108                         <field name="name" select="1"/>
1109                         <field name="address_id" select="1"/>
1110                         <field name="company_id" select="1" widget="selection"/>
1111                    </group>
1112                     <group expand="context.get('report',False)" string="Group By..." colspan="4" col="8">
1113                         <filter string="Partner" icon="terp-stock" domain="[]" context="{'group_by':'address_id'}"/>
1114                         <filter string="State" icon="terp-stock" domain="[]" context="{'group_by':'state'}"/>
1115                                                 <filter string="Date" icon="terp-stock" domain="[]"  context="{'group_by':'date'}"/>
1116                                         </group>
1117                 </search>
1118             </field>
1119         </record>
1120
1121
1122         <record id="action_picking_tree4" model="ir.actions.act_window">
1123             <field name="name">Incoming shipments</field>
1124             <field name="res_model">stock.picking</field>
1125             <field name="type">ir.actions.act_window</field>
1126             <field name="view_type">form</field>
1127             <field name="view_mode">tree,form,calendar</field>
1128             <field name="domain">[('type','=','in')]</field>
1129             <field name="context">{'contact_display': 'partner'}</field>
1130             <field name="search_view_id" ref="view_picking_in_search"/>
1131         </record>
1132         <record id="action_invoice_tree5_view1" model="ir.actions.act_window.view">
1133             <field eval="1" name="sequence"/>
1134             <field name="view_mode">tree</field>
1135             <field name="view_id" ref="view_picking_in_tree"/>
1136             <field name="act_window_id" ref="action_picking_tree4"/>
1137         </record>
1138         <record id="action_invoice_tree5_view2" model="ir.actions.act_window.view">
1139             <field eval="2" name="sequence"/>
1140             <field name="view_mode">form</field>
1141             <field name="view_id" ref="view_picking_in_form"/>
1142             <field name="act_window_id" ref="action_picking_tree4"/>
1143         </record>
1144         <record id="action_invoice_tree5_view2_cal" model="ir.actions.act_window.view">
1145             <field eval="3" name="sequence"/>
1146             <field name="view_mode">calendar</field>
1147             <field name="act_window_id" ref="action_picking_tree4"/>
1148         </record>
1149         <menuitem action="action_picking_tree4" id="menu_action_picking_tree4" parent="menu_stock_warehouse_mgmt" sequence="1"/>
1150
1151         <record id="view_picking_internal_search" model="ir.ui.view">
1152             <field name="name">stock.picking.internal.search</field>
1153             <field name="model">stock.picking</field>
1154             <field name="type">search</field>
1155             <field name="arch" type="xml">
1156                 <search string="Internal Picking List">
1157                         <group col="8" colspan="4">
1158                         <filter icon="terp-stock" string="Available" domain="[('state','=','assigned')]" help="Assigned Internal Moves"/>
1159                         <filter icon="terp-stock" string="Confirmed" domain="[('state','=','confirmed')]" help="Confirmed Internal Moves"/>
1160                         <separator orientation="vertical"/>
1161                         <field name="name" select="1"/>
1162                         <field name="address_id" select="1"/>
1163                         <field name="company_id" select="1" widget="selection"/>
1164                    </group>
1165                     <group expand="context.get('report',False)" string="Group By..." colspan="4" col="8">
1166                         <filter string="Partner" icon="terp-stock" domain="[]" context="{'group_by':'address_id'}"/>
1167                         <filter string="State" icon="terp-stock" domain="[]" context="{'group_by':'state'}"/>
1168                                                 <filter string="Date" icon="terp-stock" domain="[]"  context="{'group_by':'date'}"/>
1169                                         </group>
1170                 </search>
1171             </field>
1172         </record>
1173
1174         <record id="action_picking_tree6" model="ir.actions.act_window">
1175             <field name="name">Internal Moves</field>
1176             <field name="res_model">stock.picking</field>
1177             <field name="type">ir.actions.act_window</field>
1178             <field name="view_type">form</field>
1179             <field name="view_mode">tree,form,calendar</field>
1180             <field name="domain">[('type','=','internal')]</field>
1181             <field name="context">{'contact_display': 'partner'}</field>
1182             <field name="search_view_id" ref="view_picking_internal_search"/>
1183         </record>
1184                 <menuitem action="action_picking_tree6" id="menu_action_picking_tree6" parent="menu_stock_warehouse_mgmt" sequence="2"/>
1185         =============================
1186         Move Tracking
1187         =============================
1188
1189
1190         =============================
1191         Move
1192         =============================
1193
1194         <record id="view_move_tree" model="ir.ui.view">
1195             <field name="name">stock.move.tree</field>
1196             <field name="model">stock.move</field>
1197             <field name="type">tree</field>
1198             <field eval="6" name="priority"/>
1199             <field name="arch" type="xml">
1200                 <tree colors="grey:state in ('cancel');black:state not in ('cancel')" string="Moves">
1201                     <field name="name"/>
1202                     <field name="product_id"/>
1203                     <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1204                     <field name="product_uom" string="UOM"/>
1205                     <field name="picking_id" select="1"/>
1206                     <field name="prodlot_id"/>
1207                     <field name="location_id"/>
1208                     <field name="location_dest_id"/>
1209                     <field name="date_planned"/>
1210                     <field name="state"/>
1211                 </tree>
1212             </field>
1213         </record>
1214
1215 <!--        <menuitem id="menu_traceability_low" name="Low Level" parent="menu_traceability"/> -->
1216
1217         <record id="view_move_form" model="ir.ui.view">
1218             <field name="name">stock.move.form</field>
1219             <field name="model">stock.move</field>
1220             <field name="type">form</field>
1221             <field eval="4" name="priority"/>
1222             <field name="arch" type="xml">
1223                 <form string="Stock Moves">
1224                         <notebook colspan="4">
1225                                 <page string="General Information">
1226                                     <separator colspan="4" string="Move Information"/>
1227                                     <field name="location_id" select="1"/>
1228                                     <field name="location_dest_id" select="1"/>
1229                                     <field colspan="4" name="product_id" select="1" on_change="onchange_product_id(product_id,location_id,location_dest_id)"/>
1230                                     <field name="product_qty" select="2" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1231                                     <field name="product_uom" select="2"/>
1232                                     <field name="product_uos" select="2"/>
1233                                     <field colspan="4" name="name" select="2"/>
1234                                     <field name="date"/>
1235                                     <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
1236                                     <field name="date_planned"/>
1237                                     <field name="priority"/>
1238                                     <field name="address_id" select="2" context="{'contact_display':'partner'}"/>
1239                                     <newline/>
1240                                     <field name="picking_id" select="2"/>
1241                                     <newline/>
1242                                     <field name="prodlot_id" select="2"
1243                                         context="{'location_id':location_id, 'product_id':product_id}"
1244                                         domain="[('product_id','=?',product_id)]"
1245                                         on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id)"/>
1246                                     <field name="tracking_id" select="2"/>
1247                                     <newline/>
1248                                     <label/>
1249                                     <button name="%(track_line)d" string="Split in production lots" type="action" icon="gtk-justify-fill"/>
1250                                     <separator colspan="4" string="Move State"/>
1251                                     <field name="state" select="1"/>
1252                                     <group col="4" colspan="2">
1253                                         <button name="action_confirm" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
1254                                         <button name="action_assign" states="confirmed" string="Set Available" type="object" icon="gtk-yes"/>
1255                                         <button name="action_cancel" states="assigned,confirmed" string="Cancel" type="object" icon="gtk-cancel"/>
1256                                         <button name="action_done" states="assigned" string="Make Parcel" type="object" icon="gtk-jump-to"/>
1257                                     </group>
1258                                 </page>
1259                                 <page string="Return Picking History">
1260                                                         <field name="move_stock_return_history" nolabel="1"/>
1261                                                 </page>
1262                             </notebook>
1263                 </form>
1264             </field>
1265         </record>
1266
1267         <record id="view_move_search" model="ir.ui.view">
1268             <field name="name">stock.move.search</field>
1269             <field name="model">stock.move</field>
1270             <field name="type">tree</field>
1271             <field eval="6" name="priority"/>
1272             <field name="arch" type="xml">
1273                 <search string="Stock Moves">
1274                         <group col="8" colspan="4">
1275                                 <filter icon="terp-stock" string="Draft" domain="[('state','=','draft')]" help="Draft Moves"/>
1276                                 <filter icon="terp-stock" string="Available" domain="[('state','=','assigned')]" help="Available Moves"/>
1277                                 <separator orientation="vertical"/>
1278                                 <field name="location_id" select="1"/>
1279                             <field name="location_dest_id" select="1"/>
1280                             <field name="product_id" select="1"/>
1281                     </group>
1282                     <group expand="context.get('report',False)" string="Group By..." colspan="4" col="8">
1283                         <filter string="Location" icon="terp-stock" domain="[]" context="{'group_by':'location_id'}"/>
1284                                                 <filter string="Product" icon="terp-stock" domain="[]"  context="{'group_by':'product_id'}"/>
1285                                                 <filter string="State" icon="terp-stock" domain="[]" context="{'group_by':'state'}"/>
1286                                                 <filter string="Destion Location" icon="terp-stock" domain="[]" context="{'group_by':'location_dest_id'}"/>
1287                                                 <filter string="Date" icon="terp-stock" domain="[]" context="{'group_by':'date'}"/>
1288                                         </group>
1289                 </search>
1290             </field>
1291         </record>
1292
1293         <record id="action_move_form2" model="ir.actions.act_window">
1294             <field name="name">All Moves</field>
1295             <field name="res_model">stock.move</field>
1296             <field name="type">ir.actions.act_window</field>
1297             <field name="view_type">form</field>
1298             <field name="view_id" ref="view_move_tree"/>
1299             <field name="search_view_id" ref="view_move_search"/>
1300         </record>
1301         <menuitem action="action_move_form2" id="menu_action_move_form2" parent="menu_traceability" sequence="1"/>
1302
1303         <record id="action_picking_all" model="ir.actions.act_window">
1304             <field name="name">Picking</field>
1305             <field name="res_model">stock.picking</field>
1306             <field name="type">ir.actions.act_window</field>
1307             <field name="view_type">form</field>
1308             <field name="view_mode">tree,form,calendar</field>
1309             <field name="search_view_id" ref="view_stock_picking_filter"/>
1310             <field name="context">{'contact_display': 'partner'}</field>
1311         </record>
1312         <menuitem action="action_picking_all" id="menu_action_picking_all" parent="menu_stock_warehouse_mgmt" sequence="3"/>
1313
1314             ====================================
1315         Reception Picking (By Stock Move)
1316         ====================================
1317
1318             <record id="view_move_tree_reception_picking" model="ir.ui.view">
1319             <field name="name">stock.move.tree2</field>
1320             <field name="model">stock.move</field>
1321             <field name="type">tree</field>
1322             <field eval="6" name="priority"/>
1323             <field name="arch" type="xml">
1324                 <tree colors="grey:state in ('cancel','done');black:state not in ('cancel','done')" string="Moves">
1325                     <field name="picking_id" string="Reference"/>
1326                     <field name="origin" string="Purchase Order"/>
1327                     <field name="partner_id" string="Supplier"/>
1328                     <field name="product_id"/>
1329                     <field name="product_qty" />
1330                     <field name="product_uom" string="UOM"/>
1331                     <field name="prodlot_id" string="Lot"/>
1332                     <field name="date_planned"/>
1333                     <field name="backorder_id"/>
1334                     <field name="state"/>
1335                     <button name="%(partial_move)d" string="Partial" type="action" states="assigned" icon="gtk-justify-fill"/>
1336                     <button name="action_cancel" states="assigned,confirmed" string="Cancel" type="object" icon="gtk-cancel"/>
1337                 </tree>
1338             </field>
1339         </record>
1340
1341             <record id="view_move_form_reception_picking" model="ir.ui.view">
1342             <field name="name">stock.move.form2</field>
1343             <field name="model">stock.move</field>
1344             <field name="type">form</field>
1345             <field eval="6" name="priority"/>
1346             <field name="arch" type="xml">
1347                 <form string="Moves">
1348                         <notebook colspan="4">
1349                                 <page string="General Information">
1350                                     <separator colspan="4" string="Move Information"/>
1351                                     <field name="location_id" select="1"/>
1352                                     <field name="location_dest_id" select="1"/>
1353                                     <field colspan="4" name="product_id" select="1" on_change="onchange_product_id(product_id,location_id,location_dest_id)"/>
1354                                     <field name="product_qty" select="2" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1355                                     <field name="product_uom" select="2"/>
1356                                     <field name="product_uos" select="2"/>
1357                                     <field colspan="4" name="name" select="2"/>
1358                                     <field name="date"/>
1359                                     <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
1360                                     <field name="date_planned"/>
1361                                     <field name="priority"/>
1362                                     <field name="address_id" select="2" context="{'contact_display':'partner'}"/>
1363                                     <newline/>
1364                                     <field name="picking_id" select="2"/>
1365                                     <newline/>
1366                                     <field name="prodlot_id" select="2"
1367                                         context="{'location_id':location_id, 'product_id':product_id}"
1368                                         domain="[('product_id','=?',product_id)]"
1369                                         on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id)"/>
1370                                     <field name="tracking_id" select="2"/>
1371                                     <newline/>
1372                                     <label/>
1373                                     <button name="%(track_line)d" string="Split in production lots" type="action" icon="gtk-justify-fill"/>
1374                                     <separator colspan="4" string="Move State"/>
1375                                     <field name="state" select="1"/>
1376                                     <group col="5" colspan="2">
1377                                         <button name="action_confirm" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
1378                                         <button name="action_assign" states="confirmed" string="Set Available" type="object" icon="gtk-yes"/>
1379                                         <button name="action_cancel" states="assigned,confirmed" string="Cancel" type="object" icon="gtk-cancel"/>
1380                                 <button name="%(partial_move)d" states="assigned" string="Partial" type="action" icon="gtk-justify-fill"/>
1381                                         <button name="action_done" states="assigned" string="Done" type="object" icon="gtk-jump-to"/>
1382                                     </group>
1383                                 </page>
1384                                 <page string="Return Picking History">
1385                                                         <field name="move_stock_return_history" nolabel="1"/>
1386                                                 </page>
1387                             </notebook>
1388                 </form>
1389             </field>
1390         </record>
1391
1392             <record id="view_move_search_reception_picking" model="ir.ui.view">
1393             <field name="name">stock.move.search2</field>
1394             <field name="model">stock.move</field>
1395             <field name="type">search</field>
1396             <field eval="6" name="priority"/>
1397             <field name="arch" type="xml">
1398                 <search string="Stock Moves">
1399                         <group col="8" colspan="4">
1400                                 <filter icon="terp-stock" string="To Receive" domain="[('state','in',('confirmed','assigned'))]" default="1" help="Stock to be received"/>
1401                                 <filter icon="terp-stock" string="Back Orders" domain="[('backorder_id','!=',False)]" help="Back Orders"/>
1402                                 <filter icon="terp-stock" string="Planned Today" domain="[('date_planned::date','=',time.strftime('%%Y-%%m-%%d'))]" help="Orders planned for today"/>
1403                                 <separator orientation="vertical"/>
1404                         <field name="origin" string="Purchase Order" select="1"/>
1405                                 <field name="partner_id" string="Supplier" select="1"/>
1406                             <field name="product_id"/>
1407                     </group>
1408                     <group expand="context.get('report',False)" string="Group By..." colspan="4" col="8">
1409                                                 <filter string="Product" icon="terp-stock" domain="[]" context="{'group_by':'product_id'}"/>
1410                                                 <filter string="State" icon="terp-stock" domain="[]" context="{'group_by':'state'}"/>
1411                                                 <filter string="Date" icon="terp-stock" domain="[]" context="{'group_by':'date'}"/>
1412                                         </group>
1413                 </search>
1414             </field>
1415         </record>
1416
1417         <record id="action_reception_picking_move" model="ir.actions.act_window">
1418             <field name="name">Incoming Products</field>
1419             <field name="res_model">stock.move</field>
1420             <field name="type">ir.actions.act_window</field>
1421             <field name="view_type">form</field>
1422             <field name="view_mode">tree,form</field>
1423             <field name="domain">[('picking_id','!=',False),('picking_id.type','=','in')]</field>
1424             <field name="view_id" ref="view_move_tree_reception_picking"/>
1425             <field name="search_view_id" ref="view_move_search_reception_picking"/>
1426         </record>
1427
1428         <record model="ir.actions.act_window.view" id="action_move_reception_picking_tree">
1429                 <field name="sequence" eval="1"/>
1430                 <field name="view_mode">tree</field>
1431                 <field name="view_id" ref="view_move_tree_reception_picking"/>
1432                 <field name="act_window_id" ref="action_reception_picking_move"/>
1433             </record>
1434         <record model="ir.actions.act_window.view" id="action_move_reception_picking_form">
1435                 <field name="sequence" eval="2"/>
1436                 <field name="view_mode">form</field>
1437                 <field name="view_id" ref="view_move_form_reception_picking"/>
1438                 <field name="act_window_id" ref="action_reception_picking_move"/>
1439             </record>
1440 <!--        <menuitem action="action_reception_picking_move" id="menu_action_reception_picking_move" parent="menu_stock_warehouse_mgmt" sequence="4"/>-->
1441
1442
1443         # -------------------------------------------------------------
1444         # Stock incoterms
1445         # -------------------------------------------------------------
1446         <record id="view_incoterms_tree" model="ir.ui.view">
1447             <field name="name">stock.incoterms.tree</field>
1448             <field name="model">stock.incoterms</field>
1449             <field name="type">tree</field>
1450             <field name="arch" type="xml">
1451                 <tree string="Incoterms">
1452                     <field name="code"/>
1453                     <field colspan="4" name="name" select="1"/>
1454                 </tree>
1455             </field>
1456         </record>
1457         <record id="stock_incoterms_form" model="ir.ui.view">
1458             <field name="name">stock.incoterms.form</field>
1459             <field name="model">stock.incoterms</field>
1460             <field name="type">form</field>
1461             <field name="arch" type="xml">
1462                 <form string="Incoterms">
1463                     <field colspan="4" name="name" select="1"/>
1464                     <field name="code" select="1"/>
1465                     <field name="active" select="1"/>
1466                 </form>
1467             </field>
1468         </record>
1469         <record id="action_incoterms_tree" model="ir.actions.act_window">
1470             <field name="name">Incoterms</field>
1471             <field name="res_model">stock.incoterms</field>
1472             <field name="type">ir.actions.act_window</field>
1473             <field name="view_type">form</field>
1474             <field name="view_mode">tree,form</field>
1475         </record>
1476 <!--        <menuitem action="action_incoterms_tree" id="menu_action_incoterms_tree" parent="menu_stock_configuration"/>-->
1477
1478         <act_window
1479             context="{'location': active_id}"
1480             domain="[('type','&lt;&gt;','service')]"
1481             id="act_product_location_open"
1482             name="Products"
1483             res_model="product.product"
1484             src_model="stock.location"/>
1485
1486         <act_window
1487             context="{'location': active_id}"
1488             domain="[('product_id','=',active_id)]"
1489             id="act_product_stock_move_open"
1490             name="All Stock Moves"
1491             res_model="stock.move"
1492             src_model="product.product"/>
1493
1494         <act_window
1495             domain="[('move_lines','in',[active_id])]"
1496             id="act_relate_picking"
1497             name="Related Picking"
1498             res_model="stock.picking"
1499             src_model="stock.move"/>
1500
1501         <act_window
1502             context="{'location': active_id}"
1503             domain="[('product_id','=',active_id),('state','in',('waiting','confirmed','assigned'))]"
1504             id="act_product_stock_move_futur_open"
1505             name="Future Stock Moves"
1506             res_model="stock.move"
1507             src_model="product.product"/>
1508
1509         <record id="ir_act_product_location_open" model="ir.values">
1510             <field name="key2">tree_but_open</field>
1511             <field name="model">stock.location</field>
1512             <field name="name">Products</field>
1513             <field eval="'ir.actions.act_window,%d'%act_product_location_open" name="value"/>
1514             <field eval="True" name="object"/>
1515         </record>    
1516
1517
1518         <record id="ir_act_product_location_open" model="ir.values">
1519             <field name="key2">tree_but_open</field>
1520             <field name="model">stock.location</field>
1521             <field name="name">Open Products</field>
1522             <field eval="'ir.actions.wizard,%d'%ref('location_product')" name="value"/>
1523             <field eval="True" name="object"/>
1524         </record>  
1525
1526                 <!-- Graph Views -->
1527                 <!--  Products To Received Vs Planned -->
1528                 <record model="ir.ui.view" id="view_move_graph_reception_picking_tree">
1529                 <field name="name">Products To Received</field>
1530                 <field name="model">report.products.to.received.planned</field>
1531                 <field name="type">tree</field>
1532                 <field name="arch" type="xml">
1533                         <tree string="Products To Received" >
1534                             <field name="qty" />
1535                             <field name="planned_qty" />
1536                             <field name="date"/>
1537                         </tree>
1538                 </field>
1539             </record>
1540
1541                 <record model="ir.ui.view" id="view_move_graph_reception_picking">
1542                 <field name="name">Products To Received</field>
1543                 <field name="model">report.products.to.received.planned</field>
1544                 <field name="type">graph</field>
1545                 <field name="arch" type="xml">
1546                 <graph string="Products To Received" type="bar" orientation="vertical">
1547                                 <field name="date"/>
1548                     <field name="qty" operator="+"/>
1549                     <field name="planned_qty" operator="+"/>
1550                 </graph>
1551                 </field>
1552             </record>
1553
1554             <record id="action_move_graph_reception_picking" model="ir.actions.act_window">
1555                 <field name="name">Number of Products to receive Vs planned</field>
1556                 <field name="res_model">report.products.to.received.planned</field>
1557                 <field name="type">ir.actions.act_window</field>
1558                 <field name="view_type">form</field>
1559                 <field name="view_mode">graph,tree</field>
1560                 <field name="view_id" ref="view_move_graph_reception_picking"/>
1561             </record>
1562
1563                 <!--  Delivery Product Vs Planned -->
1564                 <record model="ir.ui.view" id="view_move_delivery_products_planned_tree">
1565                 <field name="name">Delivery Products</field>
1566                 <field name="model">report.delivery.products.planned</field>
1567                 <field name="type">tree</field>
1568                 <field name="arch" type="xml">
1569                         <tree string="Products To Received" >
1570                             <field name="qty" />
1571                             <field name="planned_qty" />
1572                             <field name="date"/>
1573                         </tree>
1574                 </field>
1575             </record>
1576
1577                 <record model="ir.ui.view" id="view_move_delivery_products_planned_graph">
1578                 <field name="name">Delivery Products</field>
1579                 <field name="model">report.delivery.products.planned</field>
1580                 <field name="type">graph</field>
1581                 <field name="arch" type="xml">
1582                 <graph string="Products To Received" type="bar" orientation="vertical">
1583                         <field name="date"/>
1584                     <field name="qty" operator="+"/>
1585                     <field name="planned_qty" operator="+"/>
1586                 </graph>
1587                 </field>
1588             </record>
1589
1590             <record id="action_move_delivery_products_planned" model="ir.actions.act_window">
1591                 <field name="name">Delivery Products Vs Planned</field>
1592                 <field name="res_model">report.delivery.products.planned</field>
1593                 <field name="type">ir.actions.act_window</field>
1594                 <field name="view_type">form</field>
1595                 <field name="view_mode">graph,tree</field>
1596                 <field name="view_id" ref="view_move_delivery_products_planned_graph"/>
1597             </record>
1598
1599     </data>
1600 </openerp>