1 <?xml version="1.0" encoding="utf-8"?>
5 <menuitem icon="terp-stock" id="menu_stock_root" name="Warehouse"
6 groups="group_stock_manager,group_stock_user" sequence="5"
7 web_icon="images/warehouse.png"
8 web_icon_hover="images/warehouse-hover.png"/>
9 <menuitem id="menu_stock_warehouse_mgmt" name="Warehouse Management" parent="menu_stock_root" sequence="1" groups="base.group_extended"/>
10 <menuitem id="menu_stock_products_moves" name="Products Moves" parent="menu_stock_root" sequence="2"/>
11 <menuitem id="menu_stock_product" name="Product" parent="menu_stock_root" sequence="6"/>
12 <menuitem name="Products by Category" id="menu_product_by_category_stock_form" action="product.product_category_action"
13 parent="stock.menu_stock_product" sequence="0"/>
14 <menuitem action="product.product_normal_action" id="menu_stock_products_menu" parent="menu_stock_product" sequence="1"/>
15 <menuitem id="menu_stock_configuration" name="Configuration" parent="menu_stock_root" sequence="15" groups="group_stock_manager"/>
16 <menuitem id="menu_warehouse_config" name="Warehouse Management" parent="menu_stock_configuration" sequence="1"/>
17 <menuitem id="menu_stock_inventory_control" name="Inventory Control" parent="menu_stock_root" sequence="4"/>
19 id="menu_product_in_config_stock" name="Product"
20 parent="stock.menu_stock_configuration" sequence="2"/>
22 action="product.product_category_action_form" id="menu_product_category_config_stock"
23 parent="stock.menu_product_in_config_stock" sequence="0"/>
25 action="product.product_ul_form_action" groups="base.group_extended"
26 id="menu_product_packaging_stock_action" parent="stock.menu_product_in_config_stock" sequence="1"/>
28 id="menu_stock_unit_measure_stock" name="Units of Measure"
29 parent="stock.menu_product_in_config_stock" sequence="2"/>
31 action="product.product_uom_categ_form_action" id="menu_stock_uom_categ_form_action"
32 parent="stock.menu_stock_unit_measure_stock" sequence="0"/>
34 action="product.product_uom_form_action" id="menu_stock_uom_form_action"
35 parent="stock.menu_stock_unit_measure_stock" sequence="1"/>
37 <record id="stock_inventory_line_tree" model="ir.ui.view">
38 <field name="name">stock.inventory.line.tree</field>
39 <field name="model">stock.inventory.line</field>
40 <field name="type">tree</field>
41 <field name="arch" type="xml">
42 <tree string="Stock Inventory Lines">
43 <field name="product_id"/>
44 <field name="product_qty"/>
45 <field name="product_uom"/>
46 <field name="prod_lot_id" groups="base.group_extended"/>
47 <button name="%(stock.action_view_stock_inventory_line_split)d"
48 string="Split inventory lines" groups="base.group_extended"
49 type="action" icon="gtk-justify-fill"/>
50 <field name="location_id"/>
54 <record id="view_inventory_line_form" model="ir.ui.view">
55 <field name="name">stock.inventory.line.form</field>
56 <field name="model">stock.inventory.line</field>
57 <field name="type">form</field>
58 <field name="arch" type="xml">
59 <form string="Stock Inventory Lines">
60 <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)" select="1" domain="[('type','<>','service')]"/>
61 <field name="product_qty"/>
62 <field name="product_uom"/>
63 <field name="prod_lot_id" groups="base.group_extended"/>
64 <field colspan="4" domain="[('usage','=','internal')]" name="location_id" select="1"/>
65 <button name="%(stock.action_view_stock_inventory_line_split)d"
66 string="Split inventory lines" groups="base.group_extended"
67 type="action" icon="terp-stock_effects-object-colorize"/>
72 <record id="view_inventory_filter" model="ir.ui.view">
73 <field name="name">stock.inventory.filter</field>
74 <field name="model">stock.inventory</field>
75 <field name="type">search</field>
76 <field name="arch" type="xml">
77 <search string="Search Inventory">
78 <group col="10" colspan="4">
81 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
84 <group expand="0" string="Group By..." colspan="4" col="4" groups="base.group_extended">
85 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
86 <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
93 <record id="view_inventory_tree" model="ir.ui.view">
94 <field name="name">stock.inventory.tree</field>
95 <field name="model">stock.inventory</field>
96 <field name="type">tree</field>
97 <field name="arch" type="xml">
98 <tree string="Lot Inventory" colors="grey:state in ('cancel')">
101 <field name="state"/>
106 <record id="view_inventory_form" model="ir.ui.view">
107 <field name="name">stock.inventory.form</field>
108 <field name="model">stock.inventory</field>
109 <field name="type">form</field>
110 <field name="arch" type="xml">
111 <form string="Physical Inventory">
114 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
115 <notebook colspan="4">
116 <page string="General Informations">
117 <field colspan="4" name="inventory_line_id" nolabel="1" widget="one2many_list">
118 <tree string="Products" editable="bottom">
119 <field colspan="4" domain="[('usage','=','internal')]" name="location_id"/>
120 <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','<>','service')]"/>
121 <field name="product_qty"/>
122 <field name="product_uom"/>
123 <field name="prod_lot_id" groups="base.group_extended"/>
124 <button name="%(stock.action_view_stock_inventory_line_split)d"
125 string="Split inventory lines" groups="base.group_extended"
126 type="action" icon="terp-stock_effects-object-colorize" states="draft,confirm"/>
127 <field name="state" invisible="True"/>
129 <form string="Products ">
130 <field domain="[('usage','=','internal')]" name="location_id"/>
132 <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','<>','service')]"/>
133 <field name="product_qty"/>
134 <field name="product_uom"/>
135 <group colspan="2" col="4">
136 <field name="prod_lot_id" groups="base.group_extended"/>
137 <button name="%(stock.action_view_stock_inventory_line_split)d"
138 string="Split inventory lines" groups="base.group_extended"
139 type="action" icon="terp-stock_effects-object-colorize"/>
143 </page><page string="Posted Inventory" groups="base.group_extended">
144 <field colspan="2" name="move_ids" nolabel="1" widget="one2many_list" context="{'inventory_id':active_id}" >
145 <tree string="Stock Moves">
146 <field name="product_id"/>
147 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
148 <field name="product_uom" string="UoM"/>
149 <field name="prodlot_id" groups="base.group_extended"/>
150 <button name="%(track_line)d" string="Split in production lots" type="action"
151 icon="terp-stock_effects-object-colorize"
152 attrs="{'invisible': [('prodlot_id','<>',False)]}"
153 states="draft,done,cancel"
154 context="{'inventory_id':parent.id}"
155 groups="base.group_extended"/>
156 <field groups="base.group_extended" name="tracking_id"/>
157 <button name="%(split_into)d" string="Put in a new pack" type="action"
158 groups="base.group_extended"
159 icon="terp-stock_effects-object-colorize"
160 context="{'inventory_id':parent.id}"
161 states="draft,done,cancel"/>
162 <field name="location_id"/>
163 <field name="location_dest_id"/>
164 <field name="date" string="Date"/>
165 <field name="state" invisible="True"/>
170 <group col="2" colspan="2">
171 <field name="state"/>
173 <group col="3" colspan="2">
174 <button name="action_cancel_inventary" states="draft,confirm,done" string="Cancel Inventory" type="object" icon="gtk-cancel"/>
175 <button name="action_confirm" states="draft" string="Confirm Inventory" type="object" icon="gtk-apply"/>
176 <button name="action_done" states="confirm" string="Validate Inventory" type="object" icon="gtk-jump-to"/>
177 <button name="action_cancel_draft" states="cancel" string="Set to Draft" type="object" icon="gtk-convert"/>
183 <record id="action_inventory_form" model="ir.actions.act_window">
184 <field name="name">Physical Inventories</field>
185 <field name="type">ir.actions.act_window</field>
186 <field name="res_model">stock.inventory</field>
187 <field name="view_type">form</field>
188 <field name="view_id" ref="view_inventory_tree"/>
189 <field name="context">{'full':'1'}</field>
190 <field name="search_view_id" ref="view_inventory_filter" />
191 <field name="help">Periodical Inventories are used to count the number of products available per location. You can use it once a year when you do the general inventory or whenever you need it, to correct the current stock level of a product.</field>
193 <menuitem action="action_inventory_form" id="menu_action_inventory_form" parent="menu_stock_inventory_control" sequence="30"/>
195 <record id="action_inventory_form_draft" model="ir.actions.act_window">
196 <field name="name">Draft Physical Inventories</field>
197 <field name="type">ir.actions.act_window</field>
198 <field name="res_model">stock.inventory</field>
199 <field name="view_type">form</field>
200 <field name="domain">[('state','=','draft')]</field>
201 <field name="filter" eval="True"/>
204 <record id="view_tracking_form" model="ir.ui.view">
205 <field name="name">stock.tracking.form</field>
206 <field name="model">stock.tracking</field>
207 <field name="type">form</field>
208 <field name="arch" type="xml">
209 <form string="Packs">
210 <group col="2" colspan="2">
211 <separator string="Pack Identification" colspan="2"/>
213 <field name="serial"/>
215 <field name="active" groups="base.group_extended"/>
217 <group col="2" colspan="2">
218 <separator string="Traceability" colspan="4"/>
219 <button name="action_traceability" icon="gtk-go-up" string="Upstream traceability" type="object"
220 context="{'type': '','field': ''}" colspan="2"/>
221 <button name="action_traceability" icon="gtk-go-down" string="Downstream traceability" type="object"
222 context="{'type': 'move_history_ids','field': ''}" colspan="2"/>
224 <notebook colspan="4">
225 <page string="Stock Moves">
226 <field colspan="2" name="move_ids" nolabel="1"/>
232 <record id="view_tracking_tree" model="ir.ui.view">
233 <field name="name">stock.tracking.tree</field>
234 <field name="model">stock.tracking</field>
235 <field name="type">tree</field>
236 <field name="arch" type="xml">
237 <tree string="Packs">
239 <field name="serial"/>
244 <record id="action_tracking_form" model="ir.actions.act_window">
245 <field name="name">Packs</field>
246 <field name="type">ir.actions.act_window</field>
247 <field name="res_model">stock.tracking</field>
248 <field name="view_type">form</field>
249 <field name="view_id" ref="view_tracking_tree"/>
250 <field name="help">This is the list of all your packs. When you select a Pack, you can get the upstream or downstream traceability of the products contained in the pack.</field>
252 <menuitem id="menu_traceability" name="Traceability" parent="menu_stock_root" sequence="3"/>
253 <menuitem action="action_tracking_form" id="menu_action_tracking_form"
254 groups="base.group_extended"
256 parent="menu_traceability"/>
258 <record id="lot_line_tree" model="ir.ui.view">
259 <field name="name">stock.tracking.tree</field>
260 <field name="model">stock.tracking</field>
261 <field name="type">tree</field>
262 <field name="field_parent">child_ids</field>
263 <field name="arch" type="xml">
264 <tree colors="grey:not active" string="Packs">
265 <field name="name" />
266 <field name="serial" />
267 <field name="date" />
272 <record model="ir.ui.view" id="search_stock_packs">
273 <field name="name">Pack Search</field>
274 <field name="model">stock.tracking</field>
275 <field name="type">search</field>
276 <field name="arch" type="xml">
277 <search string="Pack Search">
278 <group col="10" colspan="4">
279 <field name="name" />
280 <field name="serial" />
281 <field name="date" />
282 <field name="active" groups="base.group_extended"/>
288 <record id="view_production_lot_revision_form" model="ir.ui.view">
289 <field name="name">stock.production.lot.revision.form</field>
290 <field name="model">stock.production.lot.revision</field>
291 <field name="type">form</field>
292 <field name="arch" type="xml">
293 <form string="Production Lot Revisions">
294 <field colspan="4" name="name"/>
295 <field colspan="2" name="indice"/>
296 <field colspan="2" name="date"/>
298 <field name="author_id" readonly="1"/>
300 <separator string="Description" colspan="4"/>
301 <field colspan="4" name="description" nolabel="1"/>
305 <record id="view_production_lot_revision_tree" model="ir.ui.view">
306 <field name="name">stock.production.lot.revision.tree</field>
307 <field name="model">stock.production.lot.revision</field>
308 <field name="type">tree</field>
309 <field name="arch" type="xml">
310 <tree string="Production Lot Revisions">
311 <field name="indice"/>
312 <field name="author_id"/>
318 <record id="view_production_lot_form" model="ir.ui.view">
319 <field name="name">stock.production.lot.form</field>
320 <field name="model">stock.production.lot</field>
321 <field name="type">form</field>
322 <field name="arch" type="xml">
323 <form string="Production Lot">
324 <group col="4" colspan="2">
325 <separator string="Production Lot Identification" colspan="4"/>
326 <field name="product_id" colspan="4"/>
327 <field name="prefix" colspan="2"/>
328 <field name="name" colspan="2"/>
329 <field name="ref" colspan="4"/>
330 <field name="date" colspan="4"/>
332 <group col="2" colspan="2">
333 <separator string="Traceability" colspan="4"/>
334 <field name="stock_available" colspan="4"/>
335 <button name="action_traceability" string="Upstream Traceability" type="object" context="{'type': '', 'field': 'prodlot_id'}" icon="gtk-go-up" colspan="2"/>
336 <button name="action_traceability" string="Downstream Traceability" type="object" context="{'type': 'move_history_ids', 'field': 'prodlot_id'}" icon="gtk-go-down" colspan="2"/>
338 <notebook colspan="4">
339 <page string="Revisions">
340 <field colspan="2" name="revisions" nolabel="1"/>
342 <page string="Stock Moves">
343 <field colspan="2" name="move_ids" nolabel="1" widget="one2many_list">
344 <tree string="Stock Moves">
345 <field name="picking_id" string="Reference"/>
346 <field name="origin"/>
347 <field name="partner_id"/>
348 <field name="product_id"/>
349 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
350 <field name="product_uom" string="UoM"/>
351 <field name="tracking_id"/>
353 <field name="prodlot_id" groups="base.group_extended"/>
354 <field name="location_id"/>
355 <field name="location_dest_id"/>
356 <field name="state"/>
364 <record id="view_production_lot_tree" model="ir.ui.view">
365 <field name="name">stock.production.lot.tree</field>
366 <field name="model">stock.production.lot</field>
367 <field name="type">tree</field>
368 <field name="arch" type="xml">
369 <tree string="Production Lot">
370 <field name="prefix" />
373 <field name="product_id"/>
374 <field name="stock_available"/>
380 <record model="ir.ui.view" id="search_product_lot_filter">
381 <field name="name">Production Lots Filter</field>
382 <field name="model">stock.production.lot</field>
383 <field name="type">search</field>
384 <field name="arch" type="xml">
385 <search string="Product Lots Filter">
386 <group col="10" colspan="4">
387 <filter icon="terp-check" name="available" string="Available" domain="[('stock_available', '>', 0)]" help="Available Product Lots" />
388 <separator orientation="vertical"/>
389 <field name="prefix"/>
392 <field name="product_id"/>
396 <group expand="0" string="Group By..." colspan="4" col="8">
397 <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
403 <record id="action_production_lot_form" model="ir.actions.act_window">
404 <field name="name">Production Lots</field>
405 <field name="type">ir.actions.act_window</field>
406 <field name="res_model">stock.production.lot</field>
407 <field name="view_type">form</field>
408 <field name="view_id" ref="view_production_lot_tree"/>
409 <field name="search_view_id" ref="search_product_lot_filter" />
410 <field name="context">{'full':'1',"search_default_available":1}</field>
411 <field name="help">This is the list of all the production lots (serial numbers) you recorded. When you select a lot, you can get the upstream or downstream traceability of the products contained in lot. By default, the list is filtred on the serial numbers that are available in your warehouse but you can uncheck the 'Available' button to get all the lots you produced, received or delivered to customers.</field>
413 <menuitem action="action_production_lot_form" id="menu_action_production_lot_form"
414 parent="menu_traceability" groups="base.group_extended"
418 # Lot composition (history)
420 <record id="stock_move_tree" model="ir.ui.view">
421 <field name="name">Stock Moves</field>
422 <field name="model">stock.move</field>
423 <field name="type">tree</field>
424 <field name="field_parent">move_history_ids</field>
425 <field name="arch" type="xml">
426 <tree colors="grey:state in ('cancel')" string="Moves">
427 <field name="product_id" />
428 <field name="product_qty" />
429 <field name="product_uom" string="UOM"/>
430 <field name="prodlot_id" groups="base.group_extended"/>
431 <field groups="base.group_extended" name="tracking_id"/>
432 <field name="product_packaging" domain="[('product_id','=',product_id)]" groups="base.group_extended"/>
433 <field name="picking_id"/>
434 <field name="location_id" />
435 <field name="location_dest_id" />
436 <field name="create_date"/>
437 <field name="date" string="Date"/>
438 <field name="date_expected" string="Date Expected"/>
439 <field name="state"/>
444 <record id="stock_move_tree2" model="ir.ui.view">
445 <field name="name">Stock Moves</field>
446 <field name="model">stock.move</field>
447 <field name="type">tree</field>
448 <field name="field_parent">move_history_ids2</field>
449 <field name="arch" type="xml">
450 <tree colors="grey:state in ('cancel')" string="Moves">
451 <field name="product_id" />
452 <field name="product_qty" />
453 <field name="product_uom" string="UOM"/>
454 <field name="prodlot_id" groups="base.group_extended"/>
455 <field groups="base.group_extended" name="tracking_id"/>
456 <field name="product_packaging" domain="[('product_id','=',product_id)]" groups="base.group_extended"/>
457 <field name="picking_id"/>
458 <field name="location_id" />
459 <field name="location_dest_id" />
460 <field name="create_date" />
461 <field name="date" string="Date"/>
462 <field name="date_expected" string="Date Expected"/>
463 <field name="state"/>
468 <record id="action3" model="ir.actions.act_window">
469 <field name="name">Downstream traceability</field>
470 <field name="type">ir.actions.act_window</field>
471 <field name="res_model">stock.move</field>
472 <field name="domain">[('id','in',active_ids)]</field>
473 <field name="view_type">tree</field>
474 <field eval="stock_move_tree2" name="view_id"/>
477 <record id="ir_move_traceability_upstream" model="ir.values">
478 <field name="key2">tree_but_action</field>
479 <field name="model">stock.move</field>
480 <field name="name">Downstream traceability</field>
481 <field eval="'ir.actions.act_window,'+str(action3)" name="value"/>
482 <field eval="True" name="object"/>
485 <record id="action5" model="ir.actions.act_window">
486 <field name="name">Upstream traceability</field>
487 <field name="type">ir.actions.act_window</field>
488 <field name="res_model">stock.move</field>
489 <field name="domain">[('id','in',active_ids)]</field>
490 <field name="view_type">tree</field>
491 <field eval="stock_move_tree" name="view_id"/>
494 <record id="ir_move_traceability_downstream" model="ir.values">
495 <field name="key2">tree_but_action</field>
496 <field name="model">stock.move</field>
497 <field name="name">Upstream traceability</field>
498 <field eval="'ir.actions.act_window,'+str(action5)" name="value"/>
499 <field eval="True" name="object"/>
502 <record id="view_location_form" model="ir.ui.view">
503 <field name="name">stock.location.form</field>
504 <field name="model">stock.location</field>
505 <field name="type">form</field>
506 <field name="arch" type="xml">
507 <form string="Stock Location">
508 <group col="2" colspan="2">
509 <separator string="Location" colspan="2"/>
511 <field name="usage"/>
512 <field name="location_id"/>
514 <group col="4" colspan="2">
515 <separator string="Additional Information" colspan="4"/>
516 <field name="address_id" context="{'contact_display':'partner'}" colspan="4"/>
517 <field name="company_id" groups="base.group_multi_company" widget="selection" colspan="4"/>
518 <field name="icon" groups="base.group_extended" colspan="4"/>
519 <field name="scrap_location" groups="base.group_extended"/>
520 <field name="active" groups="base.group_extended"/>
522 <group col="2" colspan="2" groups="base.group_extended">
523 <separator string="Chained Locations" colspan="2"/>
524 <field name="chained_location_type"/>
525 <field name="chained_location_id" attrs="{'required':[('chained_location_type','=','fixed')]}"/>
526 <field name="chained_auto_packing"/>
527 <field name="chained_delay"/>
528 <field name="chained_journal_id"/>
529 <field name="chained_picking_type"/>
530 <field name="chained_company_id" widget="selection"/>
532 <group col="2" colspan="2">
533 <separator string="Localization" colspan="2"/>
537 <separator string="Accounting Information" colspan="2" groups="base.group_extended"/>
538 <field name="valuation_in_account_id" attrs="{'readonly':[('usage','not in',('inventory','production'))]}" groups="base.group_extended"/>
539 <field name="valuation_out_account_id" attrs="{'readonly':[('usage','not in',('inventory','production'))]}" groups="base.group_extended"/>
541 <separator string="Additional Information" colspan="4"/>
542 <field colspan="4" name="comment" nolabel="1"/>
547 <record id="view_location_search" model="ir.ui.view">
548 <field name="name">stock.location.search</field>
549 <field name="model">stock.location</field>
550 <field name="type">search</field>
551 <field name="arch" type="xml">
552 <search string="Stock Locations">
553 <filter icon="terp-go-home" name="in_location"
554 string="Internal" domain="[('usage', '=', 'internal')]" help="Internal Locations" />
555 <filter icon="terp-personal" name="customer"
556 string="Customer" domain="[('usage', '=', 'customer')]" help="Customer Locations" />
557 <filter icon="terp-personal" name="supplier"
558 string="Supplier" domain="[('usage', '=', 'supplier')]" help="Supplier Locations" />
559 <separator orientation="vertical"/>
566 <record id="view_location_tree2" model="ir.ui.view">
567 <field name="name">stock.location.tree</field>
568 <field name="model">stock.location</field>
569 <field name="type">tree</field>
570 <field name="priority" eval="2"/>
571 <field name="arch" type="xml">
572 <tree string="Stock Location" colors="blue:usage=='view';darkred:usage=='internal'">
573 <field name="complete_name"/>
574 <field name="usage"/>
575 <field name="stock_real" invisible="'product_id' not in context"/>
576 <field name="stock_virtual" invisible="'product_id' not in context"/>
581 <record id="action_location_form" model="ir.actions.act_window">
582 <field name="name">Locations</field>
583 <field name="res_model">stock.location</field>
584 <field name="type">ir.actions.act_window</field>
585 <field name="view_type">form</field>
586 <field name="view_id" ref="view_location_tree2"/>
587 <field name="search_view_id" ref="view_location_search"/>
588 <field name="context">{'full':1, 'search_default_in_location':1}</field>
589 <field name="help">Define your locations to reflect your warehouse structure and organization. OpenERP is able to manage physical locations (warehouses, shelves, bin, etc), partner locations (customers, suppliers) and virtual locations which are the counterpart of the stock operations like the manufacturing orders consumptions, inventories, etc. Every stock operation in OpenERP moves the products from one location to another one. For instance, if you receive products from a supplier, OpenERP will move products from the Supplier location to the Stock location. Each report can be performed on physical, partner or virtual locations.</field>
591 <menuitem action="action_location_form" id="menu_action_location_form" parent="menu_warehouse_config"/>
593 <record id="view_location_tree" model="ir.ui.view">
594 <field name="name">stock.location.tree</field>
595 <field name="model">stock.location</field>
596 <field name="type">tree</field>
597 <field name="field_parent">child_ids</field>
598 <field name="arch" type="xml">
600 <field icon="icon" name="name"/>
604 <record id="action_location_tree" model="ir.actions.act_window">
605 <field name="name">Location Structure</field>
606 <field name="res_model">stock.location</field>
607 <field name="type">ir.actions.act_window</field>
608 <field name="domain">[('location_id','=',False)]</field>
609 <field name="view_type">tree</field>
610 <field name="view_id" ref="view_location_tree"/>
611 <field name="help">This is the structure of your company's warehouses and locations. You can click on a location to get the list of the products and their stock level in this particular location and all its children.</field>
613 <menuitem action="action_location_tree"
614 id="menu_action_location_tree"
615 parent="menu_stock_inventory_control"
618 <record id="view_warehouse" model="ir.ui.view">
619 <field name="name">stock.warehouse</field>
620 <field name="model">stock.warehouse</field>
621 <field name="type">form</field>
622 <field name="arch" type="xml">
623 <form string="Warehouse">
624 <field colspan="4" name="name" select="1"/>
625 <field name="lot_input_id"/>
626 <field name="lot_stock_id"/>
627 <field name="lot_output_id"/>
628 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
630 <field name="partner_address_id" context="{'contact_display':'partner'}"/>
634 <record id="view_warehouse_tree" model="ir.ui.view">
635 <field name="name">stock.warehouse.tree</field>
636 <field name="model">stock.warehouse</field>
637 <field name="type">tree</field>
638 <field name="arch" type="xml">
639 <tree string="Warehouse">
641 <field name="lot_input_id"/>
642 <field name="lot_stock_id"/>
643 <field name="lot_output_id"/>
644 <field name="partner_address_id" context="{'contact_display':'partner'}"/>
648 <record id="action_warehouse_form" model="ir.actions.act_window">
649 <field name="name">Warehouses</field>
650 <field name="res_model">stock.warehouse</field>
651 <field name="type">ir.actions.act_window</field>
652 <field name="view_type">form</field>
653 <field name="view_id" ref="view_warehouse_tree"/>
654 <field name="help">Create and manage your warehouses and assign them a location from here</field>
656 <menuitem action="action_warehouse_form" id="menu_action_warehouse_form" parent="menu_warehouse_config"/>
658 <record model="ir.ui.view" id="stock_picking_calendar">
659 <field name="name">stock.picking.calendar</field>
660 <field name="model">stock.picking</field>
661 <field name="type">calendar</field>
662 <field name="priority" eval="2"/>
663 <field name="arch" type="xml">
664 <calendar string="Calendar View" date_start="min_date" date_stop="max_date" color="address_id">
665 <field name="origin"/>
667 <field name="address_id"/>
671 <record id="vpicktree" model="ir.ui.view">
672 <field name="name">stock.picking.tree</field>
673 <field name="model">stock.picking</field>
674 <field name="type">tree</field>
675 <field name="arch" type="xml">
676 <tree colors="blue:state in ('draft');grey:state in ('cancel');red:state not in ('cancel', 'done') and date < current_date" string="Picking list">
678 <field name="backorder_id" groups="base.group_extended"/>
679 <field name="origin"/>
681 <field name="min_date"/>
682 <field name="invoice_state"/>
683 <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
684 <field name="state"/>
685 <button name="action_process" states="confirmed,assigned" groups="stock.group_stock_user" string="Process" type="object" icon="gtk-go-forward"/>
689 <record id="view_picking_form" model="ir.ui.view">
690 <field name="name">stock.picking.form</field>
691 <field name="model">stock.picking</field>
692 <field name="type">form</field>
693 <field eval="12" name="priority"/>
694 <field name="arch" type="xml">
695 <form string="Internal Picking list">
696 <group colspan="4" col="6">
697 <group colspan="4" col="4">
698 <field name="name" readonly="1"/>
699 <field name="origin"/>
700 <field name="address_id" on_change="onchange_partner_in(address_id)" context="{'contact_display':'partner'}" colspan="4"/>
701 <field name="backorder_id" readonly="1" groups="base.group_extended"/>
703 <group colspan="2" col="2">
705 <field name="min_date" readonly="1"/>
706 <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
709 <notebook colspan="4">
710 <page string="Products">
711 <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines}">
712 <tree colors="grey:scrapped == True" string="Stock Moves">
713 <field name="product_id"/>
714 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
715 <field name="product_uom" string="UoM"/>
716 <field name="product_uos" groups="product.group_uos"/>
717 <button name="%(stock.move_scrap)d"
718 string="Scrap Products" type="action"
719 icon="gtk-convert" context="{'scrap': True}"
720 states="draft,waiting,confirmed,assigned"
721 groups="base.group_extended"/>
722 <field name="scrapped" invisible="1"/>
723 <field name="prodlot_id" groups="base.group_extended"/>
725 name="%(stock.track_line)d"
726 string="Split in production lots"
727 groups="base.group_extended"
728 type="action" icon="terp-stock_effects-object-colorize"
729 states="draft,waiting,confirmed,assigned" />
730 <field groups="base.group_extended" name="tracking_id"/>
731 <button name="setlast_tracking" string="Put in current pack" type="object"
732 attrs="{'invisible': [('tracking_id','<>',False)]}"
733 icon="terp-stock_effects-object-colorize"
734 groups="base.group_extended"
735 states="draft,assigned,confirmed"/>
736 <button name="%(split_into)d" string="Put in a new pack" type="action"
737 groups="base.group_extended"
738 icon="terp-stock_effects-object-colorize"
739 states="draft,assigned,confirmed"/>
740 <field name="location_id"/>
741 <field name="location_dest_id"/>
742 <field name="date_expected" string="Date Expected"/>
743 <field name="state"/>
745 <form string="Stock Moves">
746 <group colspan="2" col="4">
747 <separator colspan="4" string="Move Information"/>
748 <field name="name" invisible="1" colspan="4"/>
749 <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id)" colspan="4"/>
750 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="3"/>
751 <button name="%(stock.move_scrap)d"
752 string="Scrap" type="action" groups="base.group_extended"
753 icon="gtk-convert" context="{'scrap': True}"
754 states="draft,waiting,confirmed,assigned" colspan="1"/>
755 <field name="product_uom" string="Unit Of Measure" colspan="4"/>
756 <field name="product_uos_qty" groups="product.group_uos" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4"/>
757 <field groups="product.group_uos" name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4"/>
758 <field groups="base.group_extended" name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4"/>
761 <group colspan="2" col="2">
762 <separator string="Locations" colspan="2" />
763 <field name="location_id" domain="[('usage','=','internal')]" />
764 <field name="location_dest_id" domain="[('usage','=','internal')]" />
767 <group colspan="2" col="2">
768 <separator string="Dates" colspan="2" />
769 <field name="create_date" invisible="1"/>
771 <field name="date_expected"/>
774 <group colspan="2" col="4" groups="base.group_extended">
775 <separator string="Traceability" colspan="4" groups="base.group_extended"/>
776 <field name="tracking_id" groups="base.group_extended" colspan="3"/>
777 <button name="%(split_into)d" string="New pack" type="action"
778 groups="base.group_extended"
779 icon="terp-stock_effects-object-colorize"
780 states="draft,assigned,confirmed" colspan="1"/>
781 <field name="prodlot_id" groups="base.group_extended"
782 context="{'location_id':location_id, 'product_id':product_id}"
783 domain="[('product_id','=?',product_id)]"
784 on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"/>
785 <button name="%(track_line)d"
786 groups="base.group_extended"
787 states="draft,waiting,confirmed,assigned"
788 string="Split" type="action" icon="terp-stock_effects-object-colorize" colspan="1" />
790 <label string="" colspan="4"/>
791 <field name="state"/>
792 <group col="4" colspan="2">
793 <button name="action_cancel" states="assigned" string="Cancel" type="object" icon="gtk-cancel"/>
794 <button name="action_confirm" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
795 <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
796 <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
800 <group col="10" colspan="4">
801 <field name="state" readonly="1"/>
802 <button name="button_cancel" states="assigned,confirmed,draft" string="_Cancel" icon="gtk-cancel"/>
803 <button name="draft_force_assign" states="draft" string="Process Later" type="object" icon="gtk-apply"/>
804 <button name="draft_validate" states="draft" string="Process Now" type="object" icon="gtk-media-play"/>
805 <button name="action_assign" states="confirmed" string="Check Availability" type="object" icon="gtk-find"/>
806 <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
807 <button name="action_process" states="assigned" string="Process" groups="stock.group_stock_user" type="object" icon="gtk-go-forward"/>
808 <button name="%(action_stock_invoice_onshipping)d" string="Create Invoice" attrs="{'invisible': ['|','|',('state','<>','done'),('invoice_state','=','invoiced'),('invoice_state','=','none')]}" type="action" icon="terp-gtk-go-back-rtl" />
811 <page string="Additional info" groups="base.group_extended,base.group_multi_company">
812 <field name="auto_picking" groups="base.group_extended"/>
813 <field name="invoice_state" groups="base.group_extended"/>
814 <field name="date_done" groups="base.group_extended"/>
815 <field name="move_type" groups="base.group_extended"/>
816 <field name="type" groups="base.group_extended"/>
817 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
819 <page string="Notes">
820 <field colspan="4" name="note" nolabel="1"/>
827 <record id="view_stock_picking_filter" model="ir.ui.view">
828 <field name="name">stock.picking.list.select</field>
829 <field name="model">stock.picking</field>
830 <field name="type">search</field>
831 <field name="arch" type="xml">
832 <search string="Search Stock Picking">
833 <group col="10" colspan="4">
834 <filter icon="terp-check" name="available" string="Available" domain="[('state','=','assigned')]" help="Available Pickings"/>
835 <filter icon="terp-camera_test" string="Confirmed" domain="[('state','=','confirmed')]" help="Confirmed Pickings"/>
836 <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" help="Pickings already processed"/>
837 <separator orientation="vertical"/>
838 <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order" groups="base.group_extended"/>
839 <separator orientation="vertical"/>
840 <filter icon="terp-dolar" name="to_invoice" string="To Invoice" domain="[('invoice_state','=','2binvoiced')]" help="Internal Pickings to invoice"/>
841 <separator orientation="vertical"/>
843 <field name="address_id"/>
844 <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
847 <group expand="0" string="Group By..." colspan="4" col="8">
848 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
849 <separator orientation="vertical" />
850 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
851 <separator orientation="vertical" />
852 <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
853 <separator orientation="vertical" />
854 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}" groups="base.group_extended"/>
865 <record id="view_picking_out_tree" model="ir.ui.view">
866 <field name="name">stock.picking.out.tree</field>
867 <field name="model">stock.picking</field>
868 <field name="type">tree</field>
869 <field name="arch" type="xml">
870 <tree colors="blue:state in ('draft');grey:state in ('cancel');red:state not in ('cancel', 'done') and date < current_date" string="Delivery Orders">
872 <field name="partner_id"/>
873 <field name="origin"/>
875 <field name="min_date"/>
876 <field name="backorder_id" groups="base.group_extended"/>
877 <field name="invoice_state"/>
878 <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
879 <field name="state"/>
880 <button name="action_process" states="assigned" string="Process" type="object" icon="gtk-go-forward"/>
884 <record id="view_picking_out_form" model="ir.ui.view">
885 <field name="name">stock.picking.out.form</field>
886 <field name="model">stock.picking</field>
887 <field name="type">form</field>
888 <field name="arch" type="xml">
889 <form string="Delivery Orders">
890 <group col="6" colspan="4">
891 <group colspan="4" col="4">
892 <field name="name" readonly="1"/>
893 <field name="origin" readonly="1"/>
894 <field name="address_id" on_change="onchange_partner_in(address_id)" context="{'contact_display':'partner'}" colspan="4"/>
895 <field name="invoice_state"/>
896 <field name="backorder_id" readonly="1" groups="base.group_extended"/>
898 <group colspan="2" col="2">
900 <field name="min_date" readonly="1"/>
901 <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
904 <notebook colspan="4">
905 <page string="Products">
906 <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines, 'address_out_id': address_id}" >
907 <tree colors="grey:scrapped==True" string="Stock Moves">
908 <field name="product_id"/>
909 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
910 <field name="product_uom" string="UoM"/>
911 <field name="product_uos" groups="product.group_uos"/>
912 <button name="%(stock.move_scrap)d"
913 string="Scrap Products" type="action"
914 icon="gtk-convert" context="{'scrap': True}"
915 states="draft,waiting,confirmed,assigned" />
916 <field name="scrapped" invisible="1"/>
917 <field name="prodlot_id" groups="base.group_extended"/>
918 <button name="%(track_line)d" string="Split in production lots" type="action"
919 icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('prodlot_id','<>',False)]}"
920 states="draft,assigned,confirmed"
921 groups="base.group_extended"/>
922 <field name="tracking_id" groups="base.group_extended"/>
923 <button name="setlast_tracking" string="Put in current pack" type="object"
924 attrs="{'invisible': [('tracking_id','<>',False)]}"
925 groups="base.group_extended"
926 icon="terp-stock_effects-object-colorize"
927 states="draft,assigned,confirmed"/>
928 <button name="%(split_into)d" string="Put in a new pack" type="action"
929 icon="terp-stock_effects-object-colorize"
930 groups="base.group_extended"
931 states="draft,assigned,confirmed"/>
932 <field name="location_id"/>
934 <field name="state"/>
935 <button name="%(action_partial_move_server)d" string="Process" type="action" states="confirmed,assigned" icon="gtk-go-forward"/>
937 <form string="Stock Moves">
938 <group colspan="2" col="4">
939 <separator colspan="4" string="Move Information"/>
940 <field name="name" invisible="1" colspan="4" />
941 <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id)" colspan="4" />
942 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="3" />
943 <button name="%(stock.move_scrap)d"
944 string="Scrap" type="action"
945 icon="gtk-convert" context="{'scrap': True}"
946 states="draft,waiting,confirmed,assigned" colspan="1" groups="base.group_extended"/>
947 <field name="product_uom" string="Unit Of Measure" colspan="4" />
948 <field name="product_uos_qty" groups="product.group_uos" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4" />
949 <field groups="product.group_uos" name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" />
950 <field groups="base.group_extended" name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4" />
953 <group colspan="2" col="2">
954 <separator string="Locations" colspan="2" />
955 <field name="location_id" domain="[('usage','=','internal')]" />
956 <field name="location_dest_id" domain="[('usage','<>','view')]" />
959 <group colspan="2" col="2">
960 <separator string="Dates" colspan="2" />
961 <field name="create_date" invisible="1"/>
963 <field name="date_expected"/>
966 <group colspan="2" col="4" groups="base.group_extended">
967 <separator string="Traceability" colspan="4" groups="base.group_extended"/>
968 <field name="tracking_id" groups="base.group_extended" colspan="3" />
969 <button name="%(split_into)d" string="New pack" type="action"
970 groups="base.group_extended"
971 icon="terp-stock_effects-object-colorize"
972 states="draft,assigned,confirmed" colspan="1"/>
973 <field name="prodlot_id" groups="base.group_extended"
974 context="{'location_id':location_id, 'product_id':product_id}"
975 domain="[('product_id','=?',product_id)]"
976 on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"/>
977 <button name="%(track_line)d"
978 groups="base.group_extended"
979 states="draft,waiting,confirmed,assigned"
980 string="Split" type="action" icon="terp-stock_effects-object-colorize" colspan="1" />
982 <label string="" colspan="4"/>
983 <field name="state"/>
984 <group col="4" colspan="2">
985 <button name="action_cancel" states="assigned" string="Cancel" type="object" icon="gtk-cancel"/>
986 <button name="action_confirm" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
987 <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
988 <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
992 <group col="12" colspan="4">
993 <field name="state" readonly="1"/>
994 <button name="button_cancel" states="assigned,confirmed,draft" string="_Cancel" icon="gtk-cancel"/>
995 <button name="draft_force_assign" states="draft" string="Process Later" type="object" icon="gtk-ok"/>
996 <button name="draft_validate" states="draft" string="Process Now" type="object" icon="gtk-yes"/>
997 <button name="action_assign" states="confirmed" string="Check Availability" type="object" groups="base.group_extended" icon="gtk-find"/>
998 <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
999 <button name="action_process" states="assigned" string="Process" type="object" icon="gtk-go-forward"/>
1000 <button name="%(act_stock_return_picking)d" string="Return Products" states="done" type="action" icon="gtk-execute"/>
1001 <button name="%(action_stock_invoice_onshipping)d" string="Create Invoice" attrs="{'invisible': ['|','|',('state','<>','done'),('invoice_state','=','invoiced'),('invoice_state','=','none')]}" type="action" icon="terp-gtk-go-back-rtl"/>
1004 <page string="Additional info" groups="base.group_extended,base.group_multi_company">
1005 <field name="auto_picking" groups="base.group_extended"/>
1006 <field name="date_done" groups="base.group_extended"/>
1007 <field name="move_type" groups="base.group_extended"/>
1008 <field name="type" groups="base.group_extended"/>
1009 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
1011 <page string="Notes">
1012 <field colspan="4" name="note" nolabel="1"/>
1019 <record id="view_picking_out_search" model="ir.ui.view">
1020 <field name="name">stock.picking.out.search</field>
1021 <field name="model">stock.picking</field>
1022 <field name="type">search</field>
1023 <field name="arch" type="xml">
1024 <search string="Picking list">
1025 <group col="8" colspan="4">
1026 <filter icon="terp-check" name="available" string="Available" domain="[('state','=','assigned')]" help="Assigned Delivery Orders"/>
1027 <filter icon="terp-camera_test" name="confirmed" string="Confirmed" domain="[('state','=','confirmed')]" help="Confirmed Delivery Orders"/>
1028 <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" help="Delivery orders already processed"/>
1029 <separator orientation="vertical"/>
1030 <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order" groups="base.group_extended"/>
1031 <separator orientation="vertical"/>
1032 <filter icon="terp-dolar" name="to_invoice" string="To Invoice" domain="[('invoice_state','=','2binvoiced')]" help="Delivery orders to invoice"/>
1033 <separator orientation="vertical"/>
1034 <field name="name"/>
1035 <field name="partner_id" />
1036 <field name="origin"/>
1037 <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
1038 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
1041 <group expand="0" string="Group By..." colspan="4" col="8">
1042 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
1043 <separator orientation="vertical" />
1044 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1045 <separator orientation="vertical" />
1046 <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
1047 <filter string="Expected Date" icon="terp-go-month" domain="[]" context="{'group_by':'min_date'}"/>
1048 <separator orientation="vertical" />
1049 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}" groups="base.group_extended"/>
1055 <record id="action_picking_tree" model="ir.actions.act_window">
1056 <field name="name">Delivery Orders</field>
1057 <field name="res_model">stock.picking</field>
1058 <field name="type">ir.actions.act_window</field>
1059 <field name="view_type">form</field>
1060 <field name="view_mode">tree,form,calendar</field>
1061 <field name="domain">[('type','=','out')]</field>
1062 <field name="context">{'contact_display': 'partner_address', 'search_default_available': 1}</field>
1063 <field name="search_view_id" ref="view_picking_out_search"/>
1064 <field name="help">This is the list of all delivery orders that have to be prepared, according to your different sales orders and your logistics rules.</field>
1066 <record id="action_picking_tree_out_view1_waiting" model="ir.actions.act_window.view">
1067 <field eval="1" name="sequence"/>
1068 <field name="view_mode">tree</field>
1069 <field name="view_id" ref="view_picking_out_tree"/>
1070 <field name="act_window_id" ref="action_picking_tree"/>
1072 <record id="action_picking_tree_out_view2_waiting" model="ir.actions.act_window.view">
1073 <field eval="2" name="sequence"/>
1074 <field name="view_mode">form</field>
1075 <field name="view_id" ref="view_picking_out_form"/>
1076 <field name="act_window_id" ref="action_picking_tree"/>
1078 <record id="action_picking_tree_out_view2_waiting_cal" model="ir.actions.act_window.view">
1079 <field eval="3" name="sequence"/>
1080 <field name="view_mode">calendar</field>
1081 <field name="act_window_id" ref="action_picking_tree"/>
1083 <menuitem action="action_picking_tree" id="menu_action_picking_tree" parent="menu_stock_warehouse_mgmt" sequence="3"/>
1085 <record id="view_picking_in_tree" model="ir.ui.view">
1086 <field name="name">stock.picking.in.tree</field>
1087 <field name="model">stock.picking</field>
1088 <field name="type">tree</field>
1089 <field name="arch" type="xml">
1090 <tree colors="blue:state in ('draft');grey:state in ('done');red:state not in ('cancel', 'done') and date < current_date" string="Picking list">
1091 <field name="name"/>
1092 <field name="partner_id" />
1093 <field name="backorder_id" groups="base.group_extended"/>
1094 <field name="origin"/>
1095 <field name="date"/>
1096 <field name="min_date"/>
1097 <field name="invoice_state" groups="base.group_extended"/>
1098 <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
1099 <field name="state"/>
1100 <button name="action_process" states="assigned" string="Process" type="object" icon="gtk-go-forward"/>
1101 <button name="button_cancel" states="assigned,confirmed,draft" string="Cancel" icon="gtk-cancel" confirm="This operation will cancel the shipment. Do you want to continue?" />
1105 <record id="view_picking_in_form" model="ir.ui.view">
1106 <field name="name">stock.picking.in.form</field>
1107 <field name="model">stock.picking</field>
1108 <field name="type">form</field>
1109 <field name="arch" type="xml">
1110 <form string="Input Picking List">
1111 <group colspan="4" col="6">
1112 <group colspan="4" col="4">
1113 <field name="name" readonly="1"/>
1114 <field name="origin"/>
1115 <field name="address_id" on_change="onchange_partner_in(address_id)" context="{'contact_display':'partner'}" colspan="4"/>
1116 <field name="invoice_state" string="Invoice Control"/>
1117 <field name="backorder_id" readonly="1" groups="base.group_extended"/>
1119 <group colspan="2" col="2">
1120 <field name="date"/>
1121 <field name="min_date" readonly="1"/>
1122 <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
1125 <notebook colspan="4">
1126 <page string="General Information">
1127 <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" default_get="{'move_line':move_lines, 'address_in_id': address_id}" >
1128 <tree colors="grey:scrapped==True" string="Stock Moves">
1129 <field name="product_id" />
1130 <field name="product_qty" />
1131 <field name="product_uom" string="UoM" />
1132 <button name="%(stock.move_scrap)d"
1133 string="Scrap Products" type="action"
1134 icon="gtk-convert" context="{'scrap': True}"
1135 states="draft,waiting,confirmed,assigned"
1136 groups="base.group_extended"/>
1137 <field name="scrapped" invisible="1"/>
1138 <field name="prodlot_id" groups="base.group_extended"/>
1140 name="%(stock.track_line)d"
1141 string="Split in production lots"
1142 groups="base.group_extended"
1143 type="action" icon="terp-stock_effects-object-colorize"
1144 states="draft,waiting,confirmed,assigned" />
1145 <field name="tracking_id" groups="base.group_extended"/>
1146 <button name="setlast_tracking" string="Put in current pack" type="object"
1147 groups="base.group_extended"
1148 icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('tracking_id','<>',False)]}"
1149 states="draft,assigned,confirmed"/>
1150 <button name="%(split_into)d" string="Put in a new pack" type="action"
1151 groups="base.group_extended"
1152 icon="terp-stock_effects-object-colorize"
1153 states="draft,assigned,confirmed"/>
1154 <field name="location_dest_id"/>
1155 <field name="state"/>
1157 <form string="Stock Moves">
1158 <group colspan="2" col="4">
1159 <separator colspan="4" string="Move Information"/>
1160 <field name="name" invisible="1" colspan="4"/>
1161 <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id)" colspan="4"/>
1162 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="3"/>
1163 <button name="%(stock.move_scrap)d"
1164 string="Scrap" type="action" groups="base.group_extended"
1165 icon="gtk-convert" context="{'scrap': True}"
1166 states="draft,waiting,confirmed,assigned" colspan="1"/>
1167 <field name="product_uom" string="Unit Of Measure" colspan="4"/>
1168 <field name="product_uos_qty" groups="product.group_uos" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4"/>
1169 <field groups="product.group_uos" name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4"/>
1170 <field groups="base.group_extended" name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4"/>
1173 <group colspan="2" col="2">
1174 <separator string="Locations" colspan="2" />
1175 <field name="location_id" domain="[('usage','<>','view')]" />
1176 <field name="location_dest_id" domain="[('usage','=','internal')]" />
1179 <group colspan="2" col="2">
1180 <separator string="Dates" colspan="2" />
1181 <field name="create_date" invisible="1"/>
1182 <field name="date"/>
1183 <field name="date_expected"/>
1186 <group colspan="2" col="4" groups="base.group_extended">
1187 <separator string="Traceability" colspan="4" groups="base.group_extended"/>
1188 <field name="tracking_id" groups="base.group_extended" colspan="3" />
1189 <button name="%(split_into)d" string="New pack" type="action"
1190 groups="base.group_extended"
1191 icon="terp-stock_effects-object-colorize"
1192 states="draft,assigned,confirmed" colspan="1"/>
1193 <field name="prodlot_id" groups="base.group_extended"
1194 context="{'location_id':location_id, 'product_id':product_id}"
1195 domain="[('product_id','=?',product_id)]"
1196 on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"/>
1197 <button name="%(track_line)d"
1198 groups="base.group_extended"
1199 states="draft,waiting,confirmed,assigned"
1200 string="Split" type="action" icon="terp-stock_effects-object-colorize" colspan="1" />
1202 <label string="" colspan="4"/>
1203 <field name="state"/>
1204 <group col="4" colspan="2">
1205 <button name="action_cancel" states="assigned" string="_Cancel" type="object" icon="gtk-cancel"/>
1206 <button name="action_confirm" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
1207 <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
1208 <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
1212 <group col="10" colspan="4">
1213 <field name="state" readonly="1"/>
1214 <button name="button_cancel" states="assigned,confirmed,draft" string="_Cancel" icon="gtk-cancel"/>
1215 <button name="draft_force_assign" states="draft" string="Process Later" type="object" icon="gtk-ok"/>
1216 <button name="draft_validate" states="draft" string="Process Now" type="object" icon="gtk-media-play"/>
1217 <button name="action_assign" states="confirmed" string="Check Availability" type="object" icon="gtk-find"/>
1218 <button name="force_assign" states="confirmed" string="Force Availability" type="object" groups="base.group_extended" icon="gtk-jump-to"/>
1219 <button name="action_process" states="assigned" string="Process" type="object" icon="gtk-go-forward"/>
1220 <group colspan="1" states="done">
1221 <button name="%(act_stock_return_picking)d" string="Return Products" states="done" type="action" icon="gtk-execute"/>
1223 <button states="done" name="%(action_stock_invoice_onshipping)d" string="Create Invoice" attrs="{'invisible': ['|','|',('state','<>','done'),('invoice_state','=','invoiced'),('invoice_state','=','none')]}" type="action" icon="terp-gtk-go-back-rtl" />
1226 <page string="Additional Info" groups="base.group_extended,base.group_multi_company">
1227 <field name="type" groups="base.group_extended"/>
1228 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
1230 <page string="Notes">
1231 <field colspan="4" name="note" nolabel="1"/>
1238 <record id="view_picking_in_search" model="ir.ui.view">
1239 <field name="name">stock.picking.in.search</field>
1240 <field name="model">stock.picking</field>
1241 <field name="type">search</field>
1242 <field name="arch" type="xml">
1243 <search string="Incoming Shipments">
1244 <group col="8" colspan="4">
1245 <filter icon="terp-check" name="available" string="Available" domain="[('state','=','assigned')]" help="Incoming Shipments Available" />
1246 <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" help="Incoming Shipments already processed"/>
1247 <separator orientation="vertical" />
1248 <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order" groups="base.group_extended"/>
1249 <separator orientation="vertical"/>
1250 <field name="name"/>
1251 <field name="partner_id"/>
1252 <field name="origin"/>
1253 <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
1254 <field name="company_id" widget="selection" groups="base.group_multi_company" />
1257 <group expand="0" string="Extended Filters..." colspan="4" col="8">
1258 <filter string="To invoice" name="to_invoice" icon="terp-dolar" domain="[('invoice_state', '=', '2binvoiced')]" />
1261 <group expand="0" string="Group By..." colspan="4" col="8">
1262 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
1263 <separator orientation="vertical" />
1264 <filter icon="terp-stock_effects-object-colorize" name="state" string="State" domain="[]" context="{'group_by':'state'}"/>
1265 <separator orientation="vertical" />
1266 <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
1267 <filter string="Expected Date" icon="terp-go-month" domain="[]" context="{'group_by':'min_date'}"/>
1268 <separator orientation="vertical" />
1269 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}" groups="base.group_extended"/>
1276 <record id="action_picking_tree4" model="ir.actions.act_window">
1277 <field name="name">Incoming Shipments</field>
1278 <field name="res_model">stock.picking</field>
1279 <field name="type">ir.actions.act_window</field>
1280 <field name="view_type">form</field>
1281 <field name="view_mode">tree,form,calendar</field>
1282 <field name="domain">[('type','=','in')]</field>
1283 <field name="context">{'contact_display': 'partner_address',"search_default_available":1}</field>
1284 <field name="search_view_id" ref="view_picking_in_search"/>
1285 <field name="help">The Incoming Shipments is the list of all orders you will receive from your supplier. An incoming shipment contains a list of products to be received according to the original purchase order. You can validate the shipment totally or partially.</field>
1287 <record id="action_invoice_tree5_view1" model="ir.actions.act_window.view">
1288 <field eval="1" name="sequence"/>
1289 <field name="view_mode">tree</field>
1290 <field name="view_id" ref="view_picking_in_tree"/>
1291 <field name="act_window_id" ref="action_picking_tree4"/>
1293 <record id="action_invoice_tree5_view2" model="ir.actions.act_window.view">
1294 <field eval="2" name="sequence"/>
1295 <field name="view_mode">form</field>
1296 <field name="view_id" ref="view_picking_in_form"/>
1297 <field name="act_window_id" ref="action_picking_tree4"/>
1299 <record id="action_invoice_tree5_view2_cal" model="ir.actions.act_window.view">
1300 <field eval="3" name="sequence"/>
1301 <field name="view_mode">calendar</field>
1302 <field name="act_window_id" ref="action_picking_tree4"/>
1304 <menuitem action="action_picking_tree4" id="menu_action_picking_tree4" parent="menu_stock_warehouse_mgmt" sequence="1"/>
1306 <record id="view_picking_internal_search" model="ir.ui.view">
1307 <field name="name">stock.picking.internal.search</field>
1308 <field name="model">stock.picking</field>
1309 <field name="type">search</field>
1310 <field name="arch" type="xml">
1311 <search string="Internal Picking List">
1312 <group col="8" colspan="4">
1313 <filter icon="terp-check" string="Available" domain="[('state','=','assigned')]" help="Assigned Internal Moves"/>
1314 <filter icon="terp-camera_test" name="confirmed" string="Confirmed" domain="[('state','=','confirmed')]" help="Confirmed Internal Moves" />
1315 <separator orientation="vertical"/>
1316 <field name="name"/>
1317 <field name="origin"/>
1318 <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
1319 <field name="company_id" widget="selection"/>
1322 <group expand="0" string="Group By..." colspan="4" col="8">
1323 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1324 <separator orientation="vertical"/>
1325 <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
1326 <filter string="Expected Date" icon="terp-go-month" domain="[]" context="{'group_by':'min_date'}"/>
1327 <separator orientation="vertical"/>
1328 <filter string="Origin" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'origin'}"/>
1329 <separator orientation="vertical" />
1330 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}" groups="base.group_extended"/>
1336 <record id="action_picking_tree6" model="ir.actions.act_window">
1337 <field name="name">Internal Moves</field>
1338 <field name="res_model">stock.picking</field>
1339 <field name="type">ir.actions.act_window</field>
1340 <field name="view_type">form</field>
1341 <field name="view_mode">tree,form,calendar</field>
1342 <field name="domain">[('type','=','internal')]</field>
1343 <field name="context">{'contact_display': 'partner_address',"search_default_available":1}</field>
1344 <field name="search_view_id" ref="view_picking_internal_search"/>
1345 <field name="help">Internal Moves display all inventory operations you have to perform in your warehouse. All operations can be categorized into stock journals, so that each worker has his own list of operations to perform in his own journal. Most operations are prepared automatically by OpenERP according to your preconfigured logistics rules, but you can also record manual stock operations.</field>
1348 <record model="ir.actions.act_window.view" id="action_picking_tree6_tree_view">
1349 <field name="sequence" eval="1"/>
1350 <field name="view_mode">tree</field>
1351 <field name="view_id" ref="vpicktree"/>
1352 <field name="act_window_id" ref="action_picking_tree6"/>
1354 <record model="ir.actions.act_window.view" id="action_picking_tree6_form_view">
1355 <field name="sequence" eval="2"/>
1356 <field name="view_mode">form</field>
1357 <field name="view_id" ref="view_picking_form"/>
1358 <field name="act_window_id" ref="action_picking_tree6"/>
1363 <menuitem action="action_picking_tree6" id="menu_action_picking_tree6" parent="menu_stock_warehouse_mgmt" sequence="2"/>
1365 <record id="view_move_tree" model="ir.ui.view">
1366 <field name="name">stock.move.tree</field>
1367 <field name="model">stock.move</field>
1368 <field name="type">tree</field>
1369 <field eval="6" name="priority"/>
1370 <field name="arch" type="xml">
1371 <tree colors="grey:state in ('cancel');red:(state not in ('cancel','done')) and date > current_date" string="Moves" editable="top">
1372 <field name="name"/>
1373 <field name="picking_id" string="Reference"/>
1374 <field name="origin"/>
1375 <field name="create_date" invisible="1"/>
1376 <field name="partner_id"/>
1377 <field name="product_id"/>
1378 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1379 <field name="product_uom" string="UoM"/>
1380 <field name="product_uos" groups="product.group_uos"/>
1381 <button name="%(stock.move_scrap)d"
1382 string="Scrap Products" type="action"
1383 icon="gtk-convert" context="{'scrap': True}"
1384 states="draft,waiting,confirmed,assigned"
1385 groups="base.group_extended"/>
1386 <field name="prodlot_id" groups="base.group_extended"/>
1387 <button name="%(track_line)d" string="Split in production lots" type="action"
1388 icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('prodlot_id','<>',False)]}"
1389 states="draft,waiting,confirmed,assigned,done"
1390 context="{'default_use_exist': picking_id.type=='in'}"
1391 groups="base.group_extended"/>
1392 <field groups="base.group_extended" name="tracking_id"/>
1393 <button name="setlast_tracking" string="Put in current pack" type="object"
1394 groups="base.group_extended"
1395 icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('tracking_id','<>',False)]}"
1396 states="draft,assigned,confirmed,done"/>
1397 <button name="%(split_into)d" string="Put in a new pack" type="action"
1398 groups="base.group_extended"
1399 icon="terp-stock_effects-object-colorize"
1400 states="draft,assigned,confirmed,done"/>
1401 <field name="location_id"/>
1402 <field name="location_dest_id"/>
1403 <field name="date"/>
1404 <field name="date_expected"/>
1405 <field name="state"/>
1406 <button name="action_done" states="confirmed,assigned" string="Process" type="object" icon="gtk-go-forward"/>
1411 <!-- <menuitem id="menu_traceability_low" name="Low Level" parent="menu_traceability"/> -->
1413 <record id="view_move_form" model="ir.ui.view">
1414 <field name="name">stock.move.form</field>
1415 <field name="model">stock.move</field>
1416 <field name="type">form</field>
1417 <field eval="4" name="priority"/>
1418 <field name="arch" type="xml">
1419 <form string="Stock Moves">
1420 <group colspan="4" col="7">
1421 <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, False)"/>
1422 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1423 <field name="product_uom" string="Unit Of Measure"/>
1424 <button name="%(stock.move_scrap)d" groups="base.group_extended"
1425 string="Scrap" type="action"
1426 icon="gtk-convert" context="{'scrap': True}"
1427 states="draft,waiting,confirmed,assigned" colspan="1"/>
1429 <field name="location_id" context="{'full':True}"/>
1430 <field name="location_dest_id" context="{'full':True}"/>
1431 <field name="address_id" context="{'contact_display':'partner'}"/>
1434 <group colspan="2" col="2">
1435 <separator colspan="2" string="Move Information"/>
1436 <field name="name" string="Reason"/>
1437 <field name="product_uos_qty" groups="product.group_uos" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4"/>
1438 <field name="product_uos" groups="product.group_uos" colspan="4"/>
1441 <group colspan="2" col="2">
1442 <separator string="Picking" colspan="2" />
1443 <field name="picking_id"/>
1444 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
1447 <group colspan="2" col="2">
1448 <separator string="Dates" colspan="2" />
1449 <field name="create_date" groups="base.group_extended"/>
1450 <field name="date" groups="base.group_extended"/>
1451 <field name="date_expected"/>
1454 <group colspan="2" col="4" groups="base.group_extended">
1455 <separator string="Traceability" colspan="4" groups="base.group_extended"/>
1456 <field name="tracking_id" colspan="3" groups="base.group_extended"/>
1457 <button name="%(split_into)d" string="New pack" type="action"
1458 groups="base.group_extended"
1459 icon="terp-stock_effects-object-colorize"
1460 states="draft,assigned,confirmed" colspan="1"/>
1461 <field name="prodlot_id" groups="base.group_extended"
1462 context="{'location_id':location_id, 'product_id':product_id}"
1463 domain="[('product_id','=?',product_id)]"
1464 on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"/>
1465 <button name="%(track_line)d"
1466 groups="base.group_extended"
1467 states="draft,waiting,confirmed,assigned"
1468 string="Split" type="action" icon="terp-stock_effects-object-colorize" colspan="1"/>
1471 <separator colspan="4"/>
1472 <field name="state"/>
1473 <group col="4" colspan="2">
1474 <button name="action_cancel" states="assigned,confirmed" string="_Cancel" type="object" icon="gtk-cancel"/>
1475 <button name="action_confirm" states="draft" string="Process Later" type="object" icon="gtk-apply"/>
1476 <button name="force_assign" states="confirmed" string="Set Available" type="object" icon="gtk-yes"/>
1477 <button name="action_done" states="draft,assigned,confirmed" string="Process Now" type="object" icon="gtk-jump-to"/>
1483 <record id="view_move_search" model="ir.ui.view">
1484 <field name="name">stock.move.search</field>
1485 <field name="model">stock.move</field>
1486 <field name="type">search</field>
1487 <field eval="3" name="priority"/>
1488 <field name="arch" type="xml">
1489 <search string="Stock Moves">
1490 <group col="14" colspan="4">
1491 <filter icon="terp-go-today" string="Today" domain="[('date','<=',time.strftime('%%Y-%%m-%%d 23:59:59')),('date','>=',time.strftime('%%Y-%%m-%%d 00:00:00'))]" help="Orders processed Today or planned for Today"/>
1492 <separator orientation="vertical"/>
1493 <filter icon="terp-dialog-close" string="Done" name="done" domain="[('state','=','done')]" help="Stock moves that have been processed"/>
1494 <filter icon="terp-stock" string="Future" name="future" domain="[('state','in',('assigned','confirmed','waiting'))]" help="Stock moves that are Confirmed, Available or Waiting"/>
1495 <filter icon="terp-camera_test" string="Ready" name="ready" domain="[('state','=','assigned')]" help="Stock moves that are Available (Ready to process)"/>
1496 <separator orientation="vertical"/>
1497 <field name="product_id"/>
1498 <field name="location_id" string="Location" filter_domain="['|',('location_id','ilike',self),('location_dest_id','ilike',self)]"/>
1499 <field name="address_id" string="Partner" context="{'contact_display':'partner'}" filter_domain="[('picking_id.address_id','ilike',self)]"/>
1500 <field name="date"/>
1503 <group expand="0" string="Extended Filters..." colspan="4" col="8" groups="base.group_extended">
1504 <field name="origin"/>
1505 <field name="picking_id"/>
1506 <field name="prodlot_id"/>
1507 <field name="tracking_id"/>
1508 <field name="state"/>
1511 <group expand="0" string="Group By..." colspan="4" col="8" groups="base.group_extended">
1512 <filter string="Product" name="by_product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
1513 <filter string="Picking" name="groupby_picking_id" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'picking_id'}"/>
1514 <filter string="Lot" name="groupby_prodlot_id" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'prodlot_id'}"/>
1515 <filter string="Pack" name="groupby_tracking_id" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'tracking_id'}"/>
1516 <separator orientation="vertical"/>
1517 <filter string="Source" name="groupby_location_id" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'location_id'}"/>
1518 <filter string="Destination" name="groupby_dest_location_id" icon="terp-gtk-jump-to-ltr" domain="[]" context="{'group_by':'location_dest_id'}"/>
1519 <separator orientation="vertical"/>
1520 <filter icon="terp-stock_effects-object-colorize" string="State" domain="[]" context="{'group_by':'state'}" />
1521 <separator orientation="vertical"/>
1522 <filter string="Creation" name="groupby_create_date" icon="terp-go-month" domain="[]" context="{'group_by':'create_date'}"/>
1523 <filter string="Expected" name="groupby_date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
1529 <record id="action_move_form2" model="ir.actions.act_window">
1530 <field name="name">Stock Moves</field>
1531 <field name="res_model">stock.move</field>
1532 <field name="type">ir.actions.act_window</field>
1533 <field name="view_type">form</field>
1534 <field name="view_id" ref="view_move_tree"/>
1535 <field name="search_view_id" ref="view_move_search"/>
1536 <field name="context">{'search_default_Available':1}</field>
1537 <field name="help">This menu gives you the full traceability of inventory operations on a specific product. You can filter on the product to see all the past or future movements for the product.</field>
1539 <menuitem action="action_move_form2" id="menu_action_move_form2" parent="menu_traceability" sequence="3"/>
1541 ====================================
1542 Reception Picking (By Stock Move)
1543 ====================================
1544 <!-- from stock_partial_move_view -->
1548 <record id="view_move_tree_reception_picking" model="ir.ui.view">
1549 <field name="name">stock.move.tree2</field>
1550 <field name="model">stock.move</field>
1551 <field name="type">tree</field>
1552 <field name="priority" eval="6" />
1553 <field name="arch" type="xml">
1554 <tree colors="grey:state in ('cancel')" string="Moves">
1555 <field name="picking_id" string="Reference"/>
1556 <field name="origin"/>
1557 <field name="partner_id" string="Partner"/>
1558 <field name="product_id"/>
1559 <field name="product_qty" />
1560 <field name="product_uom" string="UoM"/>
1561 <button name="%(stock.move_scrap)d"
1562 string="Scrap Products" type="action"
1563 icon="gtk-convert" context="{'scrap': True}"
1564 states="draft,waiting,confirmed,assigned" groups="base.group_extended"/>
1565 <field name="prodlot_id" groups="base.group_extended"/>
1566 <button name="%(track_line)d" string="Split in production lots" type="action"
1567 icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('prodlot_id','<>',False)]}"
1568 states="draft,waiting,confirmed,assigned,done"
1569 context="{'default_use_exist': picking_id.type=='in'}"
1570 groups="base.group_extended"/>
1571 <field name="tracking_id" groups="base.group_extended"/>
1572 <button name="setlast_tracking" string="Put in current pack" type="object"
1573 attrs="{'invisible': [('tracking_id','<>',False)]}"
1574 groups="base.group_extended"
1575 icon="terp-stock_effects-object-colorize"
1576 states="draft,assigned,confirmed,done"/>
1577 <button name="%(split_into)d" string="Put in a new pack" type="action"
1578 groups="base.group_extended"
1579 icon="terp-stock_effects-object-colorize"
1580 states="draft,assigned,confirmed,done"/>
1581 <field name="date"/>
1582 <field name="state"/>
1583 <button name="action_assign" states="confirmed" string="Set Available" type="object" icon="gtk-yes"/>
1584 <button name="%(action_partial_move_server)d" string="Process" type="action" states="confirmed,assigned" icon="gtk-go-forward"/>
1589 <record id="view_move_tree_reception_picking_board" model="ir.ui.view">
1590 <field name="name">stock.move.tree3</field>
1591 <field name="model">stock.move</field>
1592 <field name="type">tree</field>
1593 <field eval="6" name="priority"/>
1594 <field name="arch" type="xml">
1595 <tree string="Moves">
1596 <field name="picking_id" string="Reference"/>
1597 <field name="partner_id" string="Partner"/>
1598 <field name="product_id"/>
1599 <field name="product_qty" />
1600 <field name="product_uom" string="UoM"/>
1601 <field name="date"/>
1602 <button name="action_done" states="confirmed,assigned" string="Process" type="object" icon="gtk-go-forward"/>
1608 <record id="view_move_form_reception_picking" model="ir.ui.view">
1609 <field name="name">stock.move.form2</field>
1610 <field name="model">stock.move</field>
1611 <field name="type">form</field>
1612 <field eval="6" name="priority"/>
1613 <field name="arch" type="xml">
1614 <form string="Receive Products">
1615 <group colspan="4" col="7">
1616 <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, False)"/>
1617 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1618 <field name="product_uom" string="Unit Of Measure"/>
1619 <button name="%(stock.move_scrap)d" groups="base.group_extended"
1620 string="Scrap" type="action"
1621 icon="gtk-convert" context="{'scrap': True}"
1622 states="draft,waiting,confirmed,assigned" colspan="1"/>
1624 <field name="location_id" context="{'full':True}"/>
1625 <field name="location_dest_id" context="{'full':True}"/>
1626 <field name="address_id" context="{'contact_display':'partner'}"/>
1629 <group colspan="2" col="2">
1630 <separator colspan="2" string="Move Information"/>
1631 <field name="name" string="Reason"/>
1632 <field name="product_uos_qty" groups="product.group_uos" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)" colspan="4"/>
1633 <field name="product_uos" groups="product.group_uos" colspan="4"/>
1636 <group colspan="2" col="2">
1637 <separator string="Picking" colspan="2" />
1638 <field name="picking_id"/>
1639 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
1642 <group colspan="2" col="2">
1643 <separator string="Dates" colspan="2" />
1644 <field name="create_date" groups="base.group_extended"/>
1645 <field name="date" groups="base.group_extended"/>
1646 <field name="date_expected"/>
1649 <group colspan="2" col="4" groups="base.group_extended">
1650 <separator string="Traceability" colspan="4" groups="base.group_extended"/>
1651 <field name="tracking_id" colspan="3" groups="base.group_extended"/>
1652 <button name="%(split_into)d" string="New pack" type="action"
1653 groups="base.group_extended"
1654 icon="terp-stock_effects-object-colorize"
1655 states="draft,assigned,confirmed,done" colspan="1"/>
1656 <field name="prodlot_id" groups="base.group_extended"
1657 context="{'location_id':location_id, 'product_id':product_id}"
1658 domain="[('product_id','=?',product_id)]"
1659 on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"/>
1660 <button name="%(track_line)d"
1661 groups="base.group_extended"
1662 states="draft,waiting,confirmed,assigned,done"
1663 string="Split" type="action" icon="terp-stock_effects-object-colorize" colspan="1"/>
1666 <separator colspan="4"/>
1667 <field name="state"/>
1668 <group col="5" colspan="2">
1669 <button name="action_cancel" states="assigned,confirmed" string="_Cancel" type="object" icon="gtk-cancel"/>
1670 <button name="action_confirm" states="draft" string="Process Later" type="object" icon="gtk-apply"/>
1671 <button name="force_assign" states="confirmed" string="Set Available" type="object" icon="gtk-yes"/>
1672 <button name="%(action_partial_move_server)d" string="Process" type="action" states="assigned" icon="gtk-go-forward"/>
1678 <record id="view_move_search_reception_incoming_picking" model="ir.ui.view">
1679 <field name="name">stock.move.incoming.search2</field>
1680 <field name="model">stock.move</field>
1681 <field name="type">search</field>
1682 <field eval="6" name="priority"/>
1683 <field name="arch" type="xml">
1684 <search string="Stock Moves">
1685 <group col="8" colspan="4">
1686 <filter icon="terp-go-today" string="Today" domain="[('date','<=',time.strftime('%%Y-%%m-%%d 23:59:59')),('date','>=',time.strftime('%%Y-%%m-%%d 00:00:00'))]" help="Orders planned for today"/>
1687 <separator orientation="vertical"/>
1688 <filter icon="terp-gtk-go-back-rtl" name="receive" string="To Do" domain="[('state','in',('confirmed','assigned'))]" help="Stock to be received"/>
1689 <filter icon="terp-dialog-close" name="received" string="Done" domain="[('state','=','done')]"/>
1690 <separator orientation="vertical"/>
1691 <field name="origin"/>
1692 <field name="partner_id" string="Partner"/>
1693 <field name="product_id"/>
1696 <group expand="0" string="Extended Filters..." groups="base.group_extended">
1697 <field name="tracking_id" context="{'tracking': self}"/>
1698 <field name="prodlot_id"/>
1701 <group expand="0" string="Group By..." colspan="4" col="8" groups="base.group_extended">
1702 <filter string="Supplier" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
1703 <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
1704 <separator orientation="vertical"/>
1705 <filter string="Order" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'origin'}"/>
1706 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1707 <separator orientation="vertical"/>
1708 <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}" />
1714 <record id="view_move_search_reception_outcoming_picking" model="ir.ui.view">
1715 <field name="name">stock.move.outgoing.search2</field>
1716 <field name="model">stock.move</field>
1717 <field name="type">search</field>
1718 <field eval="6" name="priority"/>
1719 <field name="arch" type="xml">
1720 <search string="Stock Moves">
1721 <group col="8" colspan="4">
1722 <filter icon="terp-go-today" string="Today" domain="[('date','<=',time.strftime('%%Y-%%m-%%d 23:59:59')),('date','>=',time.strftime('%%Y-%%m-%%d 00:00:00'))]" help="Orders planned for today"/>
1723 <separator orientation="vertical"/>
1724 <filter icon="terp-gtk-go-back-rtl" name="receive" string="To Do" domain="[('state','in',('confirmed','assigned'))]" help="Stock to be delivered (available or not)"/>
1725 <filter icon="terp-check" name="available" string="Available" domain="[('state','in',('assigned',))]" help="Stock available to be delivered"/>
1726 <filter icon="terp-dialog-close" name="received" string="Done" domain="[('state','=','done')]"/>
1727 <separator orientation="vertical"/>
1728 <field name="origin"/>
1729 <field name="partner_id" string="Partner"/>
1730 <field name="product_id"/>
1733 <group expand="0" string="Extended Filters..." groups="base.group_extended">
1734 <field name="tracking_id" context="{'tracking_id': self}"/>
1735 <field name="prodlot_id"/>
1738 <group expand="0" string="Group By..." colspan="4" col="8" groups="base.group_extended">
1739 <filter string="Customer" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
1740 <separator orientation="vertical"/>
1741 <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
1742 <filter string="Order" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'origin'}"/>
1743 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1744 <separator orientation="vertical"/>
1745 <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}" />
1751 <record id="action_reception_picking_move" model="ir.actions.act_window">
1752 <field name="name">Receive Products</field>
1753 <field name="res_model">stock.move</field>
1754 <field name="type">ir.actions.act_window</field>
1755 <field name="view_type">form</field>
1756 <field name="view_mode">tree,form</field>
1757 <field name="domain">['|','&',('picking_id','=',False),('location_id.usage', 'in', ['customer','supplier']),'&',('picking_id','!=',False),('picking_id.type','=','in')]</field>
1758 <field name="view_id" ref="view_move_tree_reception_picking"/>
1759 <field name="context" eval="'{\'search_default_receive\':1, \'product_receive\' : True, \'default_location_id\':%d, \'default_location_dest_id\':%d}' % (ref('stock_location_suppliers'),ref('stock_location_stock') )"/>
1760 <field name="search_view_id" ref="view_move_search_reception_incoming_picking"/>
1761 <field name="help">Here you can receive individual products, no matter what purchase order or picking order they come from. You will find the list of all products you are waiting for. Once you receive an order, you can filter based on the name of the supplier or the purchase order reference. Then you can confirm all products received using the buttons on the right of each line.</field>
1764 <record model="ir.actions.act_window.view" id="action_move_reception_picking_tree">
1765 <field name="sequence" eval="1"/>
1766 <field name="view_mode">tree</field>
1767 <field name="view_id" ref="view_move_tree_reception_picking"/>
1768 <field name="act_window_id" ref="action_reception_picking_move"/>
1770 <record model="ir.actions.act_window.view" id="action_move_reception_picking_form">
1771 <field name="sequence" eval="2"/>
1772 <field name="view_mode">form</field>
1773 <field name="view_id" ref="view_move_form_reception_picking"/>
1774 <field name="act_window_id" ref="action_reception_picking_move"/>
1777 # -------------------------------------------------------------
1779 # -------------------------------------------------------------
1780 <record id="view_incoterms_tree" model="ir.ui.view">
1781 <field name="name">stock.incoterms.tree</field>
1782 <field name="model">stock.incoterms</field>
1783 <field name="type">tree</field>
1784 <field name="arch" type="xml">
1785 <tree string="Incoterms">
1786 <field name="code"/>
1787 <field colspan="4" name="name"/>
1791 <record id="stock_incoterms_form" model="ir.ui.view">
1792 <field name="name">stock.incoterms.form</field>
1793 <field name="model">stock.incoterms</field>
1794 <field name="type">form</field>
1795 <field name="arch" type="xml">
1796 <form string="Incoterms">
1797 <field colspan="4" name="name" select="1"/>
1798 <field name="code" select="1"/>
1799 <field name="active" select="1"/>
1803 <record id="action_incoterms_tree" model="ir.actions.act_window">
1804 <field name="name">Incoterms</field>
1805 <field name="res_model">stock.incoterms</field>
1806 <field name="type">ir.actions.act_window</field>
1807 <field name="view_type">form</field>
1808 <field name="view_mode">tree,form</field>
1811 <menuitem action="action_incoterms_tree" id="menu_action_incoterm_open" parent="menu_warehouse_config" sequence="7"/>
1814 context="{'location': active_id}"
1815 domain="[('type','<>','service')]"
1816 id="act_product_location_open"
1818 res_model="product.product"
1819 src_model="stock.location"/>
1822 context="{'search_default_done': 1,'search_default_product_id': [active_id], 'default_product_id': active_id}"
1823 id="act_product_stock_move_open"
1825 res_model="stock.move"
1826 src_model="product.product"/>
1829 domain="[('move_lines','=',active_id)]"
1830 id="act_relate_picking"
1831 name="Related Picking"
1832 res_model="stock.picking"
1833 src_model="stock.move"/>
1836 context="{'search_default_future': 1,'search_default_product_id': [active_id], 'default_product_id': active_id}"
1837 domain="[('state','in',('waiting','confirmed','assigned'))]"
1838 id="act_product_stock_move_futur_open"
1839 name="Future Stock Moves"
1840 res_model="stock.move"
1841 src_model="product.product"
1842 groups="base.group_extended"/>
1844 <record id="ir_act_product_location_open" model="ir.values">
1845 <field name="key2">tree_but_open</field>
1846 <field name="model">stock.location</field>
1847 <field name="name">Products</field>
1848 <field eval="'ir.actions.act_window,%d'%act_product_location_open" name="value"/>
1849 <field eval="True" name="object"/>
1853 <record id="ir_act_product_location_open" model="ir.values">
1854 <field name="key2">tree_but_open</field>
1855 <field name="model">stock.location</field>
1856 <field name="name">Open Products</field>
1857 <field eval="'ir.actions.act_window,%d'%action_view_stock_location_product" name="value"/>
1858 <field eval="True" name="object"/>
1860 <record id="action_picking_tree_out" model="ir.actions.act_window">
1861 <field name="name">Customers Packings</field>
1862 <field name="res_model">stock.picking</field>
1863 <field name="type">ir.actions.act_window</field>
1864 <field name="view_type">form</field>
1865 <field name="view_mode">tree,form,calendar</field>
1866 <field name="domain">[('type','=','out')]</field>
1867 <field name="context">{'contact_display': 'partner',"search_default_available":1}</field>
1868 <field name="search_view_id" ref="view_picking_in_search"/>
1870 <record id="action_invoice_tree5_out" model="ir.actions.act_window.view">
1871 <field eval="1" name="sequence"/>
1872 <field name="view_mode">tree</field>
1873 <field name="view_id" ref="view_picking_in_tree"/>
1874 <field name="act_window_id" ref="action_picking_tree_out"/>
1876 <record id="action_invoice_tree5_view2_out" model="ir.actions.act_window.view">
1877 <field eval="2" name="sequence"/>
1878 <field name="view_mode">form</field>
1879 <field name="view_id" ref="view_picking_in_form"/>
1880 <field name="act_window_id" ref="action_picking_tree_out"/>
1882 <record id="action_invoice_tree5_viewout_cal" model="ir.actions.act_window.view">
1883 <field eval="3" name="sequence"/>
1884 <field name="view_mode">calendar</field>
1885 <field name="act_window_id" ref="action_picking_tree_out"/>
1888 <record id="action_out_picking_move" model="ir.actions.act_window">
1889 <field name="name">Deliver Products</field>
1890 <field name="res_model">stock.move</field>
1891 <field name="type">ir.actions.act_window</field>
1892 <field name="view_type">form</field>
1893 <field name="view_mode">tree,form</field>
1894 <field name="domain">['|','&',('picking_id','=',False),('location_dest_id.usage', 'in', ['customer','supplier']),'&',('picking_id','!=',False),('picking_id.type','=','out')]</field>
1895 <field name="view_id" ref="view_move_tree_reception_picking"/>
1896 <field name="context" eval="'{\'search_default_receive\':1, \'default_location_id\':%d, \'default_location_dest_id\':%d}' % (ref('stock_location_stock'),ref('stock_location_customers'))"/>
1897 <field name="search_view_id" ref="view_move_search_reception_outcoming_picking"/>
1898 <field name="help">You will find in this list all products you have to deliver to your customers. You can process the deliveries directly from this list using the buttons on the right of each line. You can filter the products to deliver by customer, products or sale order (using the Origin field).</field>
1901 <record model="ir.actions.act_window.view" id="action_move_out_picking_tree">
1902 <field name="sequence" eval="1"/>
1903 <field name="view_mode">tree</field>
1904 <field name="view_id" ref="view_move_tree_reception_picking"/>
1905 <field name="act_window_id" ref="action_out_picking_move"/>
1907 <record model="ir.actions.act_window.view" id="action_move_out_picking_form">
1908 <field name="sequence" eval="2"/>
1909 <field name="view_mode">form</field>
1910 <field name="view_id" ref="view_move_form"/>
1911 <field name="act_window_id" ref="action_out_picking_move"/>
1914 <menuitem action="action_reception_picking_move" id="menu_action_pdct_in" parent="menu_stock_products_moves" sequence="1"/>
1915 <menuitem action="action_out_picking_move" id="menu_action_pdct_out" parent="menu_stock_products_moves" sequence="2"/>
1918 <record id="view_stock_journal_filter" model="ir.ui.view">
1919 <field name="name">stock.journal.filter</field>
1920 <field name="model">stock.journal</field>
1921 <field name="type">search</field>
1922 <field name="arch" type="xml">
1923 <search string="Stock Journal">
1924 <field name="name"/>
1925 <field name="user_id"/>
1929 <record model="ir.ui.view" id="view_stock_journal_tree">
1930 <field name="name">Stock Journals</field>
1931 <field name="model">stock.journal</field>
1932 <field name="type">tree</field>
1933 <field name="arch" type="xml">
1934 <tree string="Stock Journal">
1935 <field name="name"/>
1936 <field name="user_id"/>
1940 <record model="ir.ui.view" id="view_stock_journal_form">
1941 <field name="name">Stock Journals</field>
1942 <field name="model">stock.journal</field>
1943 <field name="type">form</field>
1944 <field name="arch" type="xml">
1945 <form string="Stock Journal">
1946 <field name="name"/>
1947 <field name="user_id"/>
1951 <record id="action_stock_journal_form" model="ir.actions.act_window">
1952 <field name="name">Stock Journals</field>
1953 <field name="res_model">stock.journal</field>
1954 <field name="type">ir.actions.act_window</field>
1955 <field name="view_type">form</field>
1956 <field name="help">The stock journal system allows you to assign each stock operation to a specific journal according to the type of operation to perform or the worker/team that should perform the operation. Examples of stock journals may be: quality control, pick lists, packing, etc.</field>
1959 action="action_stock_journal_form"
1960 id="menu_action_stock_journal_form"
1961 groups="base.group_extended"
1962 parent="menu_warehouse_config" />