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