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