[MERGE] Sync with trunk
[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}" >
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 model="ir.actions.act_window" id="action_product_location_tree">
636             <field name="context">{'product_id': active_id}</field>
637             <field name="name">Stock by Location</field>
638             <field name="res_model">stock.location</field>
639         </record>
640         <record id="act_product_stock_move_open" model="ir.actions.act_window">
641             <field name="context">{'search_default_done': 1,'search_default_product_id': active_id, 'default_product_id': active_id}</field>
642             <field name="name">Moves</field>
643             <field name="res_model">stock.move</field>
644         </record>
645         <record id="action_location_tree" model="ir.actions.act_window">
646             <field name="name">Location Structure</field>
647             <field name="res_model">stock.location</field>
648             <field name="type">ir.actions.act_window</field>
649             <field name="domain">[('location_id','=',False)]</field>
650             <field name="view_type">tree</field>
651             <field name="view_id" ref="view_location_tree"/>
652             <field name="help" type="html">
653               <p class="oe_view_nocontent_create">
654                 Click to add a location.
655               </p><p>
656                 This is the structure of your company's warehouses and
657                 locations. You can click on a location to get the list of the
658                 products and their stock level in this particular location and
659                 all its children.
660               </p>
661             </field>
662         </record>
663         <menuitem action="action_location_tree"
664             id="menu_action_location_tree"
665             parent="menu_stock_inventory_control"
666             groups="stock.group_locations"
667             sequence="20"/>
668
669         <record id="view_warehouse" model="ir.ui.view">
670             <field name="name">stock.warehouse</field>
671             <field name="model">stock.warehouse</field>
672             <field name="arch" type="xml">
673                 <form string="Warehouse" version="7.0">
674                     <label for="name" class="oe_edit_only"/>
675                     <h1><field name="name"/></h1>
676                     <group>
677                         <group>
678                             <field name="lot_input_id" groups="stock.group_locations"/>
679                             <field name="lot_stock_id" groups="stock.group_locations"/>
680                             <field name="lot_output_id" groups="stock.group_locations"/>
681                         </group>
682                         <group>
683                             <field name="company_id" groups="base.group_multi_company" widget="selection"/>
684                             <field name="partner_id"/>
685                         </group>
686                     </group>
687                 </form>
688             </field>
689         </record>
690         <record id="view_warehouse_tree" model="ir.ui.view">
691             <field name="name">stock.warehouse.tree</field>
692             <field name="model">stock.warehouse</field>
693             <field name="arch" type="xml">
694                 <tree string="Warehouse">
695                     <field name="name"/>
696                     <field name="lot_input_id" groups="stock.group_locations"/>
697                     <field name="lot_stock_id" groups="stock.group_locations"/>
698                     <field name="lot_output_id" groups="stock.group_locations"/>
699                     <field name="partner_id"/>
700                 </tree>
701             </field>
702         </record>
703         <record id="action_warehouse_form" model="ir.actions.act_window">
704             <field name="name">Warehouses</field>
705             <field name="res_model">stock.warehouse</field>
706             <field name="type">ir.actions.act_window</field>
707             <field name="view_type">form</field>
708             <field name="view_id" ref="view_warehouse_tree"/>
709             <field name="help" type="html">
710               <p class="oe_view_nocontent_create">
711                 Click to define a new warehouse.
712               </p>
713             </field>
714         </record>
715         <menuitem action="action_warehouse_form" id="menu_action_warehouse_form" groups="stock.group_locations"
716             parent="menu_stock_configuration" sequence="1"/>
717
718         <!--
719             Stock picking
720             Defaults and Internal Pickings
721         -->
722
723         <record model="ir.ui.view" id="stock_picking_calendar">
724             <field name="name">stock.picking.calendar</field>
725             <field name="model">stock.picking</field>
726             <field name="priority" eval="2"/>
727             <field name="arch" type="xml">
728                 <calendar string="Calendar View" date_start="min_date" date_stop="max_date" color="partner_id">
729                     <field name="origin"/>
730                     <field name="type"/>
731                     <field name="partner_id"/>
732                 </calendar>
733             </field>
734         </record>
735
736         <record id="vpicktree" model="ir.ui.view">
737             <field name="name">stock.picking.tree</field>
738             <field name="model">stock.picking</field>
739             <field name="arch" type="xml">
740                 <tree colors="blue:state == 'draft';grey:state == 'cancel';red:state not in ('cancel', 'done') and date &lt; current_date" string="Picking list">
741                     <field name="name"/>
742                     <field name="backorder_id"/>
743                     <field name="origin"/>
744                     <field name="date"/>
745                     <field name="min_date"/>
746                     <field name="invoice_state"/>
747                     <field name="stock_journal_id" widget="selection"/>
748                     <field name="state"/>
749                 </tree>
750             </field>
751         </record>
752
753         <record id="view_picking_form" model="ir.ui.view">
754             <field name="name">stock.picking.form</field>
755             <field name="model">stock.picking</field>
756             <field eval="12" name="priority"/>
757             <field name="arch" type="xml">
758                 <form string="Internal Picking List" version="7.0">
759                 <header>
760                     <button name="draft_force_assign" states="draft" string="Confirm" type="object" class="oe_highlight" groups="base.group_user"/>
761                     <button name="draft_validate" states="draft" string="Confirm &amp; Transfer" type="object" class="oe_highlight" groups="base.group_user"/>
762                     <!-- <button name="action_assign" states="confirmed" string="Check Availability" type="object"/> -->
763                     <button name="force_assign" states="confirmed" string="Force Availability" type="object" class="oe_highlight" groups="base.group_user"/>
764                     <button name="action_process" states="assigned" string="Confirm &amp; Transfer" groups="stock.group_stock_user" type="object" class="oe_highlight"/>
765                     <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"/>
766                     <button name="%(act_stock_return_picking)d" string="Reverse Transfer" states="done" type="action" groups="base.group_user"/>
767                     <button name="button_cancel" states="assigned,confirmed,draft" string="Cancel Transfer" groups="base.group_user"/>
768                     <field name="state" widget="statusbar" statusbar_visible="draft,assigned,done" statusbar_colors='{"shipping_except":"red","invoice_except":"red","waiting_date":"blue"}'/>
769                 </header>
770                 <sheet>
771                     <h1>
772                         <field name="name" class="oe_inline" attrs="{'invisible': [('name','=','/')]}" readonly="1"/>
773                     </h1>
774                     <group>
775                         <group>
776                             <field name="partner_id" on_change="onchange_partner_in(partner_id)"/>
777                             <field name="backorder_id" readonly="1" attrs="{'invisible': [('backorder_id','=',False)]}"/>
778                             <field name="invoice_state" string="Invoice Control" groups="account.group_account_invoice" attrs="{'invisible':[('invoice_state', '=', 'none')]}"/>
779                             <field name="stock_journal_id" widget="selection" groups="account.group_account_user"/>
780                         </group>
781                         <group>
782                             <field name="date"/>
783                             <field name="min_date" readonly="1" attrs="{'invisible': [('min_date','=',False)]}"/>
784                             <field name="origin" placeholder="e.g. PO0032" class="oe_inline"/>
785                         </group>
786                     </group>
787                     <notebook>
788                         <page string="Products">
789                             <field name="move_lines" context="{'address_in_id': partner_id, 'form_view_ref':'view_move_picking_form', 'tree_view_ref':'view_move_picking_tree', 'picking_type': 'internal'}"/>
790                             <field name="note" placeholder="Add an internal note..." class="oe_inline"/>
791                         </page>
792                         <page string="Additional Info">
793                             <group>
794                                 <group>
795                                     <field name="move_type"/>
796                                     <field name="type" invisible="1"/>
797                                     <field name="auto_picking" groups="base.group_user"/>
798                                 </group>
799                                 <group>
800                                     <field name="company_id" groups="base.group_multi_company" widget="selection"/>
801                                     <field name="date_done" groups="base.group_no_one"/>
802                                 </group>
803                             </group>
804                         </page>
805                     </notebook>
806                 </sheet>
807                 </form>
808             </field>
809         </record>
810
811         <record id="view_picking_internal_search" model="ir.ui.view">
812             <field name="name">stock.picking.internal.search</field>
813             <field name="model">stock.picking</field>
814             <field name="arch" type="xml">
815                 <search string="Internal Picking List">
816                     <field name="name" string="Internal Picking List" filter_domain="['|',('name','ilike', self),('origin','ilike',self)]"/>
817                     <filter icon="terp-check" name="available" string="Ready" domain="[('state','=','assigned')]" help="Assigned Internal Moves"/>
818                     <filter icon="terp-camera_test" name="confirmed" string="Waiting" domain="[('state','=','confirmed')]" help="Confirmed Internal Moves"/>
819                     <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" help="Pickings already processed"/>
820                     <field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/>
821                     <field name="product_id"/>
822                     <field name="stock_journal_id"/>
823                     <group expand="0" string="Group By...">
824                         <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
825                         <filter string="Order Date" icon="terp-go-month" domain="[]"  context="{'group_by':'date'}"/>
826                         <filter string="Expected Date" icon="terp-go-month" domain="[]"  context="{'group_by':'min_date'}"/>
827                         <filter string="Origin" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'origin'}"/>
828                         <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}"/>
829                     </group>
830                 </search>
831             </field>
832         </record>
833
834         <record id="action_picking_tree6" model="ir.actions.act_window">
835             <field name="name">Internal Moves</field>
836             <field name="res_model">stock.picking</field>
837             <field name="type">ir.actions.act_window</field>
838             <field name="view_type">form</field>
839             <field name="view_mode">tree,form,calendar</field>
840             <field name="domain">[('type','=','internal')]</field>
841             <field name="context">{'contact_display': 'partner_address', 'search_default_available': 1}</field>
842             <field name="search_view_id" ref="view_picking_internal_search"/>
843             <field name="help" type="html">
844               <p class="oe_view_nocontent_create">
845                 Click to create an internal move request. 
846               </p><p>
847                 Most operations are prepared automatically by OpenERP according
848                 to your preconfigured logistics rules, but you can also record
849                 manual stock movements.
850               </p>
851             </field>
852         </record>
853
854         <record model="ir.actions.act_window.view" id="action_picking_tree6_tree_view">
855             <field name="sequence" eval="1"/>
856             <field name="view_mode">tree</field>
857             <field name="view_id" ref="vpicktree"/>
858             <field name="act_window_id" ref="action_picking_tree6"/>
859         </record>
860         <record model="ir.actions.act_window.view" id="action_picking_tree6_form_view">
861             <field name="sequence" eval="2"/>
862             <field name="view_mode">form</field>
863             <field name="view_id" ref="view_picking_form"/>
864             <field name="act_window_id" ref="action_picking_tree6"/>
865         </record>
866
867         <!-- Sending Products -->
868         <record model="ir.ui.view" id="stock_picking_out_calendar">
869             <field name="name">stock.picking.out.calendar</field>
870             <field name="model">stock.picking.out</field>
871             <field name="priority" eval="2"/>
872             <field name="arch" type="xml">
873                 <calendar string="Calendar View" date_start="min_date" date_stop="max_date" color="partner_id">
874                     <field name="origin"/>
875                     <field name="type"/>
876                     <field name="partner_id"/>
877                 </calendar>
878             </field>
879         </record>
880         
881         <record id="view_picking_out_tree" model="ir.ui.view">
882             <field name="name">stock.picking.out.tree</field>
883             <field name="model">stock.picking.out</field>
884             <field name="arch" type="xml">
885                 <tree colors="blue:state == 'draft';grey:state == 'cancel';red:state not in ('cancel', 'done') and min_date &lt; current_date" string="Delivery Orders">
886                     <field name="name"/>
887                     <field name="partner_id" string="Customer"/>
888                     <field name="origin"/>
889                     <field name="min_date"/>
890                     <field name="date"/>
891                     <field name="backorder_id"/>
892                     <field name="stock_journal_id" groups="account.group_account_user"/>
893                     <field name="invoice_state"/>
894                     <field name="state"/>
895                 </tree>
896             </field>
897         </record>
898         <record id="view_picking_out_form" model="ir.ui.view">
899             <field name="name">stock.picking.out.form</field>
900             <field name="model">stock.picking.out</field>
901             <field name="inherit_id" ref="view_picking_form"/>
902             <field name="arch" type="xml">
903                 <field name="date_done" position="attributes" version="7.0">
904                     <attribute name="string">Date of Delivery</attribute>
905                 </field>
906                 <xpath expr="/form/header//button[@name='%(act_stock_return_picking)d']" position="replace">
907                     <button name="%(report_picking_list_out)d" string="Print Delivery Slip" type="action" states="done" class="oe_highlight"/>
908                     <button name="%(act_stock_return_picking)d" string="Return Products" states="done" type="action"/>
909                 </xpath>
910                 <xpath expr="/form/header//button[@name='draft_validate']" position="replace">
911                     <button name="draft_validate" states="draft" string="Confirm &amp; Deliver" type="object" class="oe_highlight"/>
912                     <button name="action_assign" states="confirmed" string="Check Availability" type="object" class="oe_highlight"/>
913                 </xpath>
914                 <xpath expr="/form/header//button[@name='action_process']" position="replace">
915                     <button name="action_process" states="assigned" string="Deliver" type="object" class="oe_highlight"/>
916                 </xpath>
917                 <xpath expr="/form/header//field[@name='state']" position="replace">
918                     <field name="state" nolabel="1" readonly="1" widget="statusbar" statusbar_visible="draft,confirmed,assigned,done" statusbar_colors='{"auto":"blue", "confirmed":"blue"}'/>
919                 </xpath>
920                 <xpath expr="//field[@name='partner_id']" position="replace">
921                     <field name="partner_id" on_change="onchange_partner_in(partner_id)"  string="Customer"/>
922                 </xpath>
923                 <xpath expr="//field[@name='move_lines']" position="replace">
924                     <field name="move_lines" context="{'address_out_id': partner_id, 'picking_type': 'out', 'form_view_ref':'view_move_picking_form', 'tree_view_ref':'view_move_picking_tree'}"/>
925                 </xpath>
926                 <xpath expr="/form/sheet" position="after">
927                     <div class="oe_chatter">
928                         <field name="message_follower_ids" widget="mail_followers"/>
929                         <field name="message_ids" widget="mail_thread"/>
930                     </div>
931                 </xpath>
932             </field>
933         </record>
934         <record id="view_picking_out_search" model="ir.ui.view">
935             <field name="name">stock.picking.out.search</field>
936             <field name="model">stock.picking</field>
937             <field name="arch" type="xml">
938                 <search string="Picking list">
939                     <field name="name" string="Picking List" filter_domain="['|',('name','ilike', self),('origin','ilike',self)]"/>
940                     <filter icon="terp-check" name="available" string="Ready" domain="[('state','=','assigned')]" help="Assigned Delivery Orders"/>
941                     <filter icon="terp-camera_test" name="confirmed" string="Waiting" domain="[('state','=','confirmed')]" help="Confirmed Delivery Orders"/>
942                     <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" help="Delivery orders already processed"/>
943                     <separator/>
944                     <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order"/>
945                     <separator/>
946                     <filter icon="terp-dolar" name="to_invoice" string="To Invoice" domain="[('invoice_state','=','2binvoiced')]" help="Delivery orders to invoice"/>
947                     <field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/>
948                     <field name="stock_journal_id"/>
949                     <field name="company_id" groups="base.group_multi_company"/>
950                     <group expand="0" string="Group By...">
951                         <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
952                         <filter string="Order Date" icon="terp-go-month" domain="[]"  context="{'group_by':'date'}"/>
953                         <filter string="Expected Date" icon="terp-go-month" domain="[]"  context="{'group_by':'min_date'}"/>
954                         <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}"/>
955                     </group>
956                 </search>
957             </field>
958         </record>
959
960         <record id="action_picking_tree" model="ir.actions.act_window">
961             <field name="name">Delivery Orders</field>
962             <field name="res_model">stock.picking.out</field>
963             <field name="type">ir.actions.act_window</field>
964             <field name="view_type">form</field>
965             <field name="view_mode">tree,form,calendar</field>
966             <field name="domain">[('type','=','out')]</field>
967             <field name="context">{'default_type': 'out', 'contact_display': 'partner_address'}</field>
968             <field name="search_view_id" ref="view_picking_out_search"/>
969             <field name="help" type="html">
970               <p class="oe_view_nocontent_create">
971                 Click to create a delivery order. 
972               </p><p>
973                 This is the list of all delivery orders that have to be
974                 prepared, according to your different sales orders and your
975                 logistics rules.
976               </p>
977             </field>
978         </record>
979         <record id="action_picking_tree_out_view1_waiting" model="ir.actions.act_window.view">
980             <field eval="1" name="sequence"/>
981             <field name="view_mode">tree</field>
982             <field name="view_id" ref="view_picking_out_tree"/>
983             <field name="act_window_id" ref="action_picking_tree"/>
984         </record>
985         <record id="action_picking_tree_out_view2_waiting" model="ir.actions.act_window.view">
986             <field eval="2" name="sequence"/>
987             <field name="view_mode">form</field>
988             <field name="view_id" ref="view_picking_out_form"/>
989             <field name="act_window_id" ref="action_picking_tree"/>
990         </record>
991         <record id="action_picking_tree_out_view2_waiting_cal" model="ir.actions.act_window.view">
992             <field eval="3" name="sequence"/>
993             <field name="view_mode">calendar</field>
994             <field name="view_id" ref="stock_picking_out_calendar"/>
995             <field name="act_window_id" ref="action_picking_tree"/>
996         </record>
997         <menuitem action="action_picking_tree" id="menu_action_picking_tree" parent="menu_stock_warehouse_mgmt" sequence="3"/>
998
999         <!-- Incomming Shipments -->
1000         <record model="ir.ui.view" id="stock_picking_in_calendar">
1001             <field name="name">stock.picking.in.calendar</field>
1002             <field name="model">stock.picking.in</field>
1003             <field name="priority" eval="2"/>
1004             <field name="arch" type="xml">
1005                 <calendar string="Calendar View" date_start="min_date" date_stop="max_date" color="partner_id">
1006                     <field name="origin"/>
1007                     <field name="type"/>
1008                     <field name="partner_id"/>
1009                 </calendar>
1010             </field>
1011         </record>
1012
1013         <record id="view_picking_in_tree" model="ir.ui.view">
1014             <field name="name">stock.picking.in.tree</field>
1015             <field name="model">stock.picking.in</field>
1016             <field name="arch" type="xml">
1017                 <tree colors="blue:state == 'draft';grey:state == 'done';red:state not in ('cancel', 'done') and date &lt; current_date" string="Picking list">
1018                     <field name="name"/>
1019                     <field name="partner_id" string="Supplier"/>
1020                     <field name="backorder_id"/>
1021                     <field name="origin"/>
1022                     <field name="date"/>
1023                     <field name="min_date"/>
1024                     <field name="invoice_state" groups="account.group_account_invoice"/>
1025                     <field name="stock_journal_id" widget="selection" groups="account.group_account_user"/>
1026                     <field name="state"/>
1027                 </tree>
1028             </field>
1029         </record>
1030         <record id="view_picking_in_form" model="ir.ui.view">
1031             <field name="name">stock.picking.in.form</field>
1032             <field name="model">stock.picking.in</field>
1033             <field name="inherit_id" ref="view_picking_form"/>
1034             <field name="arch" type="xml">
1035                 <field name="date_done" position="attributes" version="7.0">
1036                     <attribute name="string">Date of Reception</attribute>
1037                 </field>
1038                 <xpath expr="/form/header//button[@name='%(act_stock_return_picking)d']" position="replace">
1039                     <button name="%(act_stock_return_picking)d" string="Return Products" states="done" type="action"/>
1040                 </xpath>
1041                 <xpath expr="//button[@name='draft_validate']" position="replace">
1042                     <button name="draft_validate" states="draft" string="Confirm &amp; Receive" type="object" class="oe_highlight"/>
1043                 </xpath>
1044                 <xpath expr="//button[@name='action_process']" position="replace">
1045                     <button name="action_process" states="assigned" string="Receive" type="object" class="oe_highlight"/>
1046                 </xpath>
1047                 <xpath expr="//field[@name='partner_id']" position="replace">
1048                     <field name="partner_id" on_change="onchange_partner_in(partner_id)"  string="Supplier"/>
1049                 </xpath>
1050                 <xpath expr="//field[@name='move_lines']" position="replace">
1051                     <field name="move_lines" context="{'address_in_id': partner_id, 'picking_type': 'in', 'form_view_ref':'view_move_picking_form', 'tree_view_ref':'view_move_picking_tree'}"/>
1052                 </xpath>
1053                 <xpath expr="/form/sheet" position="after">
1054                     <div class="oe_chatter">
1055                         <field name="message_follower_ids" widget="mail_followers"/>
1056                         <field name="message_ids" widget="mail_thread"/>
1057                     </div>
1058                 </xpath>
1059             </field>
1060         </record>
1061         <record id="view_picking_in_search" model="ir.ui.view">
1062             <field name="name">stock.picking.in.search</field>
1063             <field name="model">stock.picking.in</field>
1064             <field name="arch" type="xml">
1065                 <search string="Incoming Shipments">
1066                     <field name="name" string="Incoming Shipments" filter_domain="['|',('name','ilike',self),('origin','ilike',self)]"/>
1067                     <filter icon="terp-check" name="available" string="Ready to Process" domain="[('state','=','assigned')]" help="Incoming Shipments Available"/>
1068                     <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" help="Incoming Shipments already processed"/>
1069                     <separator/>
1070                     <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order"/>
1071                     <separator/>
1072                     <filter string="To Invoice" name="to_invoice" icon="terp-dolar" domain="[('invoice_state', '=', '2binvoiced')]"/>
1073                     <field name="partner_id" filter_domain="[('partner_id','child_of',self)]"/>
1074                     <field name="stock_journal_id"/>
1075                     <field name="product_id"/>
1076                     <group expand="0" string="Group By...">
1077                         <filter icon="terp-stock_effects-object-colorize" name="state" string="Status" domain="[]" context="{'group_by':'state'}"/>
1078                         <filter string="Order Date" icon="terp-go-month" domain="[]"  context="{'group_by':'date'}"/>
1079                         <filter string="Expected Date" icon="terp-go-month" domain="[]"  context="{'group_by':'min_date'}"/>
1080                         <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}"/>
1081                     </group>
1082                 </search>
1083             </field>
1084         </record>
1085
1086
1087         <record id="action_picking_tree4" model="ir.actions.act_window">
1088             <field name="name">Incoming Shipments</field>
1089             <field name="res_model">stock.picking.in</field>
1090             <field name="type">ir.actions.act_window</field>
1091             <field name="view_type">form</field>
1092             <field name="view_mode">tree,form,calendar</field>
1093             <field name="domain">[('type','=','in')]</field>
1094             <field name="context">{'contact_display': 'partner_address', 'default_type': 'in'}</field>
1095             <field name="search_view_id" ref="view_picking_in_search"/>
1096             <field name="help" type="html">
1097               <p class="oe_view_nocontent_create">
1098                 Click to create an incoming shipment. 
1099               </p><p>
1100                 The Incoming Shipments is the list of all orders you will
1101                 receive from your suppliers. An incoming shipment contains a
1102                 list of products to be received according to the original
1103                 purchase order.
1104               </p>
1105             </field>
1106         </record>
1107         <record id="action_invoice_tree5_view1" model="ir.actions.act_window.view">
1108             <field eval="1" name="sequence"/>
1109             <field name="view_mode">tree</field>
1110             <field name="view_id" ref="view_picking_in_tree"/>
1111             <field name="act_window_id" ref="action_picking_tree4"/>
1112         </record>
1113         <record id="action_invoice_tree5_view2" model="ir.actions.act_window.view">
1114             <field eval="2" name="sequence"/>
1115             <field name="view_mode">form</field>
1116             <field name="view_id" ref="view_picking_in_form"/>
1117             <field name="act_window_id" ref="action_picking_tree4"/>
1118         </record>
1119         <record id="action_invoice_tree5_view2_cal" model="ir.actions.act_window.view">
1120             <field eval="3" name="sequence"/>
1121             <field name="view_mode">calendar</field>
1122             <field name="view_id" ref="stock_picking_in_calendar"/>
1123             <field name="act_window_id" ref="action_picking_tree4"/>
1124         </record>
1125         <menuitem action="action_picking_tree4" id="menu_action_picking_tree4" parent="menu_stock_warehouse_mgmt" sequence="1"/>
1126
1127         <menuitem action="action_picking_tree6" id="menu_action_picking_tree6" parent="menu_stock_warehouse_mgmt" sequence="2" groups="stock.group_locations"/>
1128
1129         <record id="view_move_tree" model="ir.ui.view">
1130             <field name="name">stock.move.tree</field>
1131             <field name="model">stock.move</field>
1132             <field eval="8" name="priority"/>
1133             <field name="arch" type="xml">
1134                 <tree colors="grey:state == 'cancel';red:(state not in ('cancel','done')) and date > current_date" string="Moves">
1135                     <field name="name"/>
1136                     <field name="picking_id" string="Reference"/>
1137                     <field name="origin"/>
1138                     <field name="type" on_change="onchange_move_type(type)"/>
1139                     <field name="create_date" invisible="1" groups="base.group_no_one"/>
1140                     <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, False)"/>
1141                     <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1142                     <field name="product_uom" string="Unit of Measure" groups="product.group_uom"/>
1143                     <field name="product_uos" groups="product.group_uos"/>
1144                     <button name="%(stock.move_scrap)d"
1145                         string="Scrap Products" type="action"
1146                         icon="terp-gtk-jump-to-ltr" context="{'scrap': True}"
1147                         states="draft,waiting,confirmed,assigned"/>
1148                     <field name="prodlot_id" groups="stock.group_production_lot"/>
1149                     <button name="%(track_line)d" string="Split in Serial Numbers" type="action"
1150                         icon="gtk-justify-fill" attrs="{'invisible': [('prodlot_id','&lt;&gt;',False)]}"
1151                         states="draft,waiting,confirmed,assigned,done"
1152                         groups="stock.group_tracking_lot"/>
1153                     <field name="tracking_id" groups="stock.group_tracking_lot"/>
1154                     <button name="setlast_tracking" string="Put in current pack" type="object"
1155                         groups="product.group_stock_packaging"
1156                         icon="terp-accessories-archiver" attrs="{'invisible': [('tracking_id','&lt;&gt;',False)]}"
1157                         states="draft,assigned,confirmed,done"/>
1158                     <button name="%(split_into)d" string="Put in a new pack" type="action"
1159                         groups="product.group_stock_packaging"
1160                         icon="terp-accessories-archiver+"
1161                         states="draft,assigned,confirmed,done"/>
1162                     <field name="location_id" groups="stock.group_locations"/>
1163                     <field name="location_dest_id" groups="stock.group_locations"/>
1164                     <field name="date" groups="base.group_no_one"/>
1165                     <field name="date_expected"/>
1166                     <field name="state"/>
1167                     <button name="action_done" states="confirmed,assigned" string="Process" type="object" icon="gtk-go-forward" help="Done"/>
1168                 </tree>
1169             </field>
1170         </record>
1171
1172         <record id="view_move_picking_tree" model="ir.ui.view">
1173             <field name="name">stock.move.tree</field>
1174             <field name="model">stock.move</field>
1175             <field eval="4" name="priority"/>
1176             <field name="arch" type="xml">
1177                 <tree colors="grey:scrapped == True" string="Stock Moves">
1178                     <field name="product_id"/>
1179                     <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1180                     <field name="product_uom" string="Unit of Measure" groups="product.group_uom"/>
1181                     <field name="product_uos" groups="product.group_uos"/>
1182                     <field name="location_id" groups="stock.group_locations" invisible="1"/>
1183                     <field name="picking_id" invisible="1" />
1184                     <field name="create_date" invisible="1" />
1185                     <field name="date_expected" invisible="1" />
1186                     <button name="%(stock.move_scrap)d"
1187                        string="Scrap Products" type="action"
1188                        icon="terp-gtk-jump-to-ltr" context="{'scrap': True}"
1189                        states="draft,waiting,confirmed,assigned"
1190                        groups="base.group_user"/>
1191                     <field name="scrapped" invisible="1"/>
1192                     <field name="prodlot_id" groups="stock.group_production_lot"/>
1193                     <button
1194                        name="%(stock.track_line)d"
1195                        string="Split in Serial Number"
1196                        groups="stock.group_production_lot"
1197                        type="action" icon="gtk-justify-fill"
1198                        states="draft,waiting,confirmed,assigned"/>
1199                      <field groups="stock.group_tracking_lot" name="tracking_id"/>
1200                      <button name="setlast_tracking" string="Put in current pack" type="object"
1201                         attrs="{'invisible': [('tracking_id','&lt;&gt;',False)]}"
1202                         icon="terp-accessories-archiver"
1203                         groups="stock.group_tracking_lot"
1204                         states="draft,assigned,confirmed"/>
1205                      <button name="%(split_into)d" string="Put in a new pack" type="action"
1206                         groups="product.group_stock_packaging"
1207                         icon="terp-accessories-archiver+"
1208                         states="draft,assigned,confirmed"/>
1209                       <field name="location_dest_id" groups="stock.group_locations"/>
1210                       <field name="state"/>
1211                 </tree>
1212             </field>
1213         </record>
1214
1215         <record id="view_move_form" model="ir.ui.view">
1216             <field name="name">stock.move.form</field>
1217             <field name="model">stock.move</field>
1218             <field eval="1" name="priority"/>
1219             <field name="arch" type="xml">
1220                 <form string="Stock Moves" version="7.0">
1221                 <header>
1222                     <button name="action_confirm" states="draft" string="Process Later" type="object" class="oe_highlight"/>
1223                     <button name="%(action_partial_move_server)d" string="Process Partially" type="action" states="assigned" class="oe_highlight"/>
1224                     <button name="action_done" states="draft,assigned,confirmed" string="Process Entirely" type="object" class="oe_highlight"/>
1225                     <button name="force_assign" states="confirmed" string="Set Available" type="object" class="oe_highlight"/>
1226                     <button name="action_cancel" states="assigned,confirmed" string="Cancel Move" type="object"/>
1227                     <field name="state" widget="statusbar" statusbar_visible="draft,confirmed,assigned,done" statusbar_colors='{"waiting":"blue","confirmed":"blue"}'/>
1228                 </header>
1229                 <sheet>
1230                     <group>
1231                         <group name="main_grp" string="Details">
1232                             <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, False)"/>
1233                             <label for="product_qty"/>
1234                             <div>
1235                                 <field name="product_qty"
1236                                     on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"
1237                                     class="oe_inline"/>
1238                                 <field name="product_uom" groups="product.group_uom" class="oe_inline"/>
1239                                 <button name="%(stock.move_scrap)d"
1240                                         string="Scrap" type="action"
1241                                         icon="terp-gtk-jump-to-ltr" context="{'scrap': True}"
1242                                         states="draft,waiting,confirmed,assigned" colspan="1"/>
1243                             </div>
1244                             <label for="product_uos_qty" groups="product.group_uos"/>
1245                             <div groups="product.group_uos">
1246                                 <field name="product_uos_qty"
1247                                     on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)"
1248                                     class="oe_inline"/>
1249                                 <field name="product_uos" class="oe_inline"/>
1250                             </div>
1251                             <field name="name"/>
1252                             <field name="company_id" groups="base.group_multi_company" widget="selection"/>
1253                         </group>
1254                         <group name="origin_grp" string="Origin">
1255                             <field name="origin"/>
1256                             <field name="picking_id" domain="[('type','=',type)]"/>
1257                              <field name="type" on_change="onchange_move_type(type)"/>
1258                             <field name="location_id" groups="stock.group_locations"/>
1259                             <field name="create_date" groups="base.group_no_one"/>
1260                         </group>
1261                         <group name="destination_grp" string="Destination">
1262                             <field name="location_dest_id" groups="stock.group_locations"/>
1263                             <field name="partner_id" context="{'contact_display':'partner'}"
1264                                 groups="stock.group_locations"/>
1265                             <field name="date_expected" on_change="onchange_date(date,date_expected)" attrs="{'invisible': [('state', '=', 'done')]}"/>
1266                             <field name="date" attrs="{'invisible': [('state', '!=', 'done')]}"/>
1267                         </group>
1268                         <group string="Traceability"
1269                             groups="stock.group_tracking_lot">
1270                             <label for="tracking_id" groups="stock.group_tracking_lot"/>
1271                             <div groups="stock.group_tracking_lot">
1272                                 <field name="tracking_id" class="oe_inline"/>
1273                                 <button name="%(split_into)d" string="New Pack" type="action"
1274                                       groups="product.group_stock_packaging"
1275                                       icon="terp-accessories-archiver+"
1276                                       states="draft,assigned,confirmed"/>
1277                             </div>
1278                             <label for="prodlot_id" groups="stock.group_production_lot"/>
1279                             <div groups="stock.group_production_lot">
1280                                 <field name="prodlot_id"
1281                                     context="{'location_id':location_id, 'product_id':product_id}"
1282                                     domain="[('product_id','=?',product_id)]" class="oe_inline"
1283                                     on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)"/>
1284                                 <button name="%(track_line)d"
1285                                     states="draft,waiting,confirmed,assigned"
1286                                     string="Split" type="action" icon="gtk-justify-fill"/>
1287                             </div>
1288                         </group>
1289                     </group>
1290                 </sheet>
1291                 </form>
1292             </field>
1293         </record>
1294
1295         <record id="view_move_picking_form" model="ir.ui.view">
1296             <field name="name">stock.move.form</field>
1297             <field name="model">stock.move</field>
1298             <field eval="2" name="priority"/>
1299             <field name="arch" type="xml">
1300             <form string="Stock Moves" version="7.0">
1301                 <header>
1302                         <button name="force_assign" states="confirmed" string="Force Availability" type="object" groups="base.group_user"/>
1303                         <button name="action_confirm" states="draft" string="Confirm" type="object" groups="base.group_user"/>
1304                         <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" groups="base.group_user"/>
1305                         <field name="state" widget="statusbar" statusbar_visible="draft,assigned,done"/>
1306                 </header>
1307                 <group>
1308                     <group>
1309                         <field name="name" invisible="1"/>
1310                         <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.partner_id)"/>
1311                         <field name="type" invisible="1"/>
1312                         <label for="product_qty"/>
1313                         <div>
1314                             <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" class="oe_inline"/>
1315                             <field name="product_uom" string="Unit Of Measure" groups="product.group_uom" class="oe_inline"/>
1316                             <button name="%(stock.move_scrap)d"
1317                                 string="Scrap" type="action"
1318                                 icon="terp-gtk-jump-to-ltr" context="{'scrap': True}"
1319                                 states="draft,waiting,confirmed,assigned"
1320                                 groups="base.group_user"/>
1321                         </div>
1322                             <label for="product_uos_qty" groups="product.group_uos"/>
1323                             <div groups="product.group_uos">
1324                                 <field name="product_uos_qty" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" class="oe_inline"/>
1325                                 <field name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" class="oe_inline"/>
1326                             </div>
1327                             <field name="product_packaging" groups="product.group_stock_packaging" domain="[('product_id','=',product_id)]"/>
1328                             <field name="partner_id"/>
1329                             </group>
1330                             <group>
1331                                 <field name="create_date" invisible="1"/>
1332                                 <field name="date"/>
1333                                 <field name="date_expected" on_change="onchange_date(date,date_expected)"/>
1334                             </group>
1335
1336                             <group string="Locations" groups="stock.group_locations">
1337                                 <field name="location_id" domain="[('usage','&lt;&gt;','view')]"/>
1338                                 <field name="location_dest_id" domain="[('usage','=','internal')]" groups="stock.group_locations"/>
1339                             </group>
1340
1341                             <group groups="stock.group_tracking_lot" string="Traceability">
1342                                 <label for="tracking_id"/>
1343                                 <div>
1344                                     <field name="tracking_id" groups="stock.group_tracking_lot" class="oe_inline"/>
1345                                       <button name="%(split_into)d" 
1346                                             string="New Pack" type="action"
1347                                             groups="product.group_stock_packaging"
1348                                             icon="terp-accessories-archiver+"
1349                                             states="draft,assigned,confirmed"/>
1350                                  </div>
1351
1352                                   <label for="prodlot_id"/>
1353                                   <div>
1354                                         <field name="prodlot_id" groups="stock.group_production_lot"
1355                                             context="{'location_id':location_id, 'product_id':product_id}"
1356                                             domain="[('product_id','=?',product_id)]"
1357                                             on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" class="oe_inline"/>
1358                                         <button name="%(track_line)d"
1359                                             groups="stock.group_tracking_lot"
1360                                             states="draft,waiting,confirmed,assigned"
1361                                             string="Split" type="action" icon="gtk-justify-fill"/>
1362                             </div>
1363                         </group>
1364                     </group>
1365                 </form>
1366             </field>
1367         </record>
1368
1369         <record id="view_move_search" model="ir.ui.view">
1370             <field name="name">stock.move.search</field>
1371             <field name="model">stock.move</field>
1372             <field eval="3" name="priority"/>
1373             <field name="arch" type="xml">
1374                 <search string="Stock Moves">
1375                     <field name="origin" filter_domain="['|',('origin','ilike',self),('picking_id','ilike',self)]" string="Reference"/>
1376                     <field name="date" groups="base.group_no_one"/>
1377
1378                     <filter icon="terp-camera_test" string="Ready" name="ready" domain="[('state','=','assigned')]" help="Stock moves that are Available (Ready to process)"/>
1379                     <filter icon="terp-stock" string="To Do" name="future" domain="[('state','in',('assigned','confirmed','waiting'))]" help="Stock moves that are Confirmed, Available or Waiting"/>
1380                     <filter icon="terp-dialog-close" string="Done" name="done" domain="[('state','=','done')]" help="Stock moves that have been processed"/>
1381                     <separator/>
1382                     <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"/>
1383                     <field name="product_id"/>
1384                     <field name="name" string="Location" filter_domain="['|',('location_id','ilike',self),('location_dest_id','ilike',self)]"/>
1385                     <field name="partner_id" string="Partner"  filter_domain="[('picking_id.partner_id','child_of',self)]"/>
1386                     <field name="prodlot_id"/>
1387                     <group expand="0" string="Group By...">
1388                         <filter string="Product" name="by_product" icon="terp-accessories-archiver" domain="[]"  context="{'group_by':'product_id'}"/>
1389                         <filter string="Picking" name="groupby_picking_id" icon="terp-accessories-archiver" domain="[]"  context="{'group_by':'picking_id'}"/>
1390                         <filter string="Serial  Number" name="groupby_prodlot_id" icon="terp-accessories-archiver" domain="[]"  context="{'group_by':'prodlot_id'}"/>
1391                         <filter string="Pack" name="groupby_tracking_id" icon="terp-accessories-archiver" domain="[]"  context="{'group_by':'tracking_id'}"/>
1392                         <filter string="Source" name="groupby_location_id" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'location_id'}" groups="stock.group_locations"/>
1393                         <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"/>
1394                         <filter icon="terp-stock_effects-object-colorize" string="Status" domain="[]" context="{'group_by':'state'}"/>
1395                         <filter string="Creation" name="groupby_create_date" icon="terp-go-month" domain="[]" context="{'group_by':'create_date'}" groups="base.group_no_one"/>
1396                         <filter string="Scheduled" name="groupby_date" icon="terp-go-month" domain="[]" context="{'group_by':'date_expected'}"/>
1397                     </group>
1398                 </search>
1399             </field>
1400         </record>
1401
1402         <record id="action_move_form2" model="ir.actions.act_window">
1403             <field name="name">Stock Moves</field>
1404             <field name="res_model">stock.move</field>
1405             <field name="type">ir.actions.act_window</field>
1406             <field name="view_type">form</field>
1407             <field name="view_id" ref="view_move_tree"/>
1408             <field name="search_view_id" ref="view_move_search"/>
1409             <field name="context">{}</field>
1410             <field name="help" type="html">
1411               <p class="oe_view_nocontent_create">
1412                 Click to create a stock movement.
1413               </p><p>
1414                 This menu gives you the full traceability of inventory
1415                 operations on a specific product. You can filter on the product
1416                 to see all the past or future movements for the product.
1417               </p>
1418             </field>
1419         </record>
1420         
1421         <record model="ir.actions.act_window.view" id="action_stock_move_tree_all">
1422             <field name="sequence" eval="1"/>
1423             <field name="view_mode">tree</field>
1424             <field name="view_id" ref="view_move_tree"/>
1425             <field name="act_window_id" ref="action_move_form2"/>
1426         </record>
1427
1428         <record model="ir.actions.act_window.view" id="action_stock_move_form_all">
1429             <field name="sequence" eval="3"/>
1430             <field name="view_mode">form</field>
1431             <field name="view_id" ref="view_move_form"/>
1432         <field name="act_window_id" ref="action_move_form2"/>
1433         </record>
1434
1435         <menuitem action="action_move_form2" id="menu_action_move_form2" parent="menu_traceability" sequence="3" groups="stock.group_locations"/>
1436
1437         <!--
1438             Reception Picking (By Stock Move)
1439             From stock_partial_move_view
1440         -->
1441         <record id="view_move_tree_reception_picking" model="ir.ui.view">
1442             <field name="name">stock.move.tree2</field>
1443             <field name="model">stock.move</field>
1444             <field name="priority" eval="6"/>
1445             <field name="arch" type="xml">
1446                 <tree colors="grey:state == 'cancel'" string="Moves">
1447                     <field name="date" widget="date"/>
1448                     <field name="picking_id" string="Reference" invisible="1"/>
1449                     <field name="origin"/>
1450                     <field name="partner_id" string="Supplier"/>
1451                     <field name="product_id"/>
1452                     <field name="product_qty"/>
1453                     <field name="product_uom" string="Unit of Measure" groups="product.group_uom"/>
1454                     <field name="location_id" invisible="1"/>
1455                     <field name="location_dest_id" invisible="1"/>
1456                     <field name="create_date" invisible="1"/>
1457                     <field name="date_expected" invisible="1"/>
1458                     <button name="%(stock.move_scrap)d"
1459                         string="Scrap Products" type="action"
1460                         icon="terp-gtk-jump-to-ltr" context="{'scrap': True}"
1461                         states="draft,waiting,confirmed,assigned"/>
1462                     <field name="prodlot_id" groups="stock.group_production_lot"/>
1463                     <button name="%(track_line)d" string="Split in Serial Numbers" type="action"
1464                         icon="gtk-justify-fill" attrs="{'invisible': [('prodlot_id','&lt;&gt;',False)]}"
1465                         states="draft,waiting,confirmed,assigned,done"
1466                         groups="stock.group_tracking_lot"/>
1467                     <field name="tracking_id" groups="stock.group_tracking_lot"/>
1468                     <button name="setlast_tracking" string="Put in current pack" type="object"
1469                         attrs="{'invisible': [('tracking_id','&lt;&gt;',False)]}"
1470                         groups="product.group_stock_packaging"
1471                         icon="terp-accessories-archiver"
1472                         states="draft,assigned,confirmed,done"/>
1473                     <button name="%(split_into)d" string="Put in a new pack" type="action"
1474                         groups="product.group_stock_packaging"
1475                         icon="terp-accessories-archiver+"
1476                         states="draft,assigned,confirmed,done"/>
1477                     <field name="state"/>
1478                     <button name="%(action_partial_move_server)d"
1479                         icon="terp-stock_effects-object-colorize" type="action"
1480                         states="assigned" class="oe_highlight"/>
1481                     <button name="action_done" states="draft,assigned,confirmed"
1482                         icon="gtk-go-forward" type="object"
1483                         class="oe_highlight" help="Done"/>
1484                 </tree>
1485             </field>
1486         </record>
1487
1488         <!-- test -->
1489         <record id="view_move_tree_reception_picking_board" model="ir.ui.view">
1490             <field name="name">stock.move.tree3</field>
1491             <field name="model">stock.move</field>
1492             <field eval="6" name="priority"/>
1493             <field name="arch" type="xml">
1494                 <tree string="Moves">
1495                     <field name="picking_id" string="Reference"/>
1496                     <field name="product_id"/>
1497                     <field name="product_qty"/>
1498                     <field name="product_uom" string="Unit of Measure" groups="product.group_uom"/>
1499                     <field name="date" groups="base.group_no_one"/>
1500                 </tree>
1501             </field>
1502         </record>
1503
1504         <record id="action_reception_picking_move" model="ir.actions.act_window">
1505             <field name="name">Incoming  Products</field>
1506             <field name="res_model">stock.move</field>
1507             <field name="type">ir.actions.act_window</field>
1508             <field name="view_type">form</field>
1509             <field name="view_mode">tree,form</field>
1510             <field name="domain">['|','&amp;',('picking_id','=',False),('location_id.usage', 'in', ['customer','supplier']),'&amp;',('picking_id','!=',False),('picking_id.type','=','in')]</field>
1511             <field name="view_id" ref="view_move_tree_reception_picking"/>
1512             <field name="context">{'product_receive': True, 'search_default_future': True, 'picking_type': 'in'}</field>
1513             <field name="help" type="html">
1514               <p class="oe_view_nocontent_create">
1515                 Click to register a product reception. 
1516               </p><p>
1517                 Here you can receive individual products, no matter what
1518                 purchase order or picking order they come from. You will find
1519                 the list of all products you are waiting for. Once you receive
1520                 an order, you can filter based on the name of the supplier or
1521                 the purchase order reference. Then you can confirm all products
1522                 received using the buttons on the right of each line.
1523               </p>
1524             </field>
1525         </record>
1526
1527         <record model="ir.actions.act_window.view" id="action_move_reception_picking_tree">
1528             <field name="sequence" eval="1"/>
1529             <field name="view_mode">tree</field>
1530             <field name="view_id" ref="view_move_tree_reception_picking"/>
1531             <field name="act_window_id" ref="action_reception_picking_move"/>
1532         </record>
1533         <record model="ir.actions.act_window.view" id="action_move_reception_picking_form">
1534             <field name="sequence" eval="2"/>
1535             <field name="view_mode">form</field>
1536             <field name="view_id" ref="view_move_form"/>
1537             <field name="act_window_id" ref="action_reception_picking_move"/>
1538         </record>
1539
1540         <!-- Stock incoterms -->
1541         <record id="view_incoterms_tree" model="ir.ui.view">
1542             <field name="name">stock.incoterms.tree</field>
1543             <field name="model">stock.incoterms</field>
1544             <field name="arch" type="xml">
1545                 <tree string="Incoterms">
1546                     <field name="code"/>
1547                     <field colspan="4" name="name"/>
1548                 </tree>
1549             </field>
1550         </record>
1551         <record id="stock_incoterms_form" model="ir.ui.view">
1552             <field name="name">stock.incoterms.form</field>
1553             <field name="model">stock.incoterms</field>
1554             <field name="arch" type="xml">
1555                 <form string="Incoterms" version="7.0">
1556                     <group>
1557                         <field name="name"/>
1558                         <field name="code"/>
1559                         <field name="active"/>
1560                     </group>
1561                 </form>
1562             </field>
1563         </record>
1564         <record id="action_incoterms_tree" model="ir.actions.act_window">
1565             <field name="name">Incoterms</field>
1566             <field name="res_model">stock.incoterms</field>
1567             <field name="type">ir.actions.act_window</field>
1568             <field name="view_type">form</field>
1569             <field name="view_mode">tree,form</field>
1570         </record>
1571
1572         <menuitem action="action_incoterms_tree" id="menu_action_incoterm_open" parent="menu_warehouse_config" sequence="1"/>
1573
1574         <act_window
1575             context="{'location': active_id}"
1576             domain="[('type','&lt;&gt;','service')]"
1577             id="act_product_location_open"
1578             name="Products"
1579             res_model="product.product"
1580             src_model="stock.location"/>
1581
1582         <record id="ir_act_product_location_open" model="ir.values">
1583             <field name="key2">tree_but_open</field>
1584             <field name="model">stock.location</field>
1585             <field name="name">Products</field>
1586             <field eval="'ir.actions.act_window,%d'%act_product_location_open" name="value"/>
1587         </record>
1588
1589
1590         <record id="ir_act_product_location_open" model="ir.values">
1591             <field name="key2">tree_but_open</field>
1592             <field name="model">stock.location</field>
1593             <field name="name">Open Products</field>
1594             <field eval="'ir.actions.act_window,%d'%action_view_stock_location_product" name="value"/>
1595         </record>
1596         <record id="action_picking_tree_out" model="ir.actions.act_window">
1597             <field name="name">Customers Packings</field>
1598             <field name="res_model">stock.picking</field>
1599             <field name="type">ir.actions.act_window</field>
1600             <field name="view_type">form</field>
1601             <field name="view_mode">tree,form,calendar</field>
1602             <field name="domain">[('type','=','out')]</field>
1603             <field name="context">{'default_type': 'out', 'contact_display': 'partner',"search_default_available":1}</field>
1604             <field name="search_view_id" ref="view_picking_in_search"/>
1605         </record>
1606         <record id="action_invoice_tree5_out" model="ir.actions.act_window.view">
1607             <field eval="1" name="sequence"/>
1608             <field name="view_mode">tree</field>
1609             <field name="view_id" ref="view_picking_in_tree"/>
1610             <field name="act_window_id" ref="action_picking_tree_out"/>
1611         </record>
1612         <record id="action_invoice_tree5_view2_out" model="ir.actions.act_window.view">
1613             <field eval="2" name="sequence"/>
1614             <field name="view_mode">form</field>
1615             <field name="view_id" ref="view_picking_in_form"/>
1616             <field name="act_window_id" ref="action_picking_tree_out"/>
1617         </record>
1618         <record id="action_invoice_tree5_viewout_cal" model="ir.actions.act_window.view">
1619             <field eval="3" name="sequence"/>
1620             <field name="view_mode">calendar</field>
1621             <field name="act_window_id" ref="action_picking_tree_out"/>
1622         </record>
1623
1624         <record id="action_out_picking_move" model="ir.actions.act_window">
1625             <field name="name">Deliver Products</field>
1626             <field name="res_model">stock.move</field>
1627             <field name="type">ir.actions.act_window</field>
1628             <field name="view_type">form</field>
1629             <field name="view_mode">tree,form</field>
1630             <field name="domain">['|','&amp;',('picking_id','=',False),('location_dest_id.usage', 'in', ['customer','supplier']),'&amp;',('picking_id','!=',False),('picking_id.type','=','out')]</field>
1631             <field name="view_id" ref="view_move_tree_reception_picking"/>
1632             <field name="context">{'picking_type': 'out', 'search_default_future': True}</field>
1633             <field name="help" type="html">
1634               <p class="oe_view_nocontent_create">
1635                 Click to register a product delivery.
1636               </p>
1637               <p>
1638                 You will find in this list all products you have to deliver to
1639                 your customers. You can process the deliveries directly from
1640                 this list using the buttons on the right of each line. You can
1641                 filter the products to deliver by customer, products or sale
1642                 order (using the Origin field).
1643               </p>
1644             </field>
1645         </record>
1646
1647         <record model="ir.actions.act_window.view" id="action_move_out_picking_tree">
1648             <field name="sequence" eval="1"/>
1649             <field name="view_mode">tree</field>
1650             <field name="view_id" ref="view_move_tree_reception_picking"/>
1651             <field name="act_window_id" ref="action_out_picking_move"/>
1652         </record>
1653         <record model="ir.actions.act_window.view" id="action_move_out_picking_form">
1654             <field name="sequence" eval="2"/>
1655             <field name="view_mode">form</field>
1656             <field name="view_id" ref="view_move_form"/>
1657             <field name="act_window_id" ref="action_out_picking_move"/>
1658         </record>
1659
1660       <menuitem action="action_reception_picking_move" id="menu_action_pdct_in" parent="menu_stock_products_moves" sequence="1"/>
1661       <menuitem action="action_out_picking_move" id="menu_action_pdct_out" parent="menu_stock_products_moves" sequence="2"/>
1662
1663
1664          <record id="view_stock_journal_filter" model="ir.ui.view">
1665             <field name="name">stock.journal.filter</field>
1666             <field name="model">stock.journal</field>
1667             <field name="arch" type="xml">
1668                 <search string="Stock Journal">
1669                     <field name="name" string="Stock Journal"/>
1670                     <field name="user_id"/>
1671                 </search>
1672             </field>
1673         </record>
1674         <record model="ir.ui.view" id="view_stock_journal_tree">
1675             <field name="name">Stock Journals</field>
1676             <field name="model">stock.journal</field>
1677             <field name="arch" type="xml">
1678                 <tree string="Stock Journal">
1679                     <field name="name"/>
1680                     <field name="user_id"/>
1681                 </tree>
1682             </field>
1683         </record>
1684         <record model="ir.ui.view" id="view_stock_journal_form">
1685             <field name="name">Stock Journals</field>
1686             <field name="model">stock.journal</field>
1687             <field name="arch" type="xml">
1688                 <form string="Stock Journal" version="7.0">
1689                     <group>
1690                         <field name="name"/>
1691                         <field name="user_id"/>
1692                     </group>
1693                 </form>
1694             </field>
1695         </record>
1696         <record id="action_stock_journal_form" model="ir.actions.act_window">
1697             <field name="name">Stock Journals</field>
1698             <field name="res_model">stock.journal</field>
1699             <field name="type">ir.actions.act_window</field>
1700             <field name="view_type">form</field>
1701             <field name="help" type="html">
1702               <p class="oe_view_nocontent_create">
1703                 Click to create a new journal. 
1704               </p><p>
1705                 The stock journal system allows you to assign each stock
1706                 operation to a specific journal according to the type of
1707                 operation to perform or the worker/team that should perform the
1708                 operation. Examples of stock journals may be: quality control,
1709                 pick lists, packing, etc.
1710               </p>
1711             </field>
1712         </record>
1713         <menuitem
1714             action="action_stock_journal_form"
1715             id="menu_action_stock_journal_form"
1716             parent="menu_warehouse_config" sequence="1"/>
1717
1718     </data>
1719 </openerp>