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