[IMP] Add incoterm menu
[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="2" colspan="2">
174                         <button name="action_cancel_inventary" states="draft" 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" 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="view_location_form" model="ir.ui.view">
470             <field name="name">stock.location.form</field>
471             <field name="model">stock.location</field>
472             <field name="type">form</field>
473             <field name="arch" type="xml">
474                 <form string="Stock Location">
475                     <group col="2" colspan="2">
476                         <separator string="Location" colspan="2"/>
477                         <field name="name"/>
478                         <field name="usage"/>
479                         <field name="location_id"/>
480                     </group>
481                     <group col="4" colspan="2">
482                         <separator string="Additional Information" colspan="4"/>
483                         <field name="address_id" context="{'contact_display':'partner'}" colspan="4"/>
484                         <field name="company_id" groups="base.group_multi_company" widget="selection" colspan="4"/>
485                         <field name="icon" groups="base.group_extended" colspan="4"/>
486                         <field name="scrap_location" groups="base.group_extended"/>
487                         <field name="active" groups="base.group_extended"/>
488                     </group>
489                     <group col="2" colspan="2" groups="base.group_extended">
490                         <separator string="Chained Locations" colspan="2"/>
491                         <field name="chained_location_type"/>
492                         <field name="chained_location_id"  attrs="{'required':[('chained_location_type','=','fixed')]}"/>
493                         <field name="chained_auto_packing"/>
494                         <field name="chained_delay"/>
495                         <field name="chained_journal_id"/>
496                         <field name="chained_picking_type"/>
497                         <field name="chained_company_id" widget="selection"/>
498                     </group>
499                     <group col="2" colspan="2">
500                         <separator string="Localization" colspan="2"/>
501                         <field name="posx"/>
502                         <field name="posy"/>
503                         <field name="posz"/>
504                     </group>
505                     <separator string="Additional Information" colspan="4"/>
506                     <field colspan="4" name="comment" nolabel="1"/>
507                 </form>
508             </field>
509         </record>
510
511         <record id="view_location_search" model="ir.ui.view">
512             <field name="name">stock.location.search</field>
513             <field name="model">stock.location</field>
514             <field name="type">search</field>
515             <field name="arch" type="xml">
516                 <search string="Stock Locations">
517                     <filter icon="terp-go-home" name="in_location"
518                         string="Internal" domain="[('usage', '=', 'internal')]" help="Internal Locations" />
519                     <filter icon="terp-personal" name="customer"
520                         string="Customer" domain="[('usage', '=', 'customer')]" help="Customer Locations" />
521                     <filter icon="terp-personal" name="supplier"
522                         string="Supplier" domain="[('usage', '=', 'supplier')]" help="Supplier Locations" />
523                     <separator orientation="vertical"/>
524                     <field name="name"/>
525                 </search>
526             </field>
527         </record>
528
529
530         <record id="view_location_tree2" model="ir.ui.view">
531             <field name="name">stock.location.tree</field>
532             <field name="model">stock.location</field>
533             <field name="type">tree</field>
534             <field name="priority" eval="2"/>
535             <field name="arch" type="xml">
536                 <tree string="Stock Location" colors="blue:usage=='view';darkred:usage=='internal'">
537                     <field name="complete_name"/>
538                     <field name="usage"/>
539                     <field name="stock_real" invisible="'product_id' not in context"/>
540                     <field name="stock_virtual" invisible="'product_id' not in context"/>
541                 </tree>
542             </field>
543         </record>
544
545         <record id="action_location_form" model="ir.actions.act_window">
546             <field name="name">Locations</field>
547             <field name="res_model">stock.location</field>
548             <field name="type">ir.actions.act_window</field>
549             <field name="view_type">form</field>
550             <field name="view_id" ref="view_location_tree2"/>
551             <field name="search_view_id" ref="view_location_search"/>
552             <field name="context">{'full':1, 'search_default_in_location':1}</field>
553             <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>
554         </record>
555         <menuitem action="action_location_form" id="menu_action_location_form" parent="menu_warehouse_config"/>
556
557         <record id="view_location_tree" model="ir.ui.view">
558             <field name="name">stock.location.tree</field>
559             <field name="model">stock.location</field>
560             <field name="type">tree</field>
561             <field name="field_parent">child_ids</field>
562             <field name="arch" type="xml">
563                 <tree toolbar="1">
564                     <field icon="icon" name="name"/>
565                 </tree>
566             </field>
567         </record>
568         <record id="action_location_tree" model="ir.actions.act_window">
569             <field name="name">Location Structure</field>
570             <field name="res_model">stock.location</field>
571             <field name="type">ir.actions.act_window</field>
572             <field name="domain">[('location_id','=',False)]</field>
573             <field name="view_type">tree</field>
574             <field name="view_id" ref="view_location_tree"/>
575             <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>
576         </record>
577         <menuitem action="action_location_tree"
578             id="menu_action_location_tree"
579             parent="menu_stock_inventory_control"
580             sequence="20"/>
581
582         <record id="view_warehouse" model="ir.ui.view">
583             <field name="name">stock.warehouse</field>
584             <field name="model">stock.warehouse</field>
585             <field name="type">form</field>
586             <field name="arch" type="xml">
587                 <form string="Warehouse">
588                     <field colspan="4" name="name" select="1"/>
589                     <field name="lot_input_id"/>
590                     <field name="lot_stock_id"/>
591                     <field name="lot_output_id"/>
592                     <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
593                     <newline/>
594                     <field name="partner_address_id" context="{'contact_display':'partner'}"/>
595                 </form>
596             </field>
597         </record>
598         <record id="view_warehouse_tree" model="ir.ui.view">
599             <field name="name">stock.warehouse.tree</field>
600             <field name="model">stock.warehouse</field>
601             <field name="type">tree</field>
602             <field name="arch" type="xml">
603                 <tree string="Warehouse">
604                     <field name="name"/>
605                     <field name="lot_input_id"/>
606                     <field name="lot_stock_id"/>
607                     <field name="lot_output_id"/>
608                     <field name="partner_address_id" context="{'contact_display':'partner'}"/>
609                 </tree>
610             </field>
611         </record>
612         <record id="action_warehouse_form" model="ir.actions.act_window">
613             <field name="name">Warehouses</field>
614             <field name="res_model">stock.warehouse</field>
615             <field name="type">ir.actions.act_window</field>
616             <field name="view_type">form</field>
617             <field name="view_id" ref="view_warehouse_tree"/>
618             <field name="help">Create and manage your warehouses and assign them a location from here</field>
619         </record>
620         <menuitem action="action_warehouse_form" id="menu_action_warehouse_form" parent="menu_warehouse_config"/>
621
622         <record model="ir.ui.view" id="stock_picking_calendar">
623             <field name="name">stock.picking.calendar</field>
624             <field name="model">stock.picking</field>
625             <field name="type">calendar</field>
626             <field name="priority" eval="2"/>
627             <field name="arch" type="xml">
628                 <calendar string="Calendar View" date_start="min_date" date_stop="max_date" color="address_id">
629                     <field name="origin"/>
630                     <field name="type"/>
631                     <field name="address_id"/>
632                 </calendar>
633             </field>
634         </record>
635         <record id="vpicktree" model="ir.ui.view">
636             <field name="name">stock.picking.tree</field>
637             <field name="model">stock.picking</field>
638             <field name="type">tree</field>
639             <field name="arch" type="xml">
640                 <tree colors="blue:state in ('draft');grey:state in ('cancel');red:state not in ('cancel', 'done') and date &lt; current_date" string="Picking list">
641                     <field name="name"/>
642                     <field name="backorder_id" groups="base.group_extended"/>
643                     <field name="origin"/>
644                     <field name="date"/>
645                     <field name="min_date"/>
646                     <field name="invoice_state"/>
647                     <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
648                     <field name="state"/>
649                     <button name="action_process" states="confirmed,assigned" groups="stock.group_stock_user" string="Process" type="object" icon="gtk-go-forward"/>
650                 </tree>
651             </field>
652         </record>
653         <record id="view_picking_form" model="ir.ui.view">
654             <field name="name">stock.picking.form</field>
655             <field name="model">stock.picking</field>
656             <field name="type">form</field>
657             <field eval="12" name="priority"/>
658             <field name="arch" type="xml">
659                 <form string="Internal Picking list">
660                     <group colspan="4" col="6">
661                         <group colspan="4" col="4">
662                             <field name="name" readonly="1"/>
663                             <field name="origin"/>
664                             <field name="address_id" on_change="onchange_partner_in(address_id)" context="{'contact_display':'partner'}" colspan="4"/>
665                             <field name="backorder_id" readonly="1" groups="base.group_extended"/>
666                         </group>
667                         <group colspan="2" col="2">
668                             <field name="date"/>
669                             <field name="min_date" readonly="1"/>
670                             <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
671                         </group>
672                     </group>
673                     <notebook colspan="4">
674                         <page string="Products">
675                             <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines}">
676                                 <tree colors="grey:scrapped == True" string="Stock Moves">
677                                     <field name="product_id"/>
678                                     <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
679                                     <field name="product_uom" string="UoM"/>
680                                     <field name="product_uos" groups="product.group_uos"/>
681                                     <button name="%(stock.move_scrap)d"
682                                         string="Scrap Products" type="action"
683                                         icon="gtk-convert" context="{'scrap': True}"
684                                         states="draft,waiting,confirmed,assigned"
685                                         groups="base.group_extended"/>
686                                     <field name="scrapped" invisible="1"/>
687                                     <field name="prodlot_id" groups="base.group_extended"/>
688                                     <button
689                                         name="%(stock.track_line)d"
690                                         string="Split in production lots"
691                                         groups="base.group_extended"
692                                         type="action" icon="terp-stock_effects-object-colorize"
693                                         states="draft,waiting,confirmed,assigned" />
694                                     <field groups="base.group_extended" name="tracking_id"/>
695                                     <button name="setlast_tracking" string="Put in current pack" type="object"
696                                         attrs="{'invisible': [('tracking_id','&lt;&gt;',False)]}"
697                                         icon="terp-stock_effects-object-colorize"
698                                         groups="base.group_extended"
699                                         states="draft,assigned,confirmed"/>
700                                     <button name="%(split_into)d" string="Put in a new pack" type="action"
701                                         groups="base.group_extended"
702                                         icon="terp-stock_effects-object-colorize"
703                                         states="draft,assigned,confirmed"/>
704                                     <button name="%(split_into)d" string="Put in a new pack" type="action"
705                                         groups="base.group_extended"
706                                         icon="terp-stock_effects-object-colorize"
707                                         states="draft,assigned,confirmed"/>
708                                     <field name="location_id"/>
709                                     <field name="location_dest_id"/>
710                                     <field name="date_expected" string="Date Expected"/>
711                                     <field name="state"/>
712                                 </tree>
713                                 <form string="Stock Moves">
714                                     <group colspan="2" col="4">
715                                         <separator colspan="4" string="Move Information"/>
716                                         <field name="name" invisible="1" colspan="4"/>
717                                         <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id)" colspan="4"/>
718                                         <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="3"/>
719                                         <button name="%(stock.move_scrap)d"
720                                                 string="Scrap" type="action" groups="base.group_extended"
721                                                 icon="gtk-convert" context="{'scrap': True}"
722                                                 states="draft,waiting,confirmed,assigned" colspan="1"/>
723                                         <field name="product_uom" string="Unit Of Measure" colspan="4"/>
724                                         <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"/>
725                                         <field groups="product.group_uos" name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4"/>
726                                         <field groups="base.group_extended" name="product_packaging"  domain="[('product_id','=',product_id)]" colspan="4"/>
727                                     </group>
728
729                                     <group colspan="2" col="2">
730                                         <separator string="Locations" colspan="2" />
731                                         <field name="location_id" domain="[('usage','=','internal')]" />
732                                         <field name="location_dest_id" domain="[('usage','=','internal')]" />
733                                     </group>
734
735                                     <group colspan="2" col="2">
736                                         <separator string="Dates" colspan="2" />
737                                         <field name="create_date" invisible="1"/>
738                                         <field name="date"/>
739                                         <field name="date_expected"/>
740                                     </group>
741
742                                     <group colspan="2" col="4" groups="base.group_extended">
743                                         <separator string="Traceability" colspan="4" groups="base.group_extended"/>
744                                         <field name="tracking_id" groups="base.group_extended"  colspan="3"/>
745                                         <button name="%(split_into)d" string="New pack" type="action"
746                                               groups="base.group_extended"
747                                               icon="terp-stock_effects-object-colorize"
748                                               states="draft,assigned,confirmed"  colspan="1"/>
749                                         <field name="prodlot_id" groups="base.group_extended"
750                                             context="{'location_id':location_id, 'product_id':product_id}"
751                                             domain="[('product_id','=?',product_id)]"
752                                             on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)"  colspan="3"/>
753                                         <button name="%(track_line)d"
754                                             groups="base.group_extended"
755                                             states="draft,waiting,confirmed,assigned"
756                                             string="Split" type="action" icon="terp-stock_effects-object-colorize" colspan="1" />
757                                     </group>
758                                     <label string="" colspan="4"/>
759                                     <field name="state"/>
760                                     <group col="4" colspan="2">
761                                         <button name="action_cancel" states="assigned" string="Cancel" type="object" icon="gtk-cancel"/>
762                                         <button name="action_confirm" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
763                                         <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
764                                         <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
765                                     </group>
766                                 </form>
767                             </field>
768                             <group col="10" colspan="4">
769                                 <field name="state" readonly="1"/>
770                                 <button name="button_cancel" states="assigned,confirmed,draft" string="_Cancel" icon="gtk-cancel"/>
771                                 <button name="draft_force_assign" states="draft" string="Process Later" type="object" icon="gtk-apply"/>
772                                 <button name="draft_validate" states="draft" string="Process Now" type="object" icon="gtk-media-play"/>
773                                 <button name="action_assign" states="confirmed" string="Check Availability" type="object" icon="gtk-find"/>
774                                 <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
775                                 <button name="action_process" states="assigned" string="Process"  groups="stock.group_stock_user" type="object" icon="gtk-go-forward"/>
776                                 <button states="done" name="%(action_stock_invoice_onshipping)d"  string="Create Invoice" type="action" icon="terp-gtk-go-back-rtl" />
777                             </group>
778                         </page>
779                         <page string="Additional info" groups="base.group_extended,base.group_multi_company">
780                             <field name="auto_picking" groups="base.group_extended"/>
781                             <field name="invoice_state" groups="base.group_extended"/>
782                             <field name="date_done" groups="base.group_extended"/>
783                             <field name="move_type" groups="base.group_extended"/>
784                             <field name="type" groups="base.group_extended"/>
785                             <field name="company_id" groups="base.group_multi_company" widget="selection"/>
786                         </page>
787                         <page string="Notes">
788                             <field colspan="4" name="note" nolabel="1"/>
789                         </page>
790                     </notebook>
791                 </form>
792             </field>
793         </record>
794
795         <record id="view_stock_picking_filter" model="ir.ui.view">
796             <field name="name">stock.picking.list.select</field>
797             <field name="model">stock.picking</field>
798             <field name="type">search</field>
799             <field name="arch" type="xml">
800                 <search string="Search Stock Picking">
801                     <group col="10" colspan="4">
802                         <filter icon="terp-check" name="available" string="Available" domain="[('state','=','assigned')]" help="Available Pickings"/>
803                         <filter icon="terp-camera_test" string="Confirmed" domain="[('state','=','confirmed')]" help="Confirmed Pickings"/>
804                         <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" help="Pickings already processed"/>
805                         <separator orientation="vertical"/>
806                         <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order" groups="base.group_extended"/>
807                         <separator orientation="vertical"/>
808                         <filter icon="terp-dolar" name="to_invoice" string="To Invoice" domain="[('invoice_state','=','2binvoiced')]" help="Internal Pickings to invoice"/>
809                         <separator orientation="vertical"/>
810                         <field name="name"/>
811                         <field name="address_id"/>
812                         <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
813                     </group>
814                     <newline/>
815                     <group expand="0" string="Group By..." colspan="4" col="8">
816                         <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
817                         <separator orientation="vertical" />
818                         <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
819                         <separator orientation="vertical" />
820                         <filter string="Date" icon="terp-go-month" domain="[]"  context="{'group_by':'date'}"/>
821                         <separator orientation="vertical" />
822                         <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}"  groups="base.group_extended"/>
823                     </group>
824                 </search>
825             </field>
826         </record>
827
828         <!--
829         #
830         # Sending Products
831         #
832         -->
833         <record id="view_picking_out_tree" model="ir.ui.view">
834             <field name="name">stock.picking.out.tree</field>
835             <field name="model">stock.picking</field>
836             <field name="type">tree</field>
837             <field name="arch" type="xml">
838                 <tree colors="blue:state in ('draft');grey:state in ('cancel');red:state not in ('cancel', 'done') and date &lt; current_date" string="Delivery Orders">
839                     <field name="name"/>
840                     <field name="partner_id"/>
841                     <field name="origin"/>
842                     <field name="date"/>
843                     <field name="min_date"/>
844                     <field name="backorder_id" groups="base.group_extended"/>
845                     <field name="invoice_state"/>
846                     <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
847                     <field name="state"/>
848                     <button name="action_process" states="assigned" string="Process" type="object" icon="gtk-go-forward"/>
849                 </tree>
850             </field>
851         </record>
852         <record id="view_picking_out_form" model="ir.ui.view">
853             <field name="name">stock.picking.out.form</field>
854             <field name="model">stock.picking</field>
855             <field name="type">form</field>
856             <field name="arch" type="xml">
857                 <form string="Delivery Orders">
858                     <group col="6" colspan="4">
859                         <group colspan="4" col="4">
860                             <field name="name" readonly="1"/>
861                             <field name="origin" readonly="1"/>
862                             <field name="address_id" on_change="onchange_partner_in(address_id)" context="{'contact_display':'partner'}" colspan="4"/>
863                             <field name="invoice_state"/>
864                             <field name="backorder_id" readonly="1" groups="base.group_extended"/>
865                         </group>
866                         <group colspan="2" col="2">
867                             <field name="date"/>
868                             <field name="min_date" readonly="1"/>
869                             <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
870                         </group>
871                     </group>
872                     <notebook colspan="4">
873                         <page string="Products">
874                             <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines, 'address_out_id': address_id}" >
875                                 <tree colors="grey:scrapped==True" string="Stock Moves">
876                                     <field name="product_id"/>
877                                     <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
878                                     <field name="product_uom" string="UoM"/>
879                                     <field name="product_uos" groups="product.group_uos"/>
880                                     <button name="%(stock.move_scrap)d"
881                                         string="Scrap Products" type="action"
882                                         icon="gtk-convert" context="{'scrap': True}"
883                                         states="draft,waiting,confirmed,assigned" />
884                                     <field name="scrapped" invisible="1"/>
885                                     <field name="prodlot_id" groups="base.group_extended"/>
886                                     <button name="%(track_line)d" string="Split in production lots" type="action"
887                                         icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('prodlot_id','&lt;&gt;',False)]}"
888                                         states="draft,assigned,confirmed"
889                                         groups="base.group_extended"/>
890                                     <field name="tracking_id" groups="base.group_extended"/>
891                                     <button name="setlast_tracking" string="Put in current pack" type="object"
892                                         attrs="{'invisible': [('tracking_id','&lt;&gt;',False)]}"
893                                         groups="base.group_extended"
894                                         icon="terp-stock_effects-object-colorize"
895                                         states="draft,assigned,confirmed"/>
896                                     <button name="%(split_into)d" string="Put in a new pack" type="action"
897                                         icon="terp-stock_effects-object-colorize"
898                                         groups="base.group_extended"
899                                         states="draft,assigned,confirmed"/>
900                                     <field name="location_id"/>
901                                     <field name="date"/>
902                                     <field name="state"/>
903                                     <button name="%(action_partial_move_server)d" string="Partial" type="action" states="confirmed,assigned" icon="gtk-justify-fill"/>
904                                     <button name="action_done" states="confirmed,assigned" string="Process" type="object" icon="gtk-go-forward"/>
905                                 </tree>
906                                 <form string="Stock Moves">
907                                     <group colspan="2" col="4">
908                                         <separator colspan="4" string="Move Information"/>
909                                         <field name="name" invisible="1" colspan="4" />
910                                         <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id)" colspan="4" />
911                                         <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="3" />
912                                         <button name="%(stock.move_scrap)d"
913                                                 string="Scrap" type="action"
914                                                 icon="gtk-convert" context="{'scrap': True}"
915                                                 states="draft,waiting,confirmed,assigned" colspan="1" groups="base.group_extended"/>
916                                         <field name="product_uom" string="Unit Of Measure" colspan="4" />
917                                         <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" />
918                                         <field groups="product.group_uos" name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" />
919                                         <field groups="base.group_extended" name="product_packaging"  domain="[('product_id','=',product_id)]" colspan="4" />
920                                     </group>
921
922                                     <group colspan="2" col="2">
923                                         <separator string="Locations" colspan="2" />
924                                         <field name="location_id" domain="[('usage','=','internal')]" />
925                                         <field name="location_dest_id" domain="[('usage','&lt;&gt;','view')]" />
926                                     </group>
927
928                                     <group colspan="2" col="2">
929                                         <separator string="Dates" colspan="2" />
930                                         <field name="create_date" invisible="1"/>
931                                         <field name="date"/>
932                                         <field name="date_expected"/>
933                                     </group>
934
935                                     <group colspan="2" col="4" groups="base.group_extended">
936                                         <separator string="Traceability" colspan="4" groups="base.group_extended"/>
937                                         <field name="tracking_id" groups="base.group_extended" colspan="3" />
938                                           <button name="%(split_into)d" string="New pack" type="action"
939                                               groups="base.group_extended"
940                                               icon="terp-stock_effects-object-colorize"
941                                               states="draft,assigned,confirmed" colspan="1"/>
942                                         <field name="prodlot_id" groups="base.group_extended"
943                                             context="{'location_id':location_id, 'product_id':product_id}"
944                                             domain="[('product_id','=?',product_id)]"
945                                             on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"/>
946                                         <button name="%(track_line)d"
947                                               groups="base.group_extended"
948                                               states="draft,waiting,confirmed,assigned"
949                                               string="Split" type="action" icon="terp-stock_effects-object-colorize" colspan="1" />
950                                     </group>
951                                     <label string="" colspan="4"/>
952                                     <field name="state"/>
953                                     <group col="4" colspan="2">
954                                         <button name="action_cancel" states="assigned" string="Cancel" type="object" icon="gtk-cancel"/>
955                                         <button name="action_confirm" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
956                                         <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
957                                         <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
958                                     </group>
959                                 </form>
960                             </field>
961                             <group col="12" colspan="4">
962                                 <field name="state" readonly="1"/>
963                                 <button name="button_cancel" states="assigned,confirmed,draft" string="_Cancel" icon="gtk-cancel"/>
964                                 <button name="draft_force_assign" states="draft" string="Process Later" type="object" icon="gtk-ok"/>
965                                 <button name="draft_validate" states="draft" string="Process Now" type="object" icon="gtk-yes"/>
966                                 <button name="action_assign" states="confirmed" string="Check Availability" type="object" groups="base.group_extended" icon="gtk-find"/>
967                                 <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
968                                 <button name="action_process" states="assigned" string="Process" type="object" icon="gtk-go-forward"/>
969                                 <button name="%(act_stock_return_picking)d" string="Return Products" states="done" type="action" icon="gtk-execute"/>
970                                 <button name="%(action_stock_invoice_onshipping)d" string="Create Invoice" states="done" type="action" icon="terp-gtk-go-back-rtl"/>
971                             </group>
972                         </page>
973                         <page string="Additional info" groups="base.group_extended,base.group_multi_company">
974                             <field name="auto_picking" groups="base.group_extended"/>
975                             <field name="date_done" groups="base.group_extended"/>
976                             <field name="move_type" groups="base.group_extended"/>
977                             <field name="type" groups="base.group_extended"/>
978                             <field name="company_id" groups="base.group_multi_company" widget="selection"/>
979                         </page>
980                         <page string="Notes">
981                             <field colspan="4" name="note" nolabel="1"/>
982                         </page>
983                     </notebook>
984                 </form>
985             </field>
986         </record>
987
988         <record id="view_picking_out_search" model="ir.ui.view">
989             <field name="name">stock.picking.out.search</field>
990             <field name="model">stock.picking</field>
991             <field name="type">search</field>
992             <field name="arch" type="xml">
993                 <search string="Picking list">
994                     <group col="8" colspan="4">
995                         <filter icon="terp-check" name="available" string="Available" domain="[('state','=','assigned')]" help="Assigned Delivery Orders"/>
996                         <filter icon="terp-camera_test" name="confirmed" string="Confirmed" domain="[('state','=','confirmed')]" help="Confirmed Delivery Orders"/>
997                         <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" help="Delivery orders already processed"/>
998                         <separator orientation="vertical"/>
999                         <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order" groups="base.group_extended"/>
1000                         <separator orientation="vertical"/>
1001                         <filter icon="terp-dolar" name="to_invoice" string="To Invoice" domain="[('invoice_state','=','2binvoiced')]" help="Delivery orders to invoice"/>
1002                         <separator orientation="vertical"/>
1003                         <field name="name"/>
1004                         <field name="partner_id" />
1005                         <field name="origin"/>
1006                         <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
1007                         <field name="company_id" widget="selection" groups="base.group_multi_company"/>
1008                    </group>
1009                     <newline/>
1010                     <group expand="0" string="Group By..." colspan="4" col="8">
1011                         <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
1012                         <separator orientation="vertical" />
1013                         <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1014                         <separator orientation="vertical" />
1015                         <filter string="Order Date" icon="terp-go-month" domain="[]"  context="{'group_by':'date'}"/>
1016                         <filter string="Expected Date" icon="terp-go-month" domain="[]"  context="{'group_by':'min_date'}"/>
1017                         <separator orientation="vertical" />
1018                         <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}"  groups="base.group_extended"/>
1019                     </group>
1020                 </search>
1021             </field>
1022         </record>
1023
1024         <record id="action_picking_tree" model="ir.actions.act_window">
1025             <field name="name">Delivery Orders</field>
1026             <field name="res_model">stock.picking</field>
1027             <field name="type">ir.actions.act_window</field>
1028             <field name="view_type">form</field>
1029             <field name="view_mode">tree,form,calendar</field>
1030             <field name="domain">[('type','=','out')]</field>
1031             <field name="context">{'contact_display': 'partner_address', 'search_default_available': 1}</field>
1032             <field name="search_view_id" ref="view_picking_out_search"/>
1033             <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>
1034         </record>
1035         <record id="action_picking_tree_out_view1_waiting" model="ir.actions.act_window.view">
1036             <field eval="1" name="sequence"/>
1037             <field name="view_mode">tree</field>
1038             <field name="view_id" ref="view_picking_out_tree"/>
1039             <field name="act_window_id" ref="action_picking_tree"/>
1040         </record>
1041         <record id="action_picking_tree_out_view2_waiting" model="ir.actions.act_window.view">
1042             <field eval="2" name="sequence"/>
1043             <field name="view_mode">form</field>
1044             <field name="view_id" ref="view_picking_out_form"/>
1045             <field name="act_window_id" ref="action_picking_tree"/>
1046         </record>
1047         <record id="action_picking_tree_out_view2_waiting_cal" model="ir.actions.act_window.view">
1048             <field eval="3" name="sequence"/>
1049             <field name="view_mode">calendar</field>
1050             <field name="act_window_id" ref="action_picking_tree"/>
1051         </record>
1052         <menuitem action="action_picking_tree" id="menu_action_picking_tree" parent="menu_stock_warehouse_mgmt" sequence="3"/>
1053
1054         <record id="view_picking_in_tree" model="ir.ui.view">
1055             <field name="name">stock.picking.in.tree</field>
1056             <field name="model">stock.picking</field>
1057             <field name="type">tree</field>
1058             <field name="arch" type="xml">
1059                 <tree colors="blue:state in ('draft');grey:state in ('done');red:state not in ('cancel', 'done') and date &lt; current_date" string="Picking list">
1060                     <field name="name"/>
1061                     <field name="partner_id" />
1062                     <field name="backorder_id" groups="base.group_extended"/>
1063                     <field name="origin"/>
1064                     <field name="date"/>
1065                     <field name="min_date"/>
1066                     <field name="invoice_state" groups="base.group_extended"/>
1067                     <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
1068                     <field name="state"/>
1069                     <button name="action_process" states="assigned" string="Process" type="object" icon="gtk-go-forward"/>
1070                     <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?" />
1071                 </tree>
1072             </field>
1073         </record>
1074         <record id="view_picking_in_form" model="ir.ui.view">
1075             <field name="name">stock.picking.in.form</field>
1076             <field name="model">stock.picking</field>
1077             <field name="type">form</field>
1078             <field name="arch" type="xml">
1079                 <form string="Input Picking List">
1080                     <group colspan="4" col="6">
1081                         <group colspan="4" col="4">
1082                             <field name="name" readonly="1"/>
1083                             <field name="origin"/>
1084                             <field name="address_id" on_change="onchange_partner_in(address_id)" context="{'contact_display':'partner'}" colspan="4"/>
1085                             <field name="invoice_state" string="Invoice Control"/>
1086                             <field name="backorder_id" readonly="1" groups="base.group_extended"/>
1087                         </group>
1088                         <group colspan="2" col="2">
1089                             <field name="date"/>
1090                             <field name="min_date" readonly="1"/>
1091                             <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
1092                         </group>
1093                     </group>
1094                     <notebook colspan="4">
1095                         <page string="General Information">
1096                             <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines, 'address_in_id': address_id}" >
1097                                 <tree colors="grey:scrapped==True" string="Stock Moves">
1098                                     <field name="product_id" />
1099                                     <field name="product_qty" />
1100                                     <field name="product_uom" string="UoM" />
1101                                     <button name="%(stock.move_scrap)d"
1102                                         string="Scrap Products" type="action"
1103                                         icon="gtk-convert" context="{'scrap': True}"
1104                                         states="draft,waiting,confirmed,assigned"
1105                                         groups="base.group_extended"/>
1106                                     <field name="scrapped" invisible="1"/>
1107                                     <field name="prodlot_id" groups="base.group_extended"/>
1108                                     <button
1109                                            name="%(stock.track_line)d"
1110                                            string="Split in production lots"
1111                                            groups="base.group_extended"
1112                                            type="action" icon="terp-stock_effects-object-colorize"
1113                                            states="draft,waiting,confirmed,assigned" />
1114                                     <field name="tracking_id" groups="base.group_extended"/>
1115                                     <button name="setlast_tracking" string="Put in current pack" type="object"
1116                                         groups="base.group_extended"
1117                                         icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('tracking_id','&lt;&gt;',False)]}"
1118                                         states="draft,assigned,confirmed"/>
1119                                     <button name="%(split_into)d" string="Put in a new pack" type="action"
1120                                         groups="base.group_extended"
1121                                         icon="terp-stock_effects-object-colorize"
1122                                         states="draft,assigned,confirmed"/>
1123                                     <field name="location_dest_id"/>
1124                                     <field name="state"/>
1125                                 </tree>
1126                                 <form string="Stock Moves">
1127                                     <group colspan="2" col="4">
1128                                         <separator colspan="4" string="Move Information"/>
1129                                         <field name="name" invisible="1" colspan="4"/>
1130                                         <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id)" colspan="4"/>
1131                                         <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="3"/>
1132                                         <button name="%(stock.move_scrap)d"
1133                                                 string="Scrap" type="action" groups="base.group_extended"
1134                                                 icon="gtk-convert" context="{'scrap': True}"
1135                                                 states="draft,waiting,confirmed,assigned" colspan="1"/>
1136                                         <field name="product_uom" string="Unit Of Measure" colspan="4"/>
1137                                         <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"/>
1138                                         <field groups="product.group_uos" name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4"/>
1139                                         <field groups="base.group_extended" name="product_packaging"  domain="[('product_id','=',product_id)]" colspan="4"/>
1140                                     </group>
1141
1142                                     <group colspan="2" col="2">
1143                                         <separator string="Locations" colspan="2" />
1144                                         <field name="location_id" domain="[('usage','&lt;&gt;','view')]" />
1145                                         <field name="location_dest_id" domain="[('usage','=','internal')]" />
1146                                     </group>
1147
1148                                     <group colspan="2" col="2">
1149                                         <separator string="Dates" colspan="2" />
1150                                         <field name="create_date" invisible="1"/>
1151                                         <field name="date"/>
1152                                         <field name="date_expected"/>
1153                                     </group>
1154
1155                                     <group colspan="2" col="4" groups="base.group_extended">
1156                                         <separator string="Traceability" colspan="4" groups="base.group_extended"/>
1157                                         <field name="tracking_id" groups="base.group_extended" colspan="3" />
1158                                         <button name="%(split_into)d" string="New pack" type="action"
1159                                               groups="base.group_extended"
1160                                               icon="terp-stock_effects-object-colorize"
1161                                               states="draft,assigned,confirmed" colspan="1"/>
1162                                         <field name="prodlot_id" groups="base.group_extended"
1163                                             context="{'location_id':location_id, 'product_id':product_id}"
1164                                             domain="[('product_id','=?',product_id)]"
1165                                             on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"/>
1166                                         <button name="%(track_line)d"
1167                                               groups="base.group_extended"
1168                                               states="draft,waiting,confirmed,assigned"
1169                                               string="Split" type="action" icon="terp-stock_effects-object-colorize" colspan="1" />
1170                                     </group>
1171                                     <label string="" colspan="4"/>
1172                                     <field name="state"/>
1173                                     <group col="4" colspan="2">
1174                                         <button name="action_cancel" states="assigned" string="_Cancel" type="object" icon="gtk-cancel"/>
1175                                         <button name="action_confirm" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
1176                                         <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
1177                                         <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
1178                                     </group>
1179                                 </form>
1180                             </field>
1181                             <group col="10" colspan="4">
1182                                 <field name="state" readonly="1"/>
1183                                 <button name="button_cancel" states="assigned,confirmed,draft" string="_Cancel" icon="gtk-cancel"/>
1184                                 <button name="draft_force_assign" states="draft" string="Process Later" type="object" icon="gtk-ok"/>
1185                                 <button name="draft_validate" states="draft" string="Process Now" type="object" icon="gtk-media-play"/>
1186                                 <button name="action_assign" states="confirmed" string="Check Availability" type="object" icon="gtk-find"/>
1187                                 <button name="force_assign" states="confirmed" string="Force Availability" type="object" groups="base.group_extended" icon="gtk-jump-to"/>
1188                                 <button name="action_process" states="assigned" string="Process" type="object" icon="gtk-go-forward"/>
1189                                 <group colspan="1" states="done">
1190                                     <button name="%(act_stock_return_picking)d" string="Return Products" states="done" type="action" icon="gtk-execute"/>
1191                                 </group>
1192                                     <button name="%(action_stock_invoice_onshipping)d"  string="Create Invoice" type="action" icon="terp-gtk-go-back-rtl"/>
1193                             </group>
1194                         </page>
1195                         <page string="Additional Info" groups="base.group_extended,base.group_multi_company">
1196                             <field name="type" groups="base.group_extended"/>
1197                             <field name="company_id" groups="base.group_multi_company" widget="selection"/>
1198                         </page>
1199                         <page string="Notes">
1200                             <field colspan="4" name="note" nolabel="1"/>
1201                         </page>
1202                     </notebook>
1203                 </form>
1204             </field>
1205         </record>
1206
1207         <record id="view_picking_in_search" model="ir.ui.view">
1208             <field name="name">stock.picking.in.search</field>
1209             <field name="model">stock.picking</field>
1210             <field name="type">search</field>
1211             <field name="arch" type="xml">
1212                 <search string="Incoming Shipments">
1213                     <group col="8" colspan="4">
1214                         <filter icon="terp-check" name="available" string="Available" domain="[('state','=','assigned')]" help="Incoming Shipments Available" />
1215                         <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" help="Incoming Shipments already processed"/>
1216                         <separator orientation="vertical" />
1217                         <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order" groups="base.group_extended"/>
1218                         <separator orientation="vertical"/>
1219                         <field name="name"/>
1220                         <field name="partner_id"/>
1221                         <field name="origin"/>
1222                         <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
1223                         <field name="company_id" widget="selection" groups="base.group_multi_company" />
1224                     </group>
1225                     <newline/>
1226                     <group expand="0" string="Extended Filters..." colspan="4" col="8">
1227                         <filter string="To invoice" name="to_invoice" icon="terp-dolar" domain="[('invoice_state', '=', '2binvoiced')]" />
1228                     </group>
1229                     <newline/>
1230                     <group expand="0" string="Group By..." colspan="4" col="8">
1231                         <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
1232                         <separator orientation="vertical" />
1233                         <filter icon="terp-stock_effects-object-colorize" name="state" string="State" domain="[]" context="{'group_by':'state'}"/>
1234                         <separator orientation="vertical" />
1235                         <filter string="Order Date" icon="terp-go-month" domain="[]"  context="{'group_by':'date'}"/>
1236                         <filter string="Expected Date" icon="terp-go-month" domain="[]"  context="{'group_by':'min_date'}"/>
1237                         <separator orientation="vertical" />
1238                         <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}"  groups="base.group_extended"/>
1239                     </group>
1240                 </search>
1241             </field>
1242         </record>
1243
1244
1245         <record id="action_picking_tree4" model="ir.actions.act_window">
1246             <field name="name">Incoming Shipments</field>
1247             <field name="res_model">stock.picking</field>
1248             <field name="type">ir.actions.act_window</field>
1249             <field name="view_type">form</field>
1250             <field name="view_mode">tree,form,calendar</field>
1251             <field name="domain">[('type','=','in')]</field>
1252             <field name="context">{'contact_display': 'partner_address',"search_default_available":1}</field>
1253             <field name="search_view_id" ref="view_picking_in_search"/>
1254             <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>
1255         </record>
1256         <record id="action_invoice_tree5_view1" model="ir.actions.act_window.view">
1257             <field eval="1" name="sequence"/>
1258             <field name="view_mode">tree</field>
1259             <field name="view_id" ref="view_picking_in_tree"/>
1260             <field name="act_window_id" ref="action_picking_tree4"/>
1261         </record>
1262         <record id="action_invoice_tree5_view2" model="ir.actions.act_window.view">
1263             <field eval="2" name="sequence"/>
1264             <field name="view_mode">form</field>
1265             <field name="view_id" ref="view_picking_in_form"/>
1266             <field name="act_window_id" ref="action_picking_tree4"/>
1267         </record>
1268         <record id="action_invoice_tree5_view2_cal" model="ir.actions.act_window.view">
1269             <field eval="3" name="sequence"/>
1270             <field name="view_mode">calendar</field>
1271             <field name="act_window_id" ref="action_picking_tree4"/>
1272         </record>
1273         <menuitem action="action_picking_tree4" id="menu_action_picking_tree4" parent="menu_stock_warehouse_mgmt" sequence="1"/>
1274
1275         <record id="view_picking_internal_search" model="ir.ui.view">
1276             <field name="name">stock.picking.internal.search</field>
1277             <field name="model">stock.picking</field>
1278             <field name="type">search</field>
1279             <field name="arch" type="xml">
1280                 <search string="Internal Picking List">
1281                     <group col="8" colspan="4">
1282                         <filter icon="terp-check" string="Available" domain="[('state','=','assigned')]" help="Assigned Internal Moves"/>
1283                         <filter icon="terp-camera_test" name="confirmed" string="Confirmed" domain="[('state','=','confirmed')]" help="Confirmed Internal Moves" />
1284                         <separator orientation="vertical"/>
1285                         <field name="name"/>
1286                         <field name="origin"/>
1287                         <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
1288                         <field name="company_id" widget="selection"/>
1289                     </group>
1290                     <newline/>
1291                     <group expand="0" string="Group By..." colspan="4" col="8">
1292                         <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1293                         <separator orientation="vertical"/>
1294                         <filter string="Order Date" icon="terp-go-month" domain="[]"  context="{'group_by':'date'}"/>
1295                         <filter string="Expected Date" icon="terp-go-month" domain="[]"  context="{'group_by':'min_date'}"/>
1296                         <separator orientation="vertical"/>
1297                         <filter string="Origin" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'origin'}"/>
1298                         <separator orientation="vertical" />
1299                         <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}" groups="base.group_extended"/>
1300                     </group>
1301                 </search>
1302             </field>
1303         </record>
1304
1305         <record id="action_picking_tree6" model="ir.actions.act_window">
1306             <field name="name">Internal Moves</field>
1307             <field name="res_model">stock.picking</field>
1308             <field name="type">ir.actions.act_window</field>
1309             <field name="view_type">form</field>
1310             <field name="view_mode">tree,form,calendar</field>
1311             <field name="domain">[('type','=','internal')]</field>
1312             <field name="context">{'contact_display': 'partner_address',"search_default_available":1}</field>
1313             <field name="search_view_id" ref="view_picking_internal_search"/>
1314             <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>
1315         </record>
1316
1317         <record model="ir.actions.act_window.view" id="action_picking_tree6_tree_view">
1318             <field name="sequence" eval="1"/>
1319             <field name="view_mode">tree</field>
1320             <field name="view_id" ref="vpicktree"/>
1321             <field name="act_window_id" ref="action_picking_tree6"/>
1322         </record>
1323         <record model="ir.actions.act_window.view" id="action_picking_tree6_form_view">
1324             <field name="sequence" eval="2"/>
1325             <field name="view_mode">form</field>
1326             <field name="view_id" ref="view_picking_form"/>
1327             <field name="act_window_id" ref="action_picking_tree6"/>
1328         </record>
1329
1330
1331
1332         <menuitem action="action_picking_tree6" id="menu_action_picking_tree6" parent="menu_stock_warehouse_mgmt" sequence="2"/>
1333
1334         <record id="view_move_tree" model="ir.ui.view">
1335             <field name="name">stock.move.tree</field>
1336             <field name="model">stock.move</field>
1337             <field name="type">tree</field>
1338             <field eval="6" name="priority"/>
1339             <field name="arch" type="xml">
1340                 <tree colors="grey:state in ('cancel');red:(state not in ('cancel','done')) and date > current_date" string="Moves" editable="top">
1341                     <field name="name"/>
1342                     <field name="picking_id" string="Reference"/>
1343                     <field name="origin"/>
1344                     <field name="create_date" invisible="1"/>
1345                     <field name="partner_id"/>
1346                     <field name="product_id"/>
1347                     <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1348                     <field name="product_uom" string="UoM"/>
1349                     <field name="product_uos" groups="product.group_uos"/>
1350                     <button name="%(stock.move_scrap)d"
1351                         string="Scrap Products" type="action"
1352                         icon="gtk-convert" context="{'scrap': True}"
1353                         states="draft,waiting,confirmed,assigned"
1354                         groups="base.group_extended"/>
1355                     <field name="prodlot_id" groups="base.group_extended"/>
1356                     <button name="%(track_line)d" string="Split in production lots" type="action"
1357                         icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('prodlot_id','&lt;&gt;',False)]}"
1358                         states="draft,waiting,confirmed,assigned,done"
1359                         context="{'default_use_exist': picking_id.type=='in'}"
1360                         groups="base.group_extended"/>
1361                     <field groups="base.group_extended" name="tracking_id"/>
1362                     <button name="setlast_tracking" string="Put in current pack" type="object"
1363                         groups="base.group_extended"
1364                         icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('tracking_id','&lt;&gt;',False)]}"
1365                         states="draft,assigned,confirmed,done"/>
1366                     <button name="%(split_into)d" string="Put in a new pack" type="action"
1367                         groups="base.group_extended"
1368                         icon="terp-stock_effects-object-colorize"
1369                         states="draft,assigned,confirmed,done"/>
1370                     <field name="location_id"/>
1371                     <field name="location_dest_id"/>
1372                     <field name="date"/>
1373                     <field name="date_expected"/>
1374                     <field name="state"/>
1375                     <button name="action_done" states="confirmed,assigned" string="Process" type="object" icon="gtk-go-forward"/>
1376                 </tree>
1377             </field>
1378         </record>
1379
1380 <!--        <menuitem id="menu_traceability_low" name="Low Level" parent="menu_traceability"/> -->
1381
1382         <record id="view_move_form" model="ir.ui.view">
1383             <field name="name">stock.move.form</field>
1384             <field name="model">stock.move</field>
1385             <field name="type">form</field>
1386             <field eval="4" name="priority"/>
1387             <field name="arch" type="xml">
1388                 <form string="Stock Moves">
1389                     <group colspan="4" col="7">
1390                         <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, False)"/>
1391                         <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1392                         <field name="product_uom" string="Unit Of Measure"/>
1393                         <button name="%(stock.move_scrap)d" groups="base.group_extended"
1394                                 string="Scrap" type="action"
1395                                 icon="gtk-convert" context="{'scrap': True}"
1396                                 states="draft,waiting,confirmed,assigned" colspan="1"/>
1397                         <newline/>
1398                         <field name="location_id" context="{'full':True}"/>
1399                         <field name="location_dest_id" context="{'full':True}"/>
1400                         <field name="address_id" context="{'contact_display':'partner'}"/>
1401
1402                     </group>
1403                     <group colspan="2" col="2">
1404                         <separator colspan="2" string="Move Information"/>
1405                         <field name="name" string="Reason"/>
1406                         <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"/>
1407                         <field name="product_uos" groups="product.group_uos" colspan="4"/>
1408                     </group>
1409
1410                     <group colspan="2" col="2">
1411                         <separator string="Picking" colspan="2" />
1412                         <field name="picking_id"/>
1413                         <field name="company_id" groups="base.group_multi_company" widget="selection"/>
1414                     </group>
1415
1416                     <group colspan="2" col="2">
1417                         <separator string="Dates" colspan="2" />
1418                         <field name="create_date" groups="base.group_extended"/>
1419                         <field name="date" groups="base.group_extended"/>
1420                         <field name="date_expected"/>
1421                     </group>
1422
1423                     <group colspan="2" col="4" groups="base.group_extended">
1424                         <separator string="Traceability" colspan="4" groups="base.group_extended"/>
1425                         <field name="tracking_id" colspan="3" groups="base.group_extended"/>
1426                         <button name="%(split_into)d" string="New pack" type="action"
1427                               groups="base.group_extended"
1428                               icon="terp-stock_effects-object-colorize"
1429                               states="draft,assigned,confirmed" colspan="1"/>
1430                         <field name="prodlot_id" groups="base.group_extended"
1431                             context="{'location_id':location_id, 'product_id':product_id}"
1432                             domain="[('product_id','=?',product_id)]"
1433                             on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"/>
1434                         <button name="%(track_line)d"
1435                               groups="base.group_extended"
1436                               states="draft,waiting,confirmed,assigned"
1437                               string="Split" type="action" icon="terp-stock_effects-object-colorize" colspan="1"/>
1438                     </group>
1439
1440                     <separator colspan="4"/>
1441                     <field name="state"/>
1442                     <group col="4" colspan="2">
1443                         <button name="action_cancel" states="assigned,confirmed" string="_Cancel" type="object" icon="gtk-cancel"/>
1444                         <button name="action_confirm" states="draft" string="Process Later" type="object" icon="gtk-apply"/>
1445                         <button name="force_assign" states="confirmed" string="Set Available" type="object" icon="gtk-yes"/>
1446                         <button name="action_done" states="draft,assigned,confirmed" string="Process Now" type="object" icon="gtk-jump-to"/>
1447                     </group>
1448                 </form>
1449             </field>
1450         </record>
1451
1452         <record id="view_move_search" model="ir.ui.view">
1453             <field name="name">stock.move.search</field>
1454             <field name="model">stock.move</field>
1455             <field name="type">search</field>
1456             <field eval="3" name="priority"/>
1457             <field name="arch" type="xml">
1458                 <search string="Stock Moves">
1459                     <group col="14" colspan="4">
1460                         <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"/>
1461                         <separator orientation="vertical"/>
1462                         <filter icon="terp-dialog-close" string="Done" name="done" domain="[('state','=','done')]" help="Stock moves that have been processed"/>
1463                         <filter icon="terp-stock" string="Future" name="future" domain="[('state','in',('assigned','confirmed','waiting'))]" help="Stock moves that are Confirmed, Available or Waiting"/>
1464                         <filter icon="terp-camera_test" string="Ready" name="ready" domain="[('state','=','assigned')]" help="Stock moves that are Available (Ready to process)"/>
1465                         <separator orientation="vertical"/>
1466                         <field name="product_id"/>
1467                         <field name="location_id" string="Location" filter_domain="['|',('location_id','ilike',self),('location_dest_id','ilike',self)]"/>
1468                         <field name="address_id" string="Partner" context="{'contact_display':'partner'}" filter_domain="[('picking_id.address_id','ilike',self)]"/>
1469                         <field name="date"/>
1470                     </group>
1471                     <newline/>
1472                     <group expand="0" string="Extended Filters..." colspan="4" col="8" groups="base.group_extended">
1473                             <field name="origin"/>
1474                             <field name="picking_id"/>
1475                             <field name="prodlot_id"/>
1476                             <field name="tracking_id"/>
1477                             <field name="state"/>
1478                     </group>
1479                     <newline/>
1480                     <group expand="0" string="Group By..." colspan="4" col="8" groups="base.group_extended">
1481                         <filter string="Product" name="by_product" icon="terp-accessories-archiver" domain="[]"  context="{'group_by':'product_id'}"/>
1482                         <filter string="Picking" name="groupby_picking_id" icon="terp-accessories-archiver" domain="[]"  context="{'group_by':'picking_id'}"/>
1483                         <filter string="Lot" name="groupby_prodlot_id" icon="terp-accessories-archiver" domain="[]"  context="{'group_by':'prodlot_id'}"/>
1484                         <filter string="Pack" name="groupby_tracking_id" icon="terp-accessories-archiver" domain="[]"  context="{'group_by':'tracking_id'}"/>
1485                         <separator orientation="vertical"/>
1486                         <filter string="Source" name="groupby_location_id" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'location_id'}"/>
1487                         <filter string="Destination" name="groupby_dest_location_id" icon="terp-gtk-jump-to-ltr" domain="[]" context="{'group_by':'location_dest_id'}"/>
1488                         <separator orientation="vertical"/>
1489                         <filter icon="terp-stock_effects-object-colorize" string="State" domain="[]" context="{'group_by':'state'}" />
1490                         <separator orientation="vertical"/>
1491                         <filter string="Creation" name="groupby_create_date" icon="terp-go-month" domain="[]" context="{'group_by':'create_date'}"/>
1492                         <filter string="Expected" name="groupby_date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
1493                     </group>
1494                 </search>
1495             </field>
1496         </record>
1497
1498         <record id="action_move_form2" model="ir.actions.act_window">
1499             <field name="name">Stock Moves</field>
1500             <field name="res_model">stock.move</field>
1501             <field name="type">ir.actions.act_window</field>
1502             <field name="view_type">form</field>
1503             <field name="view_id" ref="view_move_tree"/>
1504             <field name="search_view_id" ref="view_move_search"/>
1505             <field name="context">{'search_default_Available':1}</field>
1506             <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>
1507         </record>
1508         <menuitem action="action_move_form2" id="menu_action_move_form2" parent="menu_traceability" sequence="3"/>
1509
1510         ====================================
1511         Reception Picking (By Stock Move)
1512         ====================================
1513             <!--  from stock_partial_move_view -->
1514
1515
1516
1517         <record id="view_move_tree_reception_picking" model="ir.ui.view">
1518             <field name="name">stock.move.tree2</field>
1519             <field name="model">stock.move</field>
1520             <field name="type">tree</field>
1521             <field name="priority" eval="6" />
1522             <field name="arch" type="xml">
1523                 <tree colors="grey:state in ('cancel')" string="Moves">
1524                     <field name="picking_id" string="Reference"/>
1525                     <field name="origin"/>
1526                     <field name="partner_id" string="Partner"/>
1527                     <field name="product_id"/>
1528                     <field name="product_qty" />
1529                     <field name="product_uom" string="UoM"/>
1530                     <button name="%(stock.move_scrap)d"
1531                         string="Scrap Products" type="action"
1532                         icon="gtk-convert" context="{'scrap': True}"
1533                         states="draft,waiting,confirmed,assigned" groups="base.group_extended"/>
1534                     <field name="prodlot_id" groups="base.group_extended"/>
1535                     <button name="%(track_line)d" string="Split in production lots" type="action"
1536                         icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('prodlot_id','&lt;&gt;',False)]}"
1537                        states="draft,waiting,confirmed,assigned,done"
1538                         context="{'default_use_exist': picking_id.type=='in'}"
1539                         groups="base.group_extended"/>
1540                     <field name="tracking_id" groups="base.group_extended"/>
1541                     <button name="setlast_tracking" string="Put in current pack" type="object"
1542                         attrs="{'invisible': [('tracking_id','&lt;&gt;',False)]}"
1543                         groups="base.group_extended"
1544                         icon="terp-stock_effects-object-colorize"
1545                         states="draft,assigned,confirmed,done"/>
1546                     <button name="%(split_into)d" string="Put in a new pack" type="action"
1547                         groups="base.group_extended"
1548                         icon="terp-stock_effects-object-colorize"
1549                         states="draft,assigned,confirmed,done"/>
1550                     <field name="date"/>
1551                     <field name="state"/>
1552                     <button name="action_assign" states="confirmed" string="Set Available" type="object" icon="gtk-yes"/>
1553                     <button name="%(action_partial_move_server)d" string="Partial" type="action" states="confirmed,assigned" icon="gtk-justify-fill"/>
1554                     <button name="action_done" states="confirmed,assigned" string="Process" type="object" icon="gtk-go-forward"/>
1555                 </tree>
1556             </field>
1557         </record>
1558         <!-- test -->
1559           <record id="view_move_tree_reception_picking_board" model="ir.ui.view">
1560             <field name="name">stock.move.tree3</field>
1561             <field name="model">stock.move</field>
1562             <field name="type">tree</field>
1563             <field eval="6" name="priority"/>
1564             <field name="arch" type="xml">
1565                 <tree string="Moves">
1566                     <field name="picking_id" string="Reference"/>
1567                     <field name="partner_id" string="Partner"/>
1568                     <field name="product_id"/>
1569                     <field name="product_qty" />
1570                     <field name="product_uom" string="UoM"/>
1571                     <field name="date"/>
1572                     <button name="action_done" states="confirmed,assigned" string="Process" type="object" icon="gtk-go-forward"/>
1573                 </tree>
1574             </field>
1575         </record>
1576
1577
1578         <record id="view_move_form_reception_picking" model="ir.ui.view">
1579             <field name="name">stock.move.form2</field>
1580             <field name="model">stock.move</field>
1581             <field name="type">form</field>
1582             <field eval="6" name="priority"/>
1583             <field name="arch" type="xml">
1584                 <form string="Receive Products">
1585                     <group colspan="4" col="7">
1586                         <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, False)"/>
1587                         <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1588                         <field name="product_uom" string="Unit Of Measure"/>
1589                         <button name="%(stock.move_scrap)d" groups="base.group_extended"
1590                                 string="Scrap" type="action"
1591                                 icon="gtk-convert" context="{'scrap': True}"
1592                                 states="draft,waiting,confirmed,assigned" colspan="1"/>
1593                         <newline/>
1594                         <field name="location_id" context="{'full':True}"/>
1595                         <field name="location_dest_id" context="{'full':True}"/>
1596                         <field name="address_id" context="{'contact_display':'partner'}"/>
1597
1598                     </group>
1599                     <group colspan="2" col="2">
1600                         <separator colspan="2" string="Move Information"/>
1601                         <field name="name" string="Reason"/>
1602                         <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"/>
1603                         <field name="product_uos" groups="product.group_uos" colspan="4"/>
1604                     </group>
1605
1606                     <group colspan="2" col="2">
1607                         <separator string="Picking" colspan="2" />
1608                         <field name="picking_id"/>
1609                         <field name="company_id" groups="base.group_multi_company" widget="selection"/>
1610                     </group>
1611
1612                     <group colspan="2" col="2">
1613                         <separator string="Dates" colspan="2" />
1614                         <field name="create_date" groups="base.group_extended"/>
1615                         <field name="date" groups="base.group_extended"/>
1616                         <field name="date_expected"/>
1617                     </group>
1618
1619                     <group colspan="2" col="4" groups="base.group_extended">
1620                         <separator string="Traceability" colspan="4" groups="base.group_extended"/>
1621                         <field name="tracking_id" colspan="3" groups="base.group_extended"/>
1622                         <button name="%(split_into)d" string="New pack" type="action"
1623                               groups="base.group_extended"
1624                               icon="terp-stock_effects-object-colorize"
1625                               states="draft,assigned,confirmed,done" colspan="1"/>
1626                         <field name="prodlot_id" groups="base.group_extended"
1627                             context="{'location_id':location_id, 'product_id':product_id}"
1628                             domain="[('product_id','=?',product_id)]"
1629                             on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"/>
1630                         <button name="%(track_line)d"
1631                               groups="base.group_extended"
1632                               states="draft,waiting,confirmed,assigned,done"
1633                               string="Split" type="action" icon="terp-stock_effects-object-colorize" colspan="1"/>
1634                     </group>
1635
1636                     <separator colspan="4"/>
1637                     <field name="state"/>
1638                     <group col="5" colspan="2">
1639                         <button name="action_cancel" states="assigned,confirmed" string="_Cancel" type="object" icon="gtk-cancel"/>
1640                         <button name="action_confirm" states="draft" string="Process Later" type="object" icon="gtk-apply"/>
1641                         <button name="force_assign" states="confirmed" string="Set Available" type="object" icon="gtk-yes"/>
1642                         <button name="%(action_partial_move_server)d" states="assigned" string="Partial" type="action" icon="gtk-justify-fill"/>
1643                         <button name="action_done" states="draft,assigned,confirmed" string="Process Now" type="object" icon="gtk-jump-to"/>
1644                     </group>
1645                 </form>
1646             </field>
1647         </record>
1648
1649         <record id="view_move_search_reception_incoming_picking" model="ir.ui.view">
1650             <field name="name">stock.move.incoming.search2</field>
1651             <field name="model">stock.move</field>
1652             <field name="type">search</field>
1653             <field eval="6" name="priority"/>
1654             <field name="arch" type="xml">
1655                 <search string="Stock Moves">
1656                     <group col="8" colspan="4">
1657                         <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"/>
1658                         <separator orientation="vertical"/>
1659                         <filter icon="terp-gtk-go-back-rtl" name="receive" string="To Do" domain="[('state','in',('confirmed','assigned'))]" help="Stock to be received"/>
1660                         <filter icon="terp-dialog-close" name="received" string="Done" domain="[('state','=','done')]"/>
1661                         <separator orientation="vertical"/>
1662                         <field name="origin"/>
1663                         <field name="partner_id" string="Partner"/>
1664                         <field name="product_id"/>
1665                     </group>
1666                     <newline/>
1667                     <group expand="0" string="Extended Filters..." groups="base.group_extended">
1668                        <field name="tracking_id" context="{'tracking': self}"/>
1669                        <field name="prodlot_id"/>
1670                     </group>
1671                     <newline/>
1672                     <group expand="0" string="Group By..." colspan="4" col="8" groups="base.group_extended">
1673                         <filter string="Supplier" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
1674                         <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
1675                         <separator orientation="vertical"/>
1676                         <filter string="Order" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'origin'}"/>
1677                         <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1678                         <separator orientation="vertical"/>
1679                         <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}" />
1680                     </group>
1681                 </search>
1682             </field>
1683         </record>
1684
1685         <record id="view_move_search_reception_outcoming_picking" model="ir.ui.view">
1686             <field name="name">stock.move.outgoing.search2</field>
1687             <field name="model">stock.move</field>
1688             <field name="type">search</field>
1689             <field eval="6" name="priority"/>
1690             <field name="arch" type="xml">
1691                 <search string="Stock Moves">
1692                     <group col="8" colspan="4">
1693                         <filter icon="terp-go-today" string="Today" domain="[('date','&lt;=',time.strftime('%%Y-%%m-%%d 23:59:59')),('date','&gt;=',time.strftime('%%Y-%%m-%%d 00:00:00'))]" help="Orders planned for today"/>
1694                         <separator orientation="vertical"/>
1695                         <filter icon="terp-gtk-go-back-rtl" name="receive" string="To Do" domain="[('state','in',('confirmed','assigned'))]" help="Stock to be delivered (available or not)"/>
1696                         <filter icon="terp-check" name="available" string="Available" domain="[('state','in',('assigned',))]" help="Stock available to be delivered"/>
1697                         <filter icon="terp-dialog-close" name="received" string="Done" domain="[('state','=','done')]"/>
1698                         <separator orientation="vertical"/>
1699                         <field name="origin"/>
1700                         <field name="partner_id" string="Partner"/>
1701                         <field name="product_id"/>
1702                     </group>
1703                     <newline/>
1704                     <group expand="0" string="Extended Filters..." groups="base.group_extended">
1705                        <field name="tracking_id" context="{'tracking_id': self}"/>
1706                        <field name="prodlot_id"/>
1707                     </group>
1708                     <newline/>
1709                     <group expand="0" string="Group By..." colspan="4" col="8" groups="base.group_extended">
1710                         <filter string="Customer" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
1711                         <separator orientation="vertical"/>
1712                         <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
1713                         <filter string="Order" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'origin'}"/>
1714                         <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1715                         <separator orientation="vertical"/>
1716                         <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}" />
1717                     </group>
1718                 </search>
1719             </field>
1720         </record>
1721
1722         <record id="action_reception_picking_move" model="ir.actions.act_window">
1723             <field name="name">Receive Products</field>
1724             <field name="res_model">stock.move</field>
1725             <field name="type">ir.actions.act_window</field>
1726             <field name="view_type">form</field>
1727             <field name="view_mode">tree,form</field>
1728             <field name="domain">['|','&amp;',('picking_id','=',False),('location_id.usage', 'in', ['customer','supplier']),'&amp;',('picking_id','!=',False),('picking_id.type','=','in')]</field>
1729             <field name="view_id" ref="view_move_tree_reception_picking"/>
1730             <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') )"/>
1731             <field name="search_view_id" ref="view_move_search_reception_incoming_picking"/>
1732             <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>
1733         </record>
1734
1735         <record model="ir.actions.act_window.view" id="action_move_reception_picking_tree">
1736             <field name="sequence" eval="1"/>
1737             <field name="view_mode">tree</field>
1738             <field name="view_id" ref="view_move_tree_reception_picking"/>
1739             <field name="act_window_id" ref="action_reception_picking_move"/>
1740         </record>
1741         <record model="ir.actions.act_window.view" id="action_move_reception_picking_form">
1742             <field name="sequence" eval="2"/>
1743             <field name="view_mode">form</field>
1744             <field name="view_id" ref="view_move_form_reception_picking"/>
1745             <field name="act_window_id" ref="action_reception_picking_move"/>
1746         </record>
1747
1748         # -------------------------------------------------------------
1749         # Stock incoterms
1750         # -------------------------------------------------------------
1751         <record id="view_incoterms_tree" model="ir.ui.view">
1752             <field name="name">stock.incoterms.tree</field>
1753             <field name="model">stock.incoterms</field>
1754             <field name="type">tree</field>
1755             <field name="arch" type="xml">
1756                 <tree string="Incoterms">
1757                     <field name="code"/>
1758                     <field colspan="4" name="name"/>
1759                 </tree>
1760             </field>
1761         </record>
1762         <record id="stock_incoterms_form" model="ir.ui.view">
1763             <field name="name">stock.incoterms.form</field>
1764             <field name="model">stock.incoterms</field>
1765             <field name="type">form</field>
1766             <field name="arch" type="xml">
1767                 <form string="Incoterms">
1768                     <field colspan="4" name="name" select="1"/>
1769                     <field name="code" select="1"/>
1770                     <field name="active" select="1"/>
1771                 </form>
1772             </field>
1773         </record>
1774         <record id="action_incoterms_tree" model="ir.actions.act_window">
1775             <field name="name">Incoterms</field>
1776             <field name="res_model">stock.incoterms</field>
1777             <field name="type">ir.actions.act_window</field>
1778             <field name="view_type">form</field>
1779             <field name="view_mode">tree,form</field>
1780         </record>
1781
1782         <menuitem action="action_incoterms_tree" id="menu_action_incoterm_open" parent="menu_warehouse_config" sequence="7"/>
1783
1784         <act_window
1785             context="{'location': active_id}"
1786             domain="[('type','&lt;&gt;','service')]"
1787             id="act_product_location_open"
1788             name="Products"
1789             res_model="product.product"
1790             src_model="stock.location"/>
1791
1792         <act_window
1793             context="{'search_default_done': 1,'search_default_product_id': [active_id]}"
1794             id="act_product_stock_move_open"
1795             name="Stock Moves"
1796             res_model="stock.move"
1797             src_model="product.product"/>
1798
1799         <act_window
1800             domain="[('move_lines','in',[active_id])]"
1801             id="act_relate_picking"
1802             name="Related Picking"
1803             res_model="stock.picking"
1804             src_model="stock.move"/>
1805
1806         <act_window
1807             context="{'search_default_future': 1,'search_default_product_id': [active_id]}"
1808             domain="[('state','in',('waiting','confirmed','assigned'))]"
1809             id="act_product_stock_move_futur_open"
1810             name="Future Stock Moves"
1811             res_model="stock.move"
1812             src_model="product.product"
1813             groups="base.group_extended"/>
1814
1815         <record id="ir_act_product_location_open" model="ir.values">
1816             <field name="key2">tree_but_open</field>
1817             <field name="model">stock.location</field>
1818             <field name="name">Products</field>
1819             <field eval="'ir.actions.act_window,%d'%act_product_location_open" name="value"/>
1820             <field eval="True" name="object"/>
1821         </record>
1822
1823
1824         <record id="ir_act_product_location_open" model="ir.values">
1825             <field name="key2">tree_but_open</field>
1826             <field name="model">stock.location</field>
1827             <field name="name">Open Products</field>
1828             <field eval="'ir.actions.act_window,%d'%action_view_stock_location_product" name="value"/>
1829             <field eval="True" name="object"/>
1830         </record>
1831         <record id="action_picking_tree_out" model="ir.actions.act_window">
1832             <field name="name">Customers Packings</field>
1833             <field name="res_model">stock.picking</field>
1834             <field name="type">ir.actions.act_window</field>
1835             <field name="view_type">form</field>
1836             <field name="view_mode">tree,form,calendar</field>
1837             <field name="domain">[('type','=','out')]</field>
1838             <field name="context">{'contact_display': 'partner',"search_default_available":1}</field>
1839             <field name="search_view_id" ref="view_picking_in_search"/>
1840         </record>
1841         <record id="action_invoice_tree5_out" model="ir.actions.act_window.view">
1842             <field eval="1" name="sequence"/>
1843             <field name="view_mode">tree</field>
1844             <field name="view_id" ref="view_picking_in_tree"/>
1845             <field name="act_window_id" ref="action_picking_tree_out"/>
1846         </record>
1847         <record id="action_invoice_tree5_view2_out" model="ir.actions.act_window.view">
1848             <field eval="2" name="sequence"/>
1849             <field name="view_mode">form</field>
1850             <field name="view_id" ref="view_picking_in_form"/>
1851             <field name="act_window_id" ref="action_picking_tree_out"/>
1852         </record>
1853         <record id="action_invoice_tree5_viewout_cal" model="ir.actions.act_window.view">
1854             <field eval="3" name="sequence"/>
1855             <field name="view_mode">calendar</field>
1856             <field name="act_window_id" ref="action_picking_tree_out"/>
1857         </record>
1858
1859         <record id="action_out_picking_move" model="ir.actions.act_window">
1860             <field name="name">Deliver Products</field>
1861             <field name="res_model">stock.move</field>
1862             <field name="type">ir.actions.act_window</field>
1863             <field name="view_type">form</field>
1864             <field name="view_mode">tree,form</field>
1865             <field name="domain">['|','&amp;',('picking_id','=',False),('location_dest_id.usage', 'in', ['customer','supplier']),'&amp;',('picking_id','!=',False),('picking_id.type','=','out')]</field>
1866             <field name="view_id" ref="view_move_tree_reception_picking"/>
1867             <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'))"/>
1868             <field name="search_view_id" ref="view_move_search_reception_outcoming_picking"/>
1869             <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>
1870         </record>
1871
1872         <record model="ir.actions.act_window.view" id="action_move_out_picking_tree">
1873             <field name="sequence" eval="1"/>
1874             <field name="view_mode">tree</field>
1875             <field name="view_id" ref="view_move_tree_reception_picking"/>
1876             <field name="act_window_id" ref="action_out_picking_move"/>
1877         </record>
1878         <record model="ir.actions.act_window.view" id="action_move_out_picking_form">
1879             <field name="sequence" eval="2"/>
1880             <field name="view_mode">form</field>
1881             <field name="view_id" ref="view_move_form"/>
1882             <field name="act_window_id" ref="action_out_picking_move"/>
1883         </record>
1884
1885       <menuitem action="action_reception_picking_move" id="menu_action_pdct_in" parent="menu_stock_products_moves" sequence="1"/>
1886       <menuitem action="action_out_picking_move" id="menu_action_pdct_out" parent="menu_stock_products_moves" sequence="2"/>
1887
1888
1889          <record id="view_stock_journal_filter" model="ir.ui.view">
1890             <field name="name">stock.journal.filter</field>
1891             <field name="model">stock.journal</field>
1892             <field name="type">search</field>
1893             <field name="arch" type="xml">
1894                 <search string="Stock Journal">
1895                     <field name="name"/>
1896                     <field name="user_id"/>
1897                 </search>
1898             </field>
1899         </record>
1900         <record model="ir.ui.view" id="view_stock_journal_tree">
1901             <field name="name">Stock Journals</field>
1902             <field name="model">stock.journal</field>
1903             <field name="type">tree</field>
1904             <field name="arch" type="xml">
1905                 <tree string="Stock Journal">
1906                     <field name="name"/>
1907                     <field name="user_id"/>
1908                 </tree>
1909             </field>
1910         </record>
1911         <record model="ir.ui.view" id="view_stock_journal_form">
1912             <field name="name">Stock Journals</field>
1913             <field name="model">stock.journal</field>
1914             <field name="type">form</field>
1915             <field name="arch" type="xml">
1916                 <form string="Stock Journal">
1917                     <field name="name"/>
1918                     <field name="user_id"/>
1919                 </form>
1920             </field>
1921         </record>
1922         <record id="action_stock_journal_form" model="ir.actions.act_window">
1923             <field name="name">Stock Journals</field>
1924             <field name="res_model">stock.journal</field>
1925             <field name="type">ir.actions.act_window</field>
1926             <field name="view_type">form</field>
1927             <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>
1928         </record>
1929         <menuitem
1930             action="action_stock_journal_form"
1931             id="menu_action_stock_journal_form"
1932             groups="base.group_extended"
1933             parent="menu_warehouse_config" />
1934
1935     </data>
1936 </openerp>