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