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