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