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 <filter string="To invoice" name="to_invoice" icon="terp-dolar" domain="[('invoice_state', '=', '2binvoiced')]" />
1251 <separator orientation="vertical"/>
1252 <field name="name"/>
1253 <field name="partner_id"/>
1254 <field name="origin"/>
1255 <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
1256 <field name="company_id" widget="selection" groups="base.group_multi_company" />
1259 <group expand="0" string="Group By..." colspan="4" col="8">
1260 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
1261 <separator orientation="vertical" />
1262 <filter icon="terp-stock_effects-object-colorize" name="state" string="State" domain="[]" context="{'group_by':'state'}"/>
1263 <separator orientation="vertical" />
1264 <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
1265 <filter string="Expected Date" icon="terp-go-month" domain="[]" context="{'group_by':'min_date'}"/>
1266 <separator orientation="vertical" />
1267 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}" groups="base.group_extended"/>
1274 <record id="action_picking_tree4" model="ir.actions.act_window">
1275 <field name="name">Incoming Shipments</field>
1276 <field name="res_model">stock.picking</field>
1277 <field name="type">ir.actions.act_window</field>
1278 <field name="view_type">form</field>
1279 <field name="view_mode">tree,form,calendar</field>
1280 <field name="domain">[('type','=','in')]</field>
1281 <field name="context">{'contact_display': 'partner_address',"search_default_available":1}</field>
1282 <field name="search_view_id" ref="view_picking_in_search"/>
1283 <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>
1285 <record id="action_invoice_tree5_view1" model="ir.actions.act_window.view">
1286 <field eval="1" name="sequence"/>
1287 <field name="view_mode">tree</field>
1288 <field name="view_id" ref="view_picking_in_tree"/>
1289 <field name="act_window_id" ref="action_picking_tree4"/>
1291 <record id="action_invoice_tree5_view2" model="ir.actions.act_window.view">
1292 <field eval="2" name="sequence"/>
1293 <field name="view_mode">form</field>
1294 <field name="view_id" ref="view_picking_in_form"/>
1295 <field name="act_window_id" ref="action_picking_tree4"/>
1297 <record id="action_invoice_tree5_view2_cal" model="ir.actions.act_window.view">
1298 <field eval="3" name="sequence"/>
1299 <field name="view_mode">calendar</field>
1300 <field name="act_window_id" ref="action_picking_tree4"/>
1302 <menuitem action="action_picking_tree4" id="menu_action_picking_tree4" parent="menu_stock_warehouse_mgmt" sequence="1"/>
1304 <record id="view_picking_internal_search" model="ir.ui.view">
1305 <field name="name">stock.picking.internal.search</field>
1306 <field name="model">stock.picking</field>
1307 <field name="type">search</field>
1308 <field name="arch" type="xml">
1309 <search string="Internal Picking List">
1310 <group col="8" colspan="4">
1311 <filter icon="terp-check" string="Available" domain="[('state','=','assigned')]" help="Assigned Internal Moves"/>
1312 <filter icon="terp-camera_test" name="confirmed" string="Confirmed" domain="[('state','=','confirmed')]" help="Confirmed Internal Moves" />
1313 <separator orientation="vertical"/>
1314 <field name="name"/>
1315 <field name="origin"/>
1316 <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
1317 <field name="company_id" widget="selection"/>
1320 <group expand="0" string="Group By..." colspan="4" col="8">
1321 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1322 <separator orientation="vertical"/>
1323 <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
1324 <filter string="Expected Date" icon="terp-go-month" domain="[]" context="{'group_by':'min_date'}"/>
1325 <separator orientation="vertical"/>
1326 <filter string="Origin" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'origin'}"/>
1327 <separator orientation="vertical" />
1328 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}" groups="base.group_extended"/>
1334 <record id="action_picking_tree6" model="ir.actions.act_window">
1335 <field name="name">Internal Moves</field>
1336 <field name="res_model">stock.picking</field>
1337 <field name="type">ir.actions.act_window</field>
1338 <field name="view_type">form</field>
1339 <field name="view_mode">tree,form,calendar</field>
1340 <field name="domain">[('type','=','internal')]</field>
1341 <field name="context">{'contact_display': 'partner_address',"search_default_available":1}</field>
1342 <field name="search_view_id" ref="view_picking_internal_search"/>
1343 <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>
1346 <record model="ir.actions.act_window.view" id="action_picking_tree6_tree_view">
1347 <field name="sequence" eval="1"/>
1348 <field name="view_mode">tree</field>
1349 <field name="view_id" ref="vpicktree"/>
1350 <field name="act_window_id" ref="action_picking_tree6"/>
1352 <record model="ir.actions.act_window.view" id="action_picking_tree6_form_view">
1353 <field name="sequence" eval="2"/>
1354 <field name="view_mode">form</field>
1355 <field name="view_id" ref="view_picking_form"/>
1356 <field name="act_window_id" ref="action_picking_tree6"/>
1361 <menuitem action="action_picking_tree6" id="menu_action_picking_tree6" parent="menu_stock_warehouse_mgmt" sequence="2"/>
1363 <record id="view_move_tree" model="ir.ui.view">
1364 <field name="name">stock.move.tree</field>
1365 <field name="model">stock.move</field>
1366 <field name="type">tree</field>
1367 <field eval="6" name="priority"/>
1368 <field name="arch" type="xml">
1369 <tree colors="grey:state in ('cancel');red:(state not in ('cancel','done')) and date > current_date" string="Moves" editable="top">
1370 <field name="name"/>
1371 <field name="picking_id" string="Reference"/>
1372 <field name="origin"/>
1373 <field name="create_date" invisible="1"/>
1374 <field name="partner_id"/>
1375 <field name="product_id"/>
1376 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1377 <field name="product_uom" string="UoM"/>
1378 <field name="product_uos" groups="product.group_uos"/>
1379 <button name="%(stock.move_scrap)d"
1380 string="Scrap Products" type="action"
1381 icon="gtk-convert" context="{'scrap': True}"
1382 states="draft,waiting,confirmed,assigned"
1383 groups="base.group_extended"/>
1384 <field name="prodlot_id" groups="base.group_extended"/>
1385 <button name="%(track_line)d" string="Split in production lots" type="action"
1386 icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('prodlot_id','<>',False)]}"
1387 states="draft,waiting,confirmed,assigned,done"
1388 context="{'default_use_exist': picking_id.type=='in'}"
1389 groups="base.group_extended"/>
1390 <field groups="base.group_extended" name="tracking_id"/>
1391 <button name="setlast_tracking" string="Put in current pack" type="object"
1392 groups="base.group_extended"
1393 icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('tracking_id','<>',False)]}"
1394 states="draft,assigned,confirmed,done"/>
1395 <button name="%(split_into)d" string="Put in a new pack" type="action"
1396 groups="base.group_extended"
1397 icon="terp-stock_effects-object-colorize"
1398 states="draft,assigned,confirmed,done"/>
1399 <field name="location_id"/>
1400 <field name="location_dest_id"/>
1401 <field name="date"/>
1402 <field name="date_expected"/>
1403 <field name="state"/>
1404 <button name="action_done" states="confirmed,assigned" string="Process" type="object" icon="gtk-go-forward"/>
1409 <!-- <menuitem id="menu_traceability_low" name="Low Level" parent="menu_traceability"/> -->
1411 <record id="view_move_form" model="ir.ui.view">
1412 <field name="name">stock.move.form</field>
1413 <field name="model">stock.move</field>
1414 <field name="type">form</field>
1415 <field eval="4" name="priority"/>
1416 <field name="arch" type="xml">
1417 <form string="Stock Moves">
1418 <group colspan="4" col="7">
1419 <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, False)"/>
1420 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1421 <field name="product_uom" string="Unit Of Measure"/>
1422 <button name="%(stock.move_scrap)d" groups="base.group_extended"
1423 string="Scrap" type="action"
1424 icon="gtk-convert" context="{'scrap': True}"
1425 states="draft,waiting,confirmed,assigned" colspan="1"/>
1427 <field name="location_id" context="{'full':True}"/>
1428 <field name="location_dest_id" context="{'full':True}"/>
1429 <field name="address_id" context="{'contact_display':'partner'}"/>
1432 <group colspan="2" col="2">
1433 <separator colspan="2" string="Move Information"/>
1434 <field name="name" string="Reason"/>
1435 <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"/>
1436 <field name="product_uos" groups="product.group_uos" colspan="4"/>
1439 <group colspan="2" col="2">
1440 <separator string="Picking" colspan="2" />
1441 <field name="picking_id"/>
1442 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
1445 <group colspan="2" col="2">
1446 <separator string="Dates" colspan="2" />
1447 <field name="create_date" groups="base.group_extended"/>
1448 <field name="date" groups="base.group_extended"/>
1449 <field name="date_expected"/>
1452 <group colspan="2" col="4" groups="base.group_extended">
1453 <separator string="Traceability" colspan="4" groups="base.group_extended"/>
1454 <field name="tracking_id" colspan="3" groups="base.group_extended"/>
1455 <button name="%(split_into)d" string="New pack" type="action"
1456 groups="base.group_extended"
1457 icon="terp-stock_effects-object-colorize"
1458 states="draft,assigned,confirmed" colspan="1"/>
1459 <field name="prodlot_id" groups="base.group_extended"
1460 context="{'location_id':location_id, 'product_id':product_id}"
1461 domain="[('product_id','=?',product_id)]"
1462 on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"/>
1463 <button name="%(track_line)d"
1464 groups="base.group_extended"
1465 states="draft,waiting,confirmed,assigned"
1466 string="Split" type="action" icon="terp-stock_effects-object-colorize" colspan="1"/>
1469 <separator colspan="4"/>
1470 <field name="state"/>
1471 <group col="4" colspan="2">
1472 <button name="action_cancel" states="assigned,confirmed" string="_Cancel" type="object" icon="gtk-cancel"/>
1473 <button name="action_confirm" states="draft" string="Process Later" type="object" icon="gtk-apply"/>
1474 <button name="force_assign" states="confirmed" string="Set Available" type="object" icon="gtk-yes"/>
1475 <button name="action_done" states="draft,assigned,confirmed" string="Process Now" type="object" icon="gtk-jump-to"/>
1481 <record id="view_move_search" model="ir.ui.view">
1482 <field name="name">stock.move.search</field>
1483 <field name="model">stock.move</field>
1484 <field name="type">search</field>
1485 <field eval="3" name="priority"/>
1486 <field name="arch" type="xml">
1487 <search string="Stock Moves">
1488 <group col="14" colspan="4">
1489 <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"/>
1490 <separator orientation="vertical"/>
1491 <filter icon="terp-dialog-close" string="Done" name="done" domain="[('state','=','done')]" help="Stock moves that have been processed"/>
1492 <filter icon="terp-stock" string="Future" name="future" domain="[('state','in',('assigned','confirmed','waiting'))]" help="Stock moves that are Confirmed, Available or Waiting"/>
1493 <filter icon="terp-camera_test" string="Ready" name="ready" domain="[('state','=','assigned')]" help="Stock moves that are Available (Ready to process)"/>
1494 <separator orientation="vertical"/>
1495 <field name="product_id"/>
1496 <field name="location_id" string="Location" filter_domain="['|',('location_id','ilike',self),('location_dest_id','ilike',self)]"/>
1497 <field name="address_id" string="Partner" context="{'contact_display':'partner'}" filter_domain="[('picking_id.address_id','ilike',self)]"/>
1498 <field name="date"/>
1499 <field name="origin"/>
1500 <field name="prodlot_id"/>
1503 <group expand="0" string="Group By..." colspan="4" col="8" groups="base.group_extended">
1504 <filter string="Product" name="by_product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
1505 <filter string="Picking" name="groupby_picking_id" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'picking_id'}"/>
1506 <filter string="Lot" name="groupby_prodlot_id" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'prodlot_id'}"/>
1507 <filter string="Pack" name="groupby_tracking_id" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'tracking_id'}"/>
1508 <separator orientation="vertical"/>
1509 <filter string="Source" name="groupby_location_id" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'location_id'}"/>
1510 <filter string="Destination" name="groupby_dest_location_id" icon="terp-gtk-jump-to-ltr" domain="[]" context="{'group_by':'location_dest_id'}"/>
1511 <separator orientation="vertical"/>
1512 <filter icon="terp-stock_effects-object-colorize" string="State" domain="[]" context="{'group_by':'state'}" />
1513 <separator orientation="vertical"/>
1514 <filter string="Creation" name="groupby_create_date" icon="terp-go-month" domain="[]" context="{'group_by':'create_date'}"/>
1515 <filter string="Expected" name="groupby_date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
1521 <record id="action_move_form2" model="ir.actions.act_window">
1522 <field name="name">Stock Moves</field>
1523 <field name="res_model">stock.move</field>
1524 <field name="type">ir.actions.act_window</field>
1525 <field name="view_type">form</field>
1526 <field name="view_id" ref="view_move_tree"/>
1527 <field name="search_view_id" ref="view_move_search"/>
1528 <field name="context">{'search_default_Available':1}</field>
1529 <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>
1531 <menuitem action="action_move_form2" id="menu_action_move_form2" parent="menu_traceability" sequence="3"/>
1533 ====================================
1534 Reception Picking (By Stock Move)
1535 ====================================
1536 <!-- from stock_partial_move_view -->
1540 <record id="view_move_tree_reception_picking" model="ir.ui.view">
1541 <field name="name">stock.move.tree2</field>
1542 <field name="model">stock.move</field>
1543 <field name="type">tree</field>
1544 <field name="priority" eval="6" />
1545 <field name="arch" type="xml">
1546 <tree colors="grey:state in ('cancel')" string="Moves">
1547 <field name="picking_id" string="Reference"/>
1548 <field name="origin"/>
1549 <field name="partner_id" string="Partner"/>
1550 <field name="product_id"/>
1551 <field name="product_qty" />
1552 <field name="product_uom" string="UoM"/>
1553 <button name="%(stock.move_scrap)d"
1554 string="Scrap Products" type="action"
1555 icon="gtk-convert" context="{'scrap': True}"
1556 states="draft,waiting,confirmed,assigned" groups="base.group_extended"/>
1557 <field name="prodlot_id" groups="base.group_extended"/>
1558 <button name="%(track_line)d" string="Split in production lots" type="action"
1559 icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('prodlot_id','<>',False)]}"
1560 states="draft,waiting,confirmed,assigned,done"
1561 context="{'default_use_exist': picking_id.type=='in'}"
1562 groups="base.group_extended"/>
1563 <field name="tracking_id" groups="base.group_extended"/>
1564 <button name="setlast_tracking" string="Put in current pack" type="object"
1565 attrs="{'invisible': [('tracking_id','<>',False)]}"
1566 groups="base.group_extended"
1567 icon="terp-stock_effects-object-colorize"
1568 states="draft,assigned,confirmed,done"/>
1569 <button name="%(split_into)d" string="Put in a new pack" type="action"
1570 groups="base.group_extended"
1571 icon="terp-stock_effects-object-colorize"
1572 states="draft,assigned,confirmed,done"/>
1573 <field name="date"/>
1574 <field name="state"/>
1575 <button name="action_assign" states="confirmed" string="Set Available" type="object" icon="gtk-yes"/>
1576 <button name="%(action_partial_move_server)d" string="Process" type="action" states="confirmed,assigned" icon="gtk-go-forward"/>
1581 <record id="view_move_tree_reception_picking_board" model="ir.ui.view">
1582 <field name="name">stock.move.tree3</field>
1583 <field name="model">stock.move</field>
1584 <field name="type">tree</field>
1585 <field eval="6" name="priority"/>
1586 <field name="arch" type="xml">
1587 <tree string="Moves">
1588 <field name="picking_id" string="Reference"/>
1589 <field name="partner_id" string="Partner"/>
1590 <field name="product_id"/>
1591 <field name="product_qty" />
1592 <field name="product_uom" string="UoM"/>
1593 <field name="date"/>
1594 <button name="action_done" states="confirmed,assigned" string="Process" type="object" icon="gtk-go-forward"/>
1600 <record id="view_move_form_reception_picking" model="ir.ui.view">
1601 <field name="name">stock.move.form2</field>
1602 <field name="model">stock.move</field>
1603 <field name="type">form</field>
1604 <field eval="6" name="priority"/>
1605 <field name="arch" type="xml">
1606 <form string="Receive Products">
1607 <group colspan="4" col="7">
1608 <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, False)"/>
1609 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1610 <field name="product_uom" string="Unit Of Measure"/>
1611 <button name="%(stock.move_scrap)d" groups="base.group_extended"
1612 string="Scrap" type="action"
1613 icon="gtk-convert" context="{'scrap': True}"
1614 states="draft,waiting,confirmed,assigned" colspan="1"/>
1616 <field name="location_id" context="{'full':True}"/>
1617 <field name="location_dest_id" context="{'full':True}"/>
1618 <field name="address_id" context="{'contact_display':'partner'}"/>
1621 <group colspan="2" col="2">
1622 <separator colspan="2" string="Move Information"/>
1623 <field name="name" string="Reason"/>
1624 <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"/>
1625 <field name="product_uos" groups="product.group_uos" colspan="4"/>
1628 <group colspan="2" col="2">
1629 <separator string="Picking" colspan="2" />
1630 <field name="picking_id"/>
1631 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
1634 <group colspan="2" col="2">
1635 <separator string="Dates" colspan="2" />
1636 <field name="create_date" groups="base.group_extended"/>
1637 <field name="date" groups="base.group_extended"/>
1638 <field name="date_expected"/>
1641 <group colspan="2" col="4" groups="base.group_extended">
1642 <separator string="Traceability" colspan="4" groups="base.group_extended"/>
1643 <field name="tracking_id" colspan="3" groups="base.group_extended"/>
1644 <button name="%(split_into)d" string="New pack" type="action"
1645 groups="base.group_extended"
1646 icon="terp-stock_effects-object-colorize"
1647 states="draft,assigned,confirmed,done" colspan="1"/>
1648 <field name="prodlot_id" groups="base.group_extended"
1649 context="{'location_id':location_id, 'product_id':product_id}"
1650 domain="[('product_id','=?',product_id)]"
1651 on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"/>
1652 <button name="%(track_line)d"
1653 groups="base.group_extended"
1654 states="draft,waiting,confirmed,assigned,done"
1655 string="Split" type="action" icon="terp-stock_effects-object-colorize" colspan="1"/>
1658 <separator colspan="4"/>
1659 <field name="state"/>
1660 <group col="5" colspan="2">
1661 <button name="action_cancel" states="assigned,confirmed" string="_Cancel" type="object" icon="gtk-cancel"/>
1662 <button name="action_confirm" states="draft" string="Process Later" type="object" icon="gtk-apply"/>
1663 <button name="force_assign" states="confirmed" string="Set Available" type="object" icon="gtk-yes"/>
1664 <button name="%(action_partial_move_server)d" string="Process" type="action" states="assigned" icon="gtk-go-forward"/>
1670 <record id="view_move_search_reception_incoming_picking" model="ir.ui.view">
1671 <field name="name">stock.move.incoming.search2</field>
1672 <field name="model">stock.move</field>
1673 <field name="type">search</field>
1674 <field eval="6" name="priority"/>
1675 <field name="arch" type="xml">
1676 <search string="Stock Moves">
1677 <group col="8" colspan="4">
1678 <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"/>
1679 <separator orientation="vertical"/>
1680 <filter icon="terp-gtk-go-back-rtl" name="receive" string="To Do" domain="[('state','in',('confirmed','assigned'))]" help="Stock to be received"/>
1681 <filter icon="terp-dialog-close" name="received" string="Done" domain="[('state','=','done')]"/>
1682 <separator orientation="vertical"/>
1683 <field name="origin"/>
1684 <field name="partner_id" string="Partner"/>
1685 <field name="product_id"/>
1686 <field name="prodlot_id"/>
1689 <group expand="0" string="Group By..." colspan="4" col="8" groups="base.group_extended">
1690 <filter string="Supplier" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
1691 <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
1692 <separator orientation="vertical"/>
1693 <filter string="Order" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'origin'}"/>
1694 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1695 <separator orientation="vertical"/>
1696 <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}" />
1702 <record id="view_move_search_reception_outcoming_picking" model="ir.ui.view">
1703 <field name="name">stock.move.outgoing.search2</field>
1704 <field name="model">stock.move</field>
1705 <field name="type">search</field>
1706 <field eval="6" name="priority"/>
1707 <field name="arch" type="xml">
1708 <search string="Stock Moves">
1709 <group col="8" colspan="4">
1710 <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"/>
1711 <separator orientation="vertical"/>
1712 <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)"/>
1713 <filter icon="terp-check" name="available" string="Available" domain="[('state','in',('assigned',))]" help="Stock available to be delivered"/>
1714 <filter icon="terp-dialog-close" name="received" string="Done" domain="[('state','=','done')]"/>
1715 <separator orientation="vertical"/>
1716 <field name="origin"/>
1717 <field name="partner_id" string="Partner"/>
1718 <field name="product_id"/>
1719 <field name="prodlot_id"/>
1722 <group expand="0" string="Group By..." colspan="4" col="8" groups="base.group_extended">
1723 <filter string="Customer" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
1724 <separator orientation="vertical"/>
1725 <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
1726 <filter string="Order" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'origin'}"/>
1727 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1728 <separator orientation="vertical"/>
1729 <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}" />
1735 <record id="action_reception_picking_move" model="ir.actions.act_window">
1736 <field name="name">Receive Products</field>
1737 <field name="res_model">stock.move</field>
1738 <field name="type">ir.actions.act_window</field>
1739 <field name="view_type">form</field>
1740 <field name="view_mode">tree,form</field>
1741 <field name="domain">['|','&',('picking_id','=',False),('location_id.usage', 'in', ['customer','supplier']),'&',('picking_id','!=',False),('picking_id.type','=','in')]</field>
1742 <field name="view_id" ref="view_move_tree_reception_picking"/>
1743 <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') )"/>
1744 <field name="search_view_id" ref="view_move_search_reception_incoming_picking"/>
1745 <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>
1748 <record model="ir.actions.act_window.view" id="action_move_reception_picking_tree">
1749 <field name="sequence" eval="1"/>
1750 <field name="view_mode">tree</field>
1751 <field name="view_id" ref="view_move_tree_reception_picking"/>
1752 <field name="act_window_id" ref="action_reception_picking_move"/>
1754 <record model="ir.actions.act_window.view" id="action_move_reception_picking_form">
1755 <field name="sequence" eval="2"/>
1756 <field name="view_mode">form</field>
1757 <field name="view_id" ref="view_move_form_reception_picking"/>
1758 <field name="act_window_id" ref="action_reception_picking_move"/>
1761 # -------------------------------------------------------------
1763 # -------------------------------------------------------------
1764 <record id="view_incoterms_tree" model="ir.ui.view">
1765 <field name="name">stock.incoterms.tree</field>
1766 <field name="model">stock.incoterms</field>
1767 <field name="type">tree</field>
1768 <field name="arch" type="xml">
1769 <tree string="Incoterms">
1770 <field name="code"/>
1771 <field colspan="4" name="name"/>
1775 <record id="stock_incoterms_form" model="ir.ui.view">
1776 <field name="name">stock.incoterms.form</field>
1777 <field name="model">stock.incoterms</field>
1778 <field name="type">form</field>
1779 <field name="arch" type="xml">
1780 <form string="Incoterms">
1781 <field colspan="4" name="name" select="1"/>
1782 <field name="code" select="1"/>
1783 <field name="active" select="1"/>
1787 <record id="action_incoterms_tree" model="ir.actions.act_window">
1788 <field name="name">Incoterms</field>
1789 <field name="res_model">stock.incoterms</field>
1790 <field name="type">ir.actions.act_window</field>
1791 <field name="view_type">form</field>
1792 <field name="view_mode">tree,form</field>
1795 <menuitem action="action_incoterms_tree" id="menu_action_incoterm_open" parent="menu_warehouse_config" sequence="7"/>
1798 context="{'location': active_id}"
1799 domain="[('type','<>','service')]"
1800 id="act_product_location_open"
1802 res_model="product.product"
1803 src_model="stock.location"/>
1806 context="{'search_default_done': 1,'search_default_product_id': [active_id], 'default_product_id': active_id}"
1807 id="act_product_stock_move_open"
1809 res_model="stock.move"
1810 src_model="product.product"/>
1813 domain="[('move_lines','=',active_id)]"
1814 id="act_relate_picking"
1815 name="Related Picking"
1816 res_model="stock.picking"
1817 src_model="stock.move"/>
1820 context="{'search_default_future': 1,'search_default_product_id': [active_id], 'default_product_id': active_id}"
1821 domain="[('state','in',('waiting','confirmed','assigned'))]"
1822 id="act_product_stock_move_futur_open"
1823 name="Future Stock Moves"
1824 res_model="stock.move"
1825 src_model="product.product"
1826 groups="base.group_extended"/>
1828 <record id="ir_act_product_location_open" model="ir.values">
1829 <field name="key2">tree_but_open</field>
1830 <field name="model">stock.location</field>
1831 <field name="name">Products</field>
1832 <field eval="'ir.actions.act_window,%d'%act_product_location_open" name="value"/>
1833 <field eval="True" name="object"/>
1837 <record id="ir_act_product_location_open" model="ir.values">
1838 <field name="key2">tree_but_open</field>
1839 <field name="model">stock.location</field>
1840 <field name="name">Open Products</field>
1841 <field eval="'ir.actions.act_window,%d'%action_view_stock_location_product" name="value"/>
1842 <field eval="True" name="object"/>
1844 <record id="action_picking_tree_out" model="ir.actions.act_window">
1845 <field name="name">Customers Packings</field>
1846 <field name="res_model">stock.picking</field>
1847 <field name="type">ir.actions.act_window</field>
1848 <field name="view_type">form</field>
1849 <field name="view_mode">tree,form,calendar</field>
1850 <field name="domain">[('type','=','out')]</field>
1851 <field name="context">{'contact_display': 'partner',"search_default_available":1}</field>
1852 <field name="search_view_id" ref="view_picking_in_search"/>
1854 <record id="action_invoice_tree5_out" model="ir.actions.act_window.view">
1855 <field eval="1" name="sequence"/>
1856 <field name="view_mode">tree</field>
1857 <field name="view_id" ref="view_picking_in_tree"/>
1858 <field name="act_window_id" ref="action_picking_tree_out"/>
1860 <record id="action_invoice_tree5_view2_out" model="ir.actions.act_window.view">
1861 <field eval="2" name="sequence"/>
1862 <field name="view_mode">form</field>
1863 <field name="view_id" ref="view_picking_in_form"/>
1864 <field name="act_window_id" ref="action_picking_tree_out"/>
1866 <record id="action_invoice_tree5_viewout_cal" model="ir.actions.act_window.view">
1867 <field eval="3" name="sequence"/>
1868 <field name="view_mode">calendar</field>
1869 <field name="act_window_id" ref="action_picking_tree_out"/>
1872 <record id="action_out_picking_move" model="ir.actions.act_window">
1873 <field name="name">Deliver Products</field>
1874 <field name="res_model">stock.move</field>
1875 <field name="type">ir.actions.act_window</field>
1876 <field name="view_type">form</field>
1877 <field name="view_mode">tree,form</field>
1878 <field name="domain">['|','&',('picking_id','=',False),('location_dest_id.usage', 'in', ['customer','supplier']),'&',('picking_id','!=',False),('picking_id.type','=','out')]</field>
1879 <field name="view_id" ref="view_move_tree_reception_picking"/>
1880 <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'))"/>
1881 <field name="search_view_id" ref="view_move_search_reception_outcoming_picking"/>
1882 <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>
1885 <record model="ir.actions.act_window.view" id="action_move_out_picking_tree">
1886 <field name="sequence" eval="1"/>
1887 <field name="view_mode">tree</field>
1888 <field name="view_id" ref="view_move_tree_reception_picking"/>
1889 <field name="act_window_id" ref="action_out_picking_move"/>
1891 <record model="ir.actions.act_window.view" id="action_move_out_picking_form">
1892 <field name="sequence" eval="2"/>
1893 <field name="view_mode">form</field>
1894 <field name="view_id" ref="view_move_form"/>
1895 <field name="act_window_id" ref="action_out_picking_move"/>
1898 <menuitem action="action_reception_picking_move" id="menu_action_pdct_in" parent="menu_stock_products_moves" sequence="1"/>
1899 <menuitem action="action_out_picking_move" id="menu_action_pdct_out" parent="menu_stock_products_moves" sequence="2"/>
1902 <record id="view_stock_journal_filter" model="ir.ui.view">
1903 <field name="name">stock.journal.filter</field>
1904 <field name="model">stock.journal</field>
1905 <field name="type">search</field>
1906 <field name="arch" type="xml">
1907 <search string="Stock Journal">
1908 <field name="name"/>
1909 <field name="user_id"/>
1913 <record model="ir.ui.view" id="view_stock_journal_tree">
1914 <field name="name">Stock Journals</field>
1915 <field name="model">stock.journal</field>
1916 <field name="type">tree</field>
1917 <field name="arch" type="xml">
1918 <tree string="Stock Journal">
1919 <field name="name"/>
1920 <field name="user_id"/>
1924 <record model="ir.ui.view" id="view_stock_journal_form">
1925 <field name="name">Stock Journals</field>
1926 <field name="model">stock.journal</field>
1927 <field name="type">form</field>
1928 <field name="arch" type="xml">
1929 <form string="Stock Journal">
1930 <field name="name"/>
1931 <field name="user_id"/>
1935 <record id="action_stock_journal_form" model="ir.actions.act_window">
1936 <field name="name">Stock Journals</field>
1937 <field name="res_model">stock.journal</field>
1938 <field name="type">ir.actions.act_window</field>
1939 <field name="view_type">form</field>
1940 <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>
1943 action="action_stock_journal_form"
1944 id="menu_action_stock_journal_form"
1945 groups="base.group_extended"
1946 parent="menu_warehouse_config" />