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"/>
10 <menuitem id="menu_stock_products_moves" name="Products Moves" parent="menu_stock_root" sequence="2" groups="base.group_extended"/>
11 <menuitem id="menu_stock_product" name="Products" 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="Products"
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">
81 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
84 <group expand="0" string="Group By..." 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 == '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 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_inventory" 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="search_view_id" ref="view_inventory_filter" />
190 <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>
192 <menuitem action="action_inventory_form" id="menu_action_inventory_form" parent="menu_stock_inventory_control" sequence="30"/>
194 <record id="action_inventory_form_draft" model="ir.actions.act_window">
195 <field name="name">Draft Physical Inventories</field>
196 <field name="type">ir.actions.act_window</field>
197 <field name="res_model">stock.inventory</field>
198 <field name="view_type">form</field>
199 <field name="domain">[('state','=','draft')]</field>
200 <field name="filter" eval="True"/>
203 <record id="view_tracking_form" model="ir.ui.view">
204 <field name="name">stock.tracking.form</field>
205 <field name="model">stock.tracking</field>
206 <field name="type">form</field>
207 <field name="arch" type="xml">
208 <form string="Packs">
209 <group col="2" colspan="2">
210 <separator string="Pack Identification" colspan="2"/>
212 <field name="serial"/>
214 <field name="active" groups="base.group_extended"/>
216 <group col="2" colspan="2">
217 <separator string="Traceability" colspan="4"/>
218 <button name="action_traceability" icon="gtk-go-up" string="Upstream traceability" type="object"
220 <button name="action_traceability" icon="gtk-go-down" string="Downstream traceability" type="object"
221 context="{'type': 'move_history_ids'}" colspan="2"/>
223 <notebook colspan="4">
224 <page string="Stock Moves">
225 <field colspan="2" name="move_ids" nolabel="1"/>
231 <record id="view_tracking_tree" model="ir.ui.view">
232 <field name="name">stock.tracking.tree</field>
233 <field name="model">stock.tracking</field>
234 <field name="type">tree</field>
235 <field name="arch" type="xml">
236 <tree string="Packs">
238 <field name="serial"/>
243 <record id="action_tracking_form" model="ir.actions.act_window">
244 <field name="name">Packs</field>
245 <field name="type">ir.actions.act_window</field>
246 <field name="res_model">stock.tracking</field>
247 <field name="view_type">form</field>
248 <field name="view_id" ref="view_tracking_tree"/>
249 <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>
251 <menuitem id="menu_traceability" name="Traceability" parent="menu_stock_root" sequence="3"/>
252 <menuitem action="action_tracking_form" id="menu_action_tracking_form"
253 groups="base.group_extended"
255 parent="menu_traceability"/>
257 <record id="lot_line_tree" model="ir.ui.view">
258 <field name="name">stock.tracking.tree</field>
259 <field name="model">stock.tracking</field>
260 <field name="type">tree</field>
261 <field name="field_parent">child_ids</field>
262 <field name="arch" type="xml">
263 <tree colors="grey:not active" string="Packs">
264 <field name="name" />
265 <field name="serial" />
266 <field name="date" />
271 <record model="ir.ui.view" id="search_stock_packs">
272 <field name="name">Pack Search</field>
273 <field name="model">stock.tracking</field>
274 <field name="type">search</field>
275 <field name="arch" type="xml">
276 <search string="Pack Search">
278 <field name="name" />
279 <field name="serial" />
280 <field name="date" />
281 <field name="active" groups="base.group_extended"/>
287 <record id="view_production_lot_revision_form" model="ir.ui.view">
288 <field name="name">stock.production.lot.revision.form</field>
289 <field name="model">stock.production.lot.revision</field>
290 <field name="type">form</field>
291 <field name="arch" type="xml">
292 <form string="Production Lot Revisions">
293 <field colspan="4" name="name"/>
294 <field colspan="2" name="indice"/>
295 <field colspan="2" name="date"/>
297 <field name="author_id" readonly="1"/>
299 <separator string="Description" colspan="4"/>
300 <field colspan="4" name="description" nolabel="1"/>
304 <record id="view_production_lot_revision_tree" model="ir.ui.view">
305 <field name="name">stock.production.lot.revision.tree</field>
306 <field name="model">stock.production.lot.revision</field>
307 <field name="type">tree</field>
308 <field name="arch" type="xml">
309 <tree string="Production Lot Revisions">
310 <field name="indice"/>
311 <field name="author_id"/>
317 <record id="view_production_lot_form" model="ir.ui.view">
318 <field name="name">stock.production.lot.form</field>
319 <field name="model">stock.production.lot</field>
320 <field name="type">form</field>
321 <field name="arch" type="xml">
322 <form string="Production Lot">
323 <group col="4" colspan="2">
324 <separator string="Production Lot Identification" colspan="4"/>
325 <field name="product_id" colspan="4"/>
326 <field name="prefix" colspan="2"/>
327 <field name="name" colspan="2"/>
328 <field name="ref" colspan="4"/>
329 <field name="date" colspan="4"/>
331 <group col="2" colspan="2">
332 <separator string="Traceability" colspan="2"/>
333 <field name="stock_available" colspan="2"/>
334 <button name="action_traceability" string="Upstream Traceability" type="object" context="{'type': '', 'field': 'prodlot_id'}" icon="gtk-go-up" colspan="2"/>
335 <button name="action_traceability" string="Downstream Traceability" type="object" context="{'type': 'move_history_ids', 'field': 'prodlot_id'}" icon="gtk-go-down" colspan="2"/>
337 <notebook colspan="4">
338 <page string="Revisions">
339 <field colspan="2" name="revisions" nolabel="1"/>
341 <page string="Stock Moves">
342 <field colspan="2" name="move_ids" nolabel="1" widget="one2many_list">
343 <tree string="Stock Moves">
344 <field name="picking_id" string="Reference"/>
345 <field name="origin"/>
346 <field name="partner_id"/>
347 <field name="product_id"/>
348 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
349 <field name="product_uom" string="UoM"/>
350 <field name="tracking_id"/>
352 <field name="prodlot_id" groups="base.group_extended"/>
353 <field name="location_id"/>
354 <field name="location_dest_id"/>
355 <field name="state"/>
363 <record id="view_production_lot_tree" model="ir.ui.view">
364 <field name="name">stock.production.lot.tree</field>
365 <field name="model">stock.production.lot</field>
366 <field name="type">tree</field>
367 <field name="arch" type="xml">
368 <tree string="Production Lot">
369 <field name="prefix" />
372 <field name="product_id"/>
373 <field name="stock_available"/>
379 <record model="ir.ui.view" id="search_product_lot_filter">
380 <field name="name">Production Lots Filter</field>
381 <field name="model">stock.production.lot</field>
382 <field name="type">search</field>
383 <field name="arch" type="xml">
384 <search string="Product Lots Filter">
386 <filter icon="terp-check" name="available" string="Available" domain="[('stock_available', '>', 0)]" help="Available Product Lots" />
387 <separator orientation="vertical"/>
388 <field name="prefix"/>
391 <field name="product_id"/>
395 <group expand="0" string="Group By...">
396 <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
402 <record id="action_production_lot_form" model="ir.actions.act_window">
403 <field name="name">Production Lots</field>
404 <field name="type">ir.actions.act_window</field>
405 <field name="res_model">stock.production.lot</field>
406 <field name="view_type">form</field>
407 <field name="view_id" ref="view_production_lot_tree"/>
408 <field name="search_view_id" ref="search_product_lot_filter" />
409 <field name="context">{"search_default_available":1}</field>
410 <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>
412 <menuitem action="action_production_lot_form" id="menu_action_production_lot_form"
413 parent="menu_traceability" groups="base.group_extended"
417 # Lot composition (history)
419 <record id="stock_move_tree" model="ir.ui.view">
420 <field name="name">Stock Moves</field>
421 <field name="model">stock.move</field>
422 <field name="type">tree</field>
423 <field name="field_parent">move_history_ids</field>
424 <field name="arch" type="xml">
425 <tree colors="grey:state == 'cancel'" string="Moves">
426 <field name="product_id" />
427 <field name="product_qty" />
428 <field name="product_uom" string="UOM"/>
429 <field name="prodlot_id" groups="base.group_extended"/>
430 <field groups="base.group_extended" name="tracking_id"/>
431 <field name="product_packaging" domain="[('product_id','=',product_id)]" groups="base.group_extended"/>
432 <field name="picking_id"/>
433 <field name="location_id" />
434 <field name="location_dest_id" />
435 <field name="create_date"/>
436 <field name="date" string="Date"/>
437 <field name="date_expected" string="Date Expected"/>
438 <field name="state"/>
443 <record id="stock_move_tree2" model="ir.ui.view">
444 <field name="name">Stock Moves</field>
445 <field name="model">stock.move</field>
446 <field name="type">tree</field>
447 <field name="field_parent">move_history_ids2</field>
448 <field name="arch" type="xml">
449 <tree colors="grey:state == 'cancel'" string="Moves">
450 <field name="product_id" />
451 <field name="product_qty" />
452 <field name="product_uom" string="UOM"/>
453 <field name="prodlot_id" groups="base.group_extended"/>
454 <field groups="base.group_extended" name="tracking_id"/>
455 <field name="product_packaging" domain="[('product_id','=',product_id)]" groups="base.group_extended"/>
456 <field name="picking_id"/>
457 <field name="location_id" />
458 <field name="location_dest_id" />
459 <field name="create_date" />
460 <field name="date" string="Date"/>
461 <field name="date_expected" string="Date Expected"/>
462 <field name="state"/>
467 <record id="action3" model="ir.actions.act_window">
468 <field name="name">Downstream traceability</field>
469 <field name="type">ir.actions.act_window</field>
470 <field name="res_model">stock.move</field>
471 <field name="domain">[('id','in',active_ids)]</field>
472 <field name="view_type">tree</field>
473 <field eval="stock_move_tree2" name="view_id"/>
476 <record id="ir_move_traceability_upstream" model="ir.values">
477 <field name="key2">tree_but_action</field>
478 <field name="model">stock.move</field>
479 <field name="name">Downstream traceability</field>
480 <field eval="'ir.actions.act_window,'+str(action3)" name="value"/>
483 <record id="action5" model="ir.actions.act_window">
484 <field name="name">Upstream traceability</field>
485 <field name="type">ir.actions.act_window</field>
486 <field name="res_model">stock.move</field>
487 <field name="domain">[('id','in',active_ids)]</field>
488 <field name="view_type">tree</field>
489 <field eval="stock_move_tree" name="view_id"/>
492 <record id="ir_move_traceability_downstream" model="ir.values">
493 <field name="key2">tree_but_action</field>
494 <field name="model">stock.move</field>
495 <field name="name">Upstream traceability</field>
496 <field eval="'ir.actions.act_window,'+str(action5)" name="value"/>
499 <record id="view_location_form" model="ir.ui.view">
500 <field name="name">stock.location.form</field>
501 <field name="model">stock.location</field>
502 <field name="type">form</field>
503 <field name="arch" type="xml">
504 <form string="Stock Location">
505 <group col="2" colspan="2">
506 <separator string="Location" colspan="2"/>
508 <field name="usage"/>
509 <field name="location_id"/>
511 <group col="4" colspan="2">
512 <separator string="Additional Information" colspan="4"/>
513 <field name="address_id" context="{'contact_display':'partner'}" colspan="4"/>
514 <field name="company_id" groups="base.group_multi_company" widget="selection" colspan="4"/>
515 <field name="icon" groups="base.group_extended" colspan="4"/>
516 <field name="scrap_location" groups="base.group_extended"/>
517 <field name="active" groups="base.group_extended"/>
519 <group col="2" colspan="2" groups="base.group_extended">
520 <separator string="Chained Locations" colspan="2"/>
521 <field name="chained_location_type"/>
522 <field name="chained_location_id" attrs="{'required':[('chained_location_type','=','fixed')]}"/>
523 <field name="chained_auto_packing"/>
524 <field name="chained_delay"/>
525 <field name="chained_journal_id"/>
526 <field name="chained_picking_type"/>
527 <field name="chained_company_id" widget="selection"/>
529 <group col="2" colspan="2">
530 <separator string="Localization" colspan="2"/>
534 <separator string="Accounting Information" colspan="2" groups="base.group_extended"/>
535 <field name="valuation_in_account_id" attrs="{'readonly':[('usage','not in',('inventory','production'))]}" groups="base.group_extended"/>
536 <field name="valuation_out_account_id" attrs="{'readonly':[('usage','not in',('inventory','production'))]}" groups="base.group_extended"/>
538 <separator string="Additional Information" colspan="4"/>
539 <field colspan="4" name="comment" nolabel="1"/>
544 <record id="view_location_search" model="ir.ui.view">
545 <field name="name">stock.location.search</field>
546 <field name="model">stock.location</field>
547 <field name="type">search</field>
548 <field name="arch" type="xml">
549 <search string="Stock Locations">
550 <filter icon="terp-go-home" name="in_location"
551 string="Internal" domain="[('usage', '=', 'internal')]" help="Internal Locations" />
552 <filter icon="terp-personal" name="customer"
553 string="Customer" domain="[('usage', '=', 'customer')]" help="Customer Locations" />
554 <filter icon="terp-personal" name="supplier"
555 string="Supplier" domain="[('usage', '=', 'supplier')]" help="Supplier Locations" />
556 <separator orientation="vertical"/>
558 <field name="location_id" string="Parent Location"/>
564 <record id="view_location_tree2" model="ir.ui.view">
565 <field name="name">stock.location.tree</field>
566 <field name="model">stock.location</field>
567 <field name="type">tree</field>
568 <field name="priority" eval="2"/>
569 <field name="arch" type="xml">
570 <tree string="Stock Location" colors="blue:usage=='view';darkred:usage=='internal'">
571 <field name="complete_name"/>
572 <field name="usage"/>
573 <field name="stock_real" invisible="'product_id' not in context"/>
574 <field name="stock_virtual" invisible="'product_id' not in context"/>
579 <record id="action_location_form" model="ir.actions.act_window">
580 <field name="name">Locations</field>
581 <field name="res_model">stock.location</field>
582 <field name="type">ir.actions.act_window</field>
583 <field name="view_type">form</field>
584 <field name="view_id" ref="view_location_tree2"/>
585 <field name="search_view_id" ref="view_location_search"/>
586 <field name="context">{'search_default_in_location':1}</field>
587 <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>
589 <menuitem action="action_location_form" id="menu_action_location_form" parent="menu_warehouse_config"/>
591 <record id="view_location_tree" model="ir.ui.view">
592 <field name="name">stock.location.tree</field>
593 <field name="model">stock.location</field>
594 <field name="type">tree</field>
595 <field name="field_parent">child_ids</field>
596 <field name="arch" type="xml">
598 <field icon="icon" name="name"/>
602 <record id="action_location_tree" model="ir.actions.act_window">
603 <field name="name">Location Structure</field>
604 <field name="res_model">stock.location</field>
605 <field name="type">ir.actions.act_window</field>
606 <field name="domain">[('location_id','=',False)]</field>
607 <field name="view_type">tree</field>
608 <field name="view_id" ref="view_location_tree"/>
609 <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>
611 <menuitem action="action_location_tree"
612 id="menu_action_location_tree"
613 parent="menu_stock_inventory_control"
616 <record id="view_warehouse" model="ir.ui.view">
617 <field name="name">stock.warehouse</field>
618 <field name="model">stock.warehouse</field>
619 <field name="type">form</field>
620 <field name="arch" type="xml">
621 <form string="Warehouse">
622 <field colspan="4" name="name" select="1"/>
623 <field name="lot_input_id"/>
624 <field name="lot_stock_id"/>
625 <field name="lot_output_id"/>
626 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
628 <field name="partner_address_id" context="{'contact_display':'partner'}"/>
632 <record id="view_warehouse_tree" model="ir.ui.view">
633 <field name="name">stock.warehouse.tree</field>
634 <field name="model">stock.warehouse</field>
635 <field name="type">tree</field>
636 <field name="arch" type="xml">
637 <tree string="Warehouse">
639 <field name="lot_input_id"/>
640 <field name="lot_stock_id"/>
641 <field name="lot_output_id"/>
642 <field name="partner_address_id" context="{'contact_display':'partner'}"/>
646 <record id="action_warehouse_form" model="ir.actions.act_window">
647 <field name="name">Warehouses</field>
648 <field name="res_model">stock.warehouse</field>
649 <field name="type">ir.actions.act_window</field>
650 <field name="view_type">form</field>
651 <field name="view_id" ref="view_warehouse_tree"/>
652 <field name="help">Create and manage your warehouses and assign them a location from here</field>
654 <menuitem action="action_warehouse_form" id="menu_action_warehouse_form" parent="menu_warehouse_config"/>
656 <record model="ir.ui.view" id="stock_picking_calendar">
657 <field name="name">stock.picking.calendar</field>
658 <field name="model">stock.picking</field>
659 <field name="type">calendar</field>
660 <field name="priority" eval="2"/>
661 <field name="arch" type="xml">
662 <calendar string="Calendar View" date_start="min_date" date_stop="max_date" color="address_id">
663 <field name="origin"/>
665 <field name="address_id"/>
669 <record id="vpicktree" model="ir.ui.view">
670 <field name="name">stock.picking.tree</field>
671 <field name="model">stock.picking</field>
672 <field name="type">tree</field>
673 <field name="arch" type="xml">
674 <tree colors="blue:state == 'draft';grey:state == 'cancel';red:state not in ('cancel', 'done') and date < current_date" string="Picking list">
676 <field name="partner_id" invisible="True"/>
677 <field name="backorder_id" groups="base.group_extended"/>
678 <field name="origin"/>
680 <field name="min_date"/>
681 <field name="invoice_state"/>
682 <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
683 <field name="state"/>
684 <button name="action_process" states="assigned" groups="stock.group_stock_user" string="Process" type="object" icon="gtk-go-forward"/>
688 <record id="view_picking_form" model="ir.ui.view">
689 <field name="name">stock.picking.form</field>
690 <field name="model">stock.picking</field>
691 <field name="type">form</field>
692 <field eval="12" name="priority"/>
693 <field name="arch" type="xml">
694 <form string="Internal Picking List">
695 <group colspan="4" col="6">
696 <group colspan="4" col="4">
697 <field name="name" readonly="1"/>
698 <field name="origin"/>
699 <field name="address_id" on_change="onchange_partner_in(address_id)" context="{'contact_display':'partner'}" colspan="4"/>
700 <field name="invoice_state" string="Invoice Control" groups="base.group_extended"/>
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" context="{'address_in_id': address_id}">
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_dest_id"/>
741 <field name="date_expected" string="Date Expected"/>
742 <field name="state"/>
744 <form string="Stock Moves">
745 <group colspan="2" col="4">
746 <separator colspan="4" string="Move Information"/>
747 <field name="name" invisible="1" colspan="4"/>
748 <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id)" colspan="4"/>
749 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="3"/>
750 <button name="%(stock.move_scrap)d"
751 string="Scrap" type="action" groups="base.group_extended"
752 icon="gtk-convert" context="{'scrap': True}"
753 states="draft,waiting,confirmed,assigned" colspan="1"/>
754 <field name="product_uom" string="Unit Of Measure" colspan="4"/>
755 <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"/>
756 <field groups="product.group_uos" name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4"/>
757 <field groups="base.group_extended" name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4"/>
760 <group colspan="2" col="2">
761 <separator string="Locations" colspan="2" />
762 <field name="location_id" domain="[('usage','<>','view')]" />
763 <field name="location_dest_id" domain="[('usage','=','internal')]" />
766 <group colspan="2" col="2">
767 <separator string="Dates" colspan="2" />
768 <field name="create_date" invisible="1"/>
770 <field name="date_expected" on_change="onchange_date(date,date_expected)"/>
773 <group colspan="2" col="4" groups="base.group_extended">
774 <separator string="Traceability" colspan="4" groups="base.group_extended"/>
775 <field name="tracking_id" groups="base.group_extended" colspan="3"/>
776 <button name="%(split_into)d" string="New pack" type="action"
777 groups="base.group_extended"
778 icon="terp-stock_effects-object-colorize"
779 states="draft,assigned,confirmed" colspan="1"/>
780 <field name="prodlot_id" groups="base.group_extended"
781 context="{'location_id':location_id, 'product_id':product_id}"
782 domain="[('product_id','=?',product_id)]"
783 on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"/>
784 <button name="%(track_line)d"
785 groups="base.group_extended"
786 states="draft,waiting,confirmed,assigned"
787 string="Split" type="action" icon="terp-stock_effects-object-colorize" colspan="1" />
789 <label string="" colspan="4"/>
790 <field name="state"/>
791 <group col="4" colspan="2">
792 <button name="action_cancel" states="assigned" string="Cancel" type="object" icon="gtk-cancel"/>
793 <button name="action_confirm" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
794 <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
795 <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
799 <group col="10" colspan="4">
800 <field name="state" readonly="1" widget="statusbar" statusbar_visible="draft,confirmed,assigned,done" statusbar_colors='{"auto":"blue", "confirmed":"blue"}'/>
801 <button name="button_cancel" states="assigned,confirmed,draft" string="_Cancel" icon="gtk-cancel"/>
802 <button name="draft_force_assign" states="draft" string="Process Later" type="object" icon="gtk-apply"/>
803 <button name="draft_validate" states="draft" string="Process Now" type="object" icon="gtk-media-play"/>
804 <button name="action_assign" states="confirmed" string="Check Availability" type="object" icon="gtk-find"/>
805 <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
806 <button name="action_process" states="assigned" string="Process" groups="stock.group_stock_user" type="object" icon="gtk-go-forward"/>
807 <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" />
810 <page string="Additional info" groups="base.group_extended,base.group_multi_company">
811 <field name="auto_picking" groups="base.group_extended"/>
812 <field name="date_done" groups="base.group_extended"/>
813 <field name="move_type" groups="base.group_extended"/>
814 <field name="type" groups="base.group_extended"/>
815 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
817 <page string="Notes">
818 <field colspan="4" name="note" nolabel="1"/>
825 <record id="view_stock_picking_filter" model="ir.ui.view">
826 <field name="name">stock.picking.list.select</field>
827 <field name="model">stock.picking</field>
828 <field name="type">search</field>
829 <field name="arch" type="xml">
830 <search string="Search Stock Picking">
832 <filter icon="terp-check" name="available" string="Available" domain="[('state','=','assigned')]" help="Available Pickings"/>
833 <filter icon="terp-camera_test" string="Confirmed" domain="[('state','=','confirmed')]" help="Confirmed Pickings"/>
834 <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" help="Pickings already processed"/>
835 <separator orientation="vertical"/>
836 <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order" groups="base.group_extended"/>
837 <separator orientation="vertical"/>
838 <filter icon="terp-dolar" name="to_invoice" string="To Invoice" domain="[('invoice_state','=','2binvoiced')]" help="Internal Pickings to invoice"/>
839 <separator orientation="vertical"/>
841 <field name="address_id"/>
842 <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
845 <group expand="0" string="Group By...">
846 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
847 <separator orientation="vertical" />
848 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
849 <separator orientation="vertical" />
850 <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
851 <separator orientation="vertical" />
852 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}" groups="base.group_extended"/>
863 <record id="view_picking_out_tree" model="ir.ui.view">
864 <field name="name">stock.picking.out.tree</field>
865 <field name="model">stock.picking</field>
866 <field name="type">tree</field>
867 <field name="arch" type="xml">
868 <tree colors="blue:state == 'draft';grey:state == 'cancel';red:state not in ('cancel', 'done') and min_date < current_date" string="Delivery Orders">
870 <field name="partner_id"/>
871 <field name="origin"/>
873 <field name="min_date"/>
874 <field name="backorder_id" groups="base.group_extended"/>
875 <field name="invoice_state"/>
876 <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
877 <field name="state"/>
878 <button name="action_process" states="assigned" string="Process" type="object" icon="gtk-go-forward"/>
882 <record id="view_picking_out_form" model="ir.ui.view">
883 <field name="name">stock.picking.out.form</field>
884 <field name="model">stock.picking</field>
885 <field name="type">form</field>
886 <field name="arch" type="xml">
887 <form string="Delivery Orders">
888 <group col="6" colspan="4">
889 <group colspan="4" col="4">
890 <field name="name" readonly="1"/>
891 <field name="origin" readonly="1"/>
892 <field name="address_id" on_change="onchange_partner_in(address_id)" context="{'contact_display':'partner'}" colspan="4"/>
893 <field name="invoice_state"/>
894 <field name="backorder_id" readonly="1" groups="base.group_extended"/>
896 <group colspan="2" col="2">
898 <field name="min_date" readonly="1"/>
899 <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
902 <notebook colspan="4">
903 <page string="Products">
904 <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" context="{'address_out_id': address_id, 'picking_type': type}" >
905 <tree colors="grey:scrapped==True" string="Stock Moves">
906 <field name="product_id"/>
907 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
908 <field name="product_uom" string="UoM"/>
909 <field name="product_uos" groups="product.group_uos"/>
910 <button name="%(stock.move_scrap)d"
911 string="Scrap Products" type="action"
912 icon="gtk-convert" context="{'scrap': True}"
913 states="draft,waiting,confirmed,assigned" />
914 <field name="scrapped" invisible="1"/>
915 <field name="prodlot_id" groups="base.group_extended"/>
916 <button name="%(track_line)d" string="Split in production lots" type="action"
917 icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('prodlot_id','<>',False)]}"
918 states="draft,assigned,confirmed"
919 groups="base.group_extended"/>
920 <field name="tracking_id" groups="base.group_extended"/>
921 <button name="setlast_tracking" string="Put in current pack" type="object"
922 attrs="{'invisible': [('tracking_id','<>',False)]}"
923 groups="base.group_extended"
924 icon="terp-stock_effects-object-colorize"
925 states="draft,assigned,confirmed"/>
926 <button name="%(split_into)d" string="Put in a new pack" type="action"
927 icon="terp-stock_effects-object-colorize"
928 groups="base.group_extended"
929 states="draft,assigned,confirmed"/>
930 <field name="location_id"/>
932 <field name="state"/>
933 <button name="%(action_partial_move_server)d" string="Process" type="action" states="confirmed,assigned" icon="gtk-go-forward"/>
935 <form string="Stock Moves">
936 <group colspan="2" col="4">
937 <separator colspan="4" string="Move Information"/>
938 <field name="name" invisible="1" colspan="4" />
939 <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id)" colspan="4" />
940 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="3" />
941 <button name="%(stock.move_scrap)d"
942 string="Scrap" type="action"
943 icon="gtk-convert" context="{'scrap': True}"
944 states="draft,waiting,confirmed,assigned" colspan="1" groups="base.group_extended"/>
945 <field name="product_uom" string="Unit Of Measure" colspan="4" />
946 <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" />
947 <field groups="product.group_uos" name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4" />
948 <field groups="base.group_extended" name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4" />
951 <group colspan="2" col="2">
952 <separator string="Locations" colspan="2" />
953 <field name="location_id" domain="[('usage','=','internal')]" />
954 <field name="location_dest_id" domain="[('usage','<>','view')]" />
957 <group colspan="2" col="2">
958 <separator string="Dates" colspan="2" />
959 <field name="create_date" invisible="1"/>
961 <field name="date_expected" on_change="onchange_date(date,date_expected)"/>
964 <group colspan="2" col="4" groups="base.group_extended">
965 <separator string="Traceability" colspan="4" groups="base.group_extended"/>
966 <field name="tracking_id" groups="base.group_extended" colspan="3" />
967 <button name="%(split_into)d" string="New pack" type="action"
968 groups="base.group_extended"
969 icon="terp-stock_effects-object-colorize"
970 states="draft,assigned,confirmed" colspan="1"/>
971 <field name="prodlot_id" groups="base.group_extended"
972 context="{'location_id':location_id, 'product_id':product_id}"
973 domain="[('product_id','=?',product_id)]"
974 on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"/>
975 <button name="%(track_line)d"
976 groups="base.group_extended"
977 states="draft,waiting,confirmed,assigned"
978 string="Split" type="action" icon="terp-stock_effects-object-colorize" colspan="1" />
980 <label string="" colspan="4"/>
981 <field name="state"/>
982 <group col="4" colspan="2">
983 <button name="action_cancel" states="assigned" string="Cancel" type="object" icon="gtk-cancel"/>
984 <button name="action_confirm" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
985 <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
986 <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
990 <group col="12" colspan="4">
991 <field name="state" readonly="1" widget="statusbar" statusbar_visible="draft,confirmed,assigned,done" statusbar_colors='{"auto":"blue", "confirmed":"blue"}'/>
992 <button name="button_cancel" states="assigned,confirmed,draft" string="_Cancel" icon="gtk-cancel"/>
993 <button name="draft_force_assign" states="draft" string="Process Later" type="object" icon="gtk-ok"/>
994 <button name="draft_validate" states="draft" string="Process Now" type="object" icon="gtk-yes"/>
995 <button name="action_assign" states="confirmed" string="Check Availability" type="object" groups="base.group_extended" icon="gtk-find"/>
996 <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
997 <button name="action_process" states="assigned" string="Process" type="object" icon="gtk-go-forward"/>
998 <button name="%(act_stock_return_picking)d" string="Return Products" states="done" type="action" icon="gtk-execute"/>
999 <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"/>
1002 <page string="Additional info" groups="base.group_extended,base.group_multi_company">
1003 <field name="auto_picking" groups="base.group_extended"/>
1004 <field name="date_done" groups="base.group_extended"/>
1005 <field name="move_type" groups="base.group_extended"/>
1006 <field name="type" groups="base.group_extended"/>
1007 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
1009 <page string="Notes">
1010 <field colspan="4" name="note" nolabel="1"/>
1017 <record id="view_picking_out_search" model="ir.ui.view">
1018 <field name="name">stock.picking.out.search</field>
1019 <field name="model">stock.picking</field>
1020 <field name="type">search</field>
1021 <field name="arch" type="xml">
1022 <search string="Picking list">
1024 <filter icon="terp-check" name="available" string="Ready" domain="[('state','=','assigned')]" help="Assigned Delivery Orders"/>
1025 <filter icon="terp-camera_test" name="confirmed" string="Waiting" domain="[('state','=','confirmed')]" help="Confirmed Delivery Orders"/>
1026 <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" help="Delivery orders already processed"/>
1027 <separator orientation="vertical"/>
1028 <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order" groups="base.group_extended"/>
1029 <separator orientation="vertical"/>
1030 <filter icon="terp-dolar" name="to_invoice" string="To Invoice" domain="[('invoice_state','=','2binvoiced')]" help="Delivery orders to invoice"/>
1031 <separator orientation="vertical"/>
1032 <field name="name"/>
1033 <field name="partner_id" />
1034 <field name="origin"/>
1035 <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
1036 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
1039 <group expand="0" string="Group By...">
1040 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
1041 <separator orientation="vertical" />
1042 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1043 <separator orientation="vertical" />
1044 <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
1045 <filter string="Expected Date" icon="terp-go-month" domain="[]" context="{'group_by':'min_date'}"/>
1046 <separator orientation="vertical" />
1047 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}" groups="base.group_extended"/>
1053 <record id="action_picking_tree" model="ir.actions.act_window">
1054 <field name="name">Delivery Orders</field>
1055 <field name="res_model">stock.picking</field>
1056 <field name="type">ir.actions.act_window</field>
1057 <field name="view_type">form</field>
1058 <field name="view_mode">tree,form,calendar</field>
1059 <field name="domain">[('type','=','out')]</field>
1060 <field name="context">{'default_type': 'out', 'contact_display': 'partner_address', 'search_default_confirmed': 1, 'search_default_available': 1}</field>
1061 <field name="search_view_id" ref="view_picking_out_search"/>
1062 <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>
1064 <record id="action_picking_tree_out_view1_waiting" model="ir.actions.act_window.view">
1065 <field eval="1" name="sequence"/>
1066 <field name="view_mode">tree</field>
1067 <field name="view_id" ref="view_picking_out_tree"/>
1068 <field name="act_window_id" ref="action_picking_tree"/>
1070 <record id="action_picking_tree_out_view2_waiting" model="ir.actions.act_window.view">
1071 <field eval="2" name="sequence"/>
1072 <field name="view_mode">form</field>
1073 <field name="view_id" ref="view_picking_out_form"/>
1074 <field name="act_window_id" ref="action_picking_tree"/>
1076 <record id="action_picking_tree_out_view2_waiting_cal" model="ir.actions.act_window.view">
1077 <field eval="3" name="sequence"/>
1078 <field name="view_mode">calendar</field>
1079 <field name="act_window_id" ref="action_picking_tree"/>
1081 <menuitem action="action_picking_tree" id="menu_action_picking_tree" parent="menu_stock_warehouse_mgmt" sequence="3"/>
1083 <record id="view_picking_in_tree" model="ir.ui.view">
1084 <field name="name">stock.picking.in.tree</field>
1085 <field name="model">stock.picking</field>
1086 <field name="type">tree</field>
1087 <field name="arch" type="xml">
1088 <tree colors="blue:state == 'draft';grey:state == 'done';red:state not in ('cancel', 'done') and date < current_date" string="Picking list">
1089 <field name="name"/>
1090 <field name="partner_id" />
1091 <field name="backorder_id" groups="base.group_extended"/>
1092 <field name="origin"/>
1093 <field name="date"/>
1094 <field name="min_date"/>
1095 <field name="invoice_state" groups="base.group_extended"/>
1096 <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
1097 <field name="state"/>
1098 <button name="action_process" states="assigned" string="Process" type="object" icon="gtk-go-forward"/>
1099 <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?" />
1103 <record id="view_picking_in_form" model="ir.ui.view">
1104 <field name="name">stock.picking.in.form</field>
1105 <field name="model">stock.picking</field>
1106 <field name="type">form</field>
1107 <field name="arch" type="xml">
1108 <form string="Input Picking List">
1109 <group colspan="4" col="6">
1110 <group colspan="4" col="4">
1111 <field name="name" readonly="1"/>
1112 <field name="origin"/>
1113 <field name="address_id" on_change="onchange_partner_in(address_id)" context="{'contact_display':'partner'}" domain="[('partner_id','<>',False)]" colspan="4"/>
1114 <field name="invoice_state" string="Invoice Control"/>
1115 <field name="backorder_id" readonly="1" groups="base.group_extended"/>
1117 <group colspan="2" col="2">
1118 <field name="date"/>
1119 <field name="min_date" readonly="1"/>
1120 <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
1123 <notebook colspan="4">
1124 <page string="General Information">
1125 <field colspan="4" name="move_lines" nolabel="1" widget="one2many_list" context="{'address_in_id': address_id, 'picking_type': type}" >
1126 <tree colors="grey:scrapped==True" string="Stock Moves">
1127 <field name="product_id" />
1128 <field name="product_qty" />
1129 <field name="product_uom" string="UoM" />
1130 <button name="%(stock.move_scrap)d"
1131 string="Scrap Products" type="action"
1132 icon="gtk-convert" context="{'scrap': True}"
1133 states="draft,waiting,confirmed,assigned"
1134 groups="base.group_extended"/>
1135 <field name="scrapped" invisible="1"/>
1136 <field name="prodlot_id" groups="base.group_extended"/>
1138 name="%(stock.track_line)d"
1139 string="Split in production lots"
1140 groups="base.group_extended"
1141 type="action" icon="terp-stock_effects-object-colorize"
1142 states="draft,waiting,confirmed,assigned" />
1143 <field name="tracking_id" groups="base.group_extended"/>
1144 <button name="setlast_tracking" string="Put in current pack" type="object"
1145 groups="base.group_extended"
1146 icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('tracking_id','<>',False)]}"
1147 states="draft,assigned,confirmed"/>
1148 <button name="%(split_into)d" string="Put in a new pack" type="action"
1149 groups="base.group_extended"
1150 icon="terp-stock_effects-object-colorize"
1151 states="draft,assigned,confirmed"/>
1152 <field name="location_dest_id"/>
1153 <field name="state"/>
1155 <form string="Stock Moves">
1156 <group colspan="2" col="4">
1157 <separator colspan="4" string="Move Information"/>
1158 <field name="name" invisible="1" colspan="4"/>
1159 <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, parent.address_id)" colspan="4"/>
1160 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="3"/>
1161 <button name="%(stock.move_scrap)d"
1162 string="Scrap" type="action" groups="base.group_extended"
1163 icon="gtk-convert" context="{'scrap': True}"
1164 states="draft,waiting,confirmed,assigned" colspan="1"/>
1165 <field name="product_uom" string="Unit Of Measure" colspan="4"/>
1166 <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"/>
1167 <field groups="product.group_uos" name="product_uos" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)" colspan="4"/>
1168 <field groups="base.group_extended" name="product_packaging" domain="[('product_id','=',product_id)]" colspan="4"/>
1171 <group colspan="2" col="2">
1172 <separator string="Locations" colspan="2" />
1173 <field name="location_id" domain="[('usage','<>','view')]" />
1174 <field name="location_dest_id" domain="[('usage','=','internal')]" />
1177 <group colspan="2" col="2">
1178 <separator string="Dates" colspan="2" />
1179 <field name="create_date" invisible="1"/>
1180 <field name="date"/>
1181 <field name="date_expected" on_change="onchange_date(date,date_expected)"/>
1184 <group colspan="2" col="4" groups="base.group_extended">
1185 <separator string="Traceability" colspan="4" groups="base.group_extended"/>
1186 <field name="tracking_id" groups="base.group_extended" colspan="3" />
1187 <button name="%(split_into)d" string="New pack" type="action"
1188 groups="base.group_extended"
1189 icon="terp-stock_effects-object-colorize"
1190 states="draft,assigned,confirmed" colspan="1"/>
1191 <field name="prodlot_id" groups="base.group_extended"
1192 context="{'location_id':location_id, 'product_id':product_id}"
1193 domain="[('product_id','=?',product_id)]"
1194 on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"/>
1195 <button name="%(track_line)d"
1196 groups="base.group_extended"
1197 states="draft,waiting,confirmed,assigned"
1198 string="Split" type="action" icon="terp-stock_effects-object-colorize" colspan="1" />
1200 <label string="" colspan="4"/>
1201 <field name="state"/>
1202 <group col="4" colspan="2">
1203 <button name="action_cancel" states="assigned" string="_Cancel" type="object" icon="gtk-cancel"/>
1204 <button name="action_confirm" states="draft" string="Confirm" type="object" icon="gtk-apply"/>
1205 <button name="force_assign" states="confirmed" string="Force Availability" type="object" icon="gtk-jump-to"/>
1206 <button name="cancel_assign" states="assigned" string="Cancel Availability" type="object" icon="gtk-find"/>
1210 <group col="10" colspan="4">
1211 <field name="state" readonly="1" widget="statusbar" statusbar_visible="draft,assigned,done" statusbar_colors='{"auto":"blue", "confirmed":"blue"}'/>
1212 <button name="button_cancel" states="assigned,confirmed,draft" string="_Cancel" icon="gtk-cancel"/>
1213 <button name="draft_force_assign" states="draft" string="Process Later" type="object" icon="gtk-ok"/>
1214 <button name="draft_validate" states="draft" string="Process Now" type="object" icon="gtk-media-play"/>
1215 <button name="action_assign" states="confirmed" string="Check Availability" type="object" icon="gtk-find"/>
1216 <button name="force_assign" states="confirmed" string="Force Availability" type="object" groups="base.group_extended" icon="gtk-jump-to"/>
1217 <button name="action_process" states="assigned" string="Process" type="object" icon="gtk-go-forward"/>
1218 <button name="%(act_stock_return_picking)d" string="Return Products" states="done" type="action" icon="gtk-execute"/>
1219 <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" />
1222 <page string="Additional Info" groups="base.group_extended,base.group_multi_company">
1223 <field name="type" groups="base.group_extended"/>
1224 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
1226 <page string="Notes">
1227 <field colspan="4" name="note" nolabel="1"/>
1234 <record id="view_picking_in_search" model="ir.ui.view">
1235 <field name="name">stock.picking.in.search</field>
1236 <field name="model">stock.picking</field>
1237 <field name="type">search</field>
1238 <field name="arch" type="xml">
1239 <search string="Incoming Shipments">
1241 <filter icon="terp-check" name="available" string="Ready to Process" domain="[('state','=','assigned')]" help="Incoming Shipments Available" />
1242 <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state','=','done')]" help="Incoming Shipments already processed"/>
1243 <separator orientation="vertical" />
1244 <filter icon="terp-accessories-archiver-minus" string="Back Orders" domain="[('backorder_id', '!=', False)]" help="Is a Back Order" groups="base.group_extended"/>
1245 <separator orientation="vertical"/>
1246 <filter string="To invoice" name="to_invoice" icon="terp-dolar" domain="[('invoice_state', '=', '2binvoiced')]" />
1247 <separator orientation="vertical"/>
1248 <field name="name"/>
1249 <field name="partner_id"/>
1250 <field name="origin"/>
1251 <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
1252 <field name="company_id" widget="selection" groups="base.group_multi_company" />
1255 <group expand="0" string="Group By...">
1256 <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/>
1257 <separator orientation="vertical" />
1258 <filter icon="terp-stock_effects-object-colorize" name="state" string="State" domain="[]" context="{'group_by':'state'}"/>
1259 <separator orientation="vertical" />
1260 <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
1261 <filter string="Expected Date" icon="terp-go-month" domain="[]" context="{'group_by':'min_date'}"/>
1262 <separator orientation="vertical" />
1263 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}" groups="base.group_extended"/>
1270 <record id="action_picking_tree4" model="ir.actions.act_window">
1271 <field name="name">Incoming Shipments</field>
1272 <field name="res_model">stock.picking</field>
1273 <field name="type">ir.actions.act_window</field>
1274 <field name="view_type">form</field>
1275 <field name="view_mode">tree,form,calendar</field>
1276 <field name="domain">[('type','=','in')]</field>
1277 <field name="context">{'contact_display': 'partner_address',"search_default_available":1}</field>
1278 <field name="search_view_id" ref="view_picking_in_search"/>
1279 <field name="help">The Incoming Shipments is the list of all orders you will receive from your suppliers. 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>
1281 <record id="action_invoice_tree5_view1" model="ir.actions.act_window.view">
1282 <field eval="1" name="sequence"/>
1283 <field name="view_mode">tree</field>
1284 <field name="view_id" ref="view_picking_in_tree"/>
1285 <field name="act_window_id" ref="action_picking_tree4"/>
1287 <record id="action_invoice_tree5_view2" model="ir.actions.act_window.view">
1288 <field eval="2" name="sequence"/>
1289 <field name="view_mode">form</field>
1290 <field name="view_id" ref="view_picking_in_form"/>
1291 <field name="act_window_id" ref="action_picking_tree4"/>
1293 <record id="action_invoice_tree5_view2_cal" model="ir.actions.act_window.view">
1294 <field eval="3" name="sequence"/>
1295 <field name="view_mode">calendar</field>
1296 <field name="act_window_id" ref="action_picking_tree4"/>
1298 <menuitem action="action_picking_tree4" id="menu_action_picking_tree4" parent="menu_stock_warehouse_mgmt" sequence="1"/>
1300 <record id="view_picking_internal_search" model="ir.ui.view">
1301 <field name="name">stock.picking.internal.search</field>
1302 <field name="model">stock.picking</field>
1303 <field name="type">search</field>
1304 <field name="arch" type="xml">
1305 <search string="Internal Picking List">
1307 <filter icon="terp-check" string="Ready" domain="[('state','=','assigned')]" help="Assigned Internal Moves"/>
1308 <filter icon="terp-camera_test" name="confirmed" string="Waiting" domain="[('state','=','confirmed')]" help="Confirmed Internal Moves" />
1309 <separator orientation="vertical"/>
1310 <field name="name"/>
1311 <field name="origin"/>
1312 <field name="stock_journal_id" groups="base.group_extended" widget="selection"/>
1313 <field name="company_id" widget="selection"/>
1316 <group expand="0" string="Group By...">
1317 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1318 <separator orientation="vertical"/>
1319 <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
1320 <filter string="Expected Date" icon="terp-go-month" domain="[]" context="{'group_by':'min_date'}"/>
1321 <separator orientation="vertical"/>
1322 <filter string="Origin" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'origin'}"/>
1323 <separator orientation="vertical" />
1324 <filter string="Journal" icon="terp-folder-orange" domain="[]" context="{'group_by':'stock_journal_id'}" groups="base.group_extended"/>
1330 <record id="action_picking_tree6" model="ir.actions.act_window">
1331 <field name="name">Internal Moves</field>
1332 <field name="res_model">stock.picking</field>
1333 <field name="type">ir.actions.act_window</field>
1334 <field name="view_type">form</field>
1335 <field name="view_mode">tree,form,calendar</field>
1336 <field name="domain">[('type','=','internal')]</field>
1337 <field name="context">{'default_type': 'internal', 'contact_display': 'partner_address', 'search_default_available': 1}</field>
1338 <field name="search_view_id" ref="view_picking_internal_search"/>
1339 <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>
1342 <record model="ir.actions.act_window.view" id="action_picking_tree6_tree_view">
1343 <field name="sequence" eval="1"/>
1344 <field name="view_mode">tree</field>
1345 <field name="view_id" ref="vpicktree"/>
1346 <field name="act_window_id" ref="action_picking_tree6"/>
1348 <record model="ir.actions.act_window.view" id="action_picking_tree6_form_view">
1349 <field name="sequence" eval="2"/>
1350 <field name="view_mode">form</field>
1351 <field name="view_id" ref="view_picking_form"/>
1352 <field name="act_window_id" ref="action_picking_tree6"/>
1357 <menuitem action="action_picking_tree6" id="menu_action_picking_tree6" parent="menu_stock_warehouse_mgmt" sequence="2" groups="base.group_extended"/>
1359 <record id="view_move_tree" model="ir.ui.view">
1360 <field name="name">stock.move.tree</field>
1361 <field name="model">stock.move</field>
1362 <field name="type">tree</field>
1363 <field eval="6" name="priority"/>
1364 <field name="arch" type="xml">
1365 <tree colors="grey:state == 'cancel';red:(state not in ('cancel','done')) and date > current_date" string="Moves" editable="top">
1366 <field name="name"/>
1367 <field name="picking_id" string="Reference"/>
1368 <field name="origin"/>
1369 <field name="create_date" invisible="1"/>
1370 <field name="partner_id"/>
1371 <field name="product_id"/>
1372 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1373 <field name="product_uom" string="UoM"/>
1374 <field name="product_uos" groups="product.group_uos"/>
1375 <button name="%(stock.move_scrap)d"
1376 string="Scrap Products" type="action"
1377 icon="gtk-convert" context="{'scrap': True}"
1378 states="draft,waiting,confirmed,assigned"
1379 groups="base.group_extended"/>
1380 <field name="prodlot_id" groups="base.group_extended"/>
1381 <button name="%(track_line)d" string="Split in production lots" type="action"
1382 icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('prodlot_id','<>',False)]}"
1383 states="draft,waiting,confirmed,assigned,done"
1384 groups="base.group_extended"/>
1385 <field groups="base.group_extended" name="tracking_id"/>
1386 <button name="setlast_tracking" string="Put in current pack" type="object"
1387 groups="base.group_extended"
1388 icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('tracking_id','<>',False)]}"
1389 states="draft,assigned,confirmed,done"/>
1390 <button name="%(split_into)d" string="Put in a new pack" type="action"
1391 groups="base.group_extended"
1392 icon="terp-stock_effects-object-colorize"
1393 states="draft,assigned,confirmed,done"/>
1394 <field name="location_id"/>
1395 <field name="location_dest_id"/>
1396 <field name="date"/>
1397 <field name="date_expected"/>
1398 <field name="state"/>
1399 <button name="action_done" states="confirmed,assigned" string="Process" type="object" icon="gtk-go-forward"/>
1404 <!-- <menuitem id="menu_traceability_low" name="Low Level" parent="menu_traceability"/> -->
1406 <record id="view_move_form" model="ir.ui.view">
1407 <field name="name">stock.move.form</field>
1408 <field name="model">stock.move</field>
1409 <field name="type">form</field>
1410 <field eval="4" name="priority"/>
1411 <field name="arch" type="xml">
1412 <form string="Stock Moves">
1413 <group colspan="4" col="7">
1414 <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, False)"/>
1415 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1416 <field name="product_uom" string="Unit Of Measure"/>
1417 <button name="%(stock.move_scrap)d" groups="base.group_extended"
1418 string="Scrap" type="action"
1419 icon="gtk-convert" context="{'scrap': True}"
1420 states="draft,waiting,confirmed,assigned" colspan="1"/>
1422 <field name="location_id"/>
1423 <field name="location_dest_id"/>
1424 <field name="address_id" context="{'contact_display':'partner'}"/>
1427 <group colspan="2" col="2">
1428 <separator colspan="2" string="Move Information"/>
1429 <field name="name" string="Reason"/>
1430 <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"/>
1431 <field name="product_uos" groups="product.group_uos" colspan="4"/>
1434 <group colspan="2" col="2">
1435 <separator string="Picking" colspan="2" />
1436 <field name="picking_id"/>
1437 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
1440 <group colspan="2" col="2">
1441 <separator string="Dates" colspan="2" />
1442 <field name="create_date" groups="base.group_extended"/>
1443 <field name="date" groups="base.group_extended"/>
1444 <field name="date_expected" on_change="onchange_date(date,date_expected)"/>
1447 <group colspan="2" col="4" groups="base.group_extended">
1448 <separator string="Traceability" colspan="4" groups="base.group_extended"/>
1449 <field name="tracking_id" colspan="3" groups="base.group_extended"/>
1450 <button name="%(split_into)d" string="New pack" type="action"
1451 groups="base.group_extended"
1452 icon="terp-stock_effects-object-colorize"
1453 states="draft,assigned,confirmed" colspan="1"/>
1454 <field name="prodlot_id" groups="base.group_extended"
1455 context="{'location_id':location_id, 'product_id':product_id}"
1456 domain="[('product_id','=?',product_id)]"
1457 on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"/>
1458 <button name="%(track_line)d"
1459 groups="base.group_extended"
1460 states="draft,waiting,confirmed,assigned"
1461 string="Split" type="action" icon="terp-stock_effects-object-colorize" colspan="1"/>
1464 <separator colspan="4"/>
1465 <field name="state" widget="statusbar" statusbar_visible="draft,confirmed,assigned,done" statusbar_colors='{"waiting":"blue","confirmed":"blue"}'/>
1466 <group col="4" colspan="2">
1467 <button name="action_cancel" states="assigned,confirmed" string="_Cancel" type="object" icon="gtk-cancel"/>
1468 <button name="action_confirm" states="draft" string="Process Later" type="object" icon="gtk-apply"/>
1469 <button name="force_assign" states="confirmed" string="Set Available" type="object" icon="gtk-yes"/>
1470 <button name="action_done" states="draft,assigned,confirmed" string="Process Now" type="object" icon="gtk-jump-to"/>
1476 <record id="view_move_search" model="ir.ui.view">
1477 <field name="name">stock.move.search</field>
1478 <field name="model">stock.move</field>
1479 <field name="type">search</field>
1480 <field eval="3" name="priority"/>
1481 <field name="arch" type="xml">
1482 <search string="Stock Moves">
1484 <filter icon="terp-camera_test" string="Ready" name="ready" domain="[('state','=','assigned')]" help="Stock moves that are Available (Ready to process)"/>
1485 <filter icon="terp-stock" string="Future" name="future" domain="[('state','in',('assigned','confirmed','waiting'))]" help="Stock moves that are Confirmed, Available or Waiting"/>
1486 <filter icon="terp-dialog-close" string="Done" name="done" domain="[('state','=','done')]" help="Stock moves that have been processed"/>
1487 <separator orientation="vertical"/>
1488 <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"/>
1489 <separator orientation="vertical"/>
1490 <field name="product_id"/>
1491 <field name="location_id" string="Location" filter_domain="['|',('location_id','ilike',self),('location_dest_id','ilike',self)]"/>
1492 <field name="address_id" string="Partner" context="{'contact_display':'partner'}" filter_domain="[('picking_id.address_id','ilike',self)]"/>
1493 <field name="date"/>
1494 <field name="origin"/>
1495 <field name="prodlot_id"/>
1498 <group expand="0" string="Group By..." groups="base.group_extended">
1499 <filter string="Product" name="by_product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
1500 <filter string="Picking" name="groupby_picking_id" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'picking_id'}"/>
1501 <filter string="Lot" name="groupby_prodlot_id" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'prodlot_id'}"/>
1502 <filter string="Pack" name="groupby_tracking_id" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'tracking_id'}"/>
1503 <separator orientation="vertical"/>
1504 <filter string="Source" name="groupby_location_id" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'location_id'}"/>
1505 <filter string="Destination" name="groupby_dest_location_id" icon="terp-gtk-jump-to-ltr" domain="[]" context="{'group_by':'location_dest_id'}"/>
1506 <separator orientation="vertical"/>
1507 <filter icon="terp-stock_effects-object-colorize" string="State" domain="[]" context="{'group_by':'state'}" />
1508 <separator orientation="vertical"/>
1509 <filter string="Creation" name="groupby_create_date" icon="terp-go-month" domain="[]" context="{'group_by':'create_date'}"/>
1510 <filter string="Expected" name="groupby_date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}"/>
1516 <record id="action_move_form2" model="ir.actions.act_window">
1517 <field name="name">Stock Moves</field>
1518 <field name="res_model">stock.move</field>
1519 <field name="type">ir.actions.act_window</field>
1520 <field name="view_type">form</field>
1521 <field name="view_id" ref="view_move_tree"/>
1522 <field name="search_view_id" ref="view_move_search"/>
1523 <field name="context">{'search_default_ready':1}</field>
1524 <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>
1526 <menuitem action="action_move_form2" id="menu_action_move_form2" parent="menu_traceability" sequence="3"/>
1528 ====================================
1529 Reception Picking (By Stock Move)
1530 ====================================
1531 <!-- from stock_partial_move_view -->
1535 <record id="view_move_tree_reception_picking" model="ir.ui.view">
1536 <field name="name">stock.move.tree2</field>
1537 <field name="model">stock.move</field>
1538 <field name="type">tree</field>
1539 <field name="priority" eval="6" />
1540 <field name="arch" type="xml">
1541 <tree colors="grey:state == 'cancel'" string="Moves">
1542 <field name="picking_id" string="Reference"/>
1543 <field name="origin"/>
1544 <field name="partner_id" string="Partner"/>
1545 <field name="product_id"/>
1546 <field name="product_qty" />
1547 <field name="product_uom" string="UoM"/>
1548 <button name="%(stock.move_scrap)d"
1549 string="Scrap Products" type="action"
1550 icon="gtk-convert" context="{'scrap': True}"
1551 states="draft,waiting,confirmed,assigned" groups="base.group_extended"/>
1552 <field name="prodlot_id" groups="base.group_extended"/>
1553 <button name="%(track_line)d" string="Split in production lots" type="action"
1554 icon="terp-stock_effects-object-colorize" attrs="{'invisible': [('prodlot_id','<>',False)]}"
1555 states="draft,waiting,confirmed,assigned,done"
1556 groups="base.group_extended"/>
1557 <field name="tracking_id" groups="base.group_extended"/>
1558 <button name="setlast_tracking" string="Put in current pack" type="object"
1559 attrs="{'invisible': [('tracking_id','<>',False)]}"
1560 groups="base.group_extended"
1561 icon="terp-stock_effects-object-colorize"
1562 states="draft,assigned,confirmed,done"/>
1563 <button name="%(split_into)d" string="Put in a new pack" type="action"
1564 groups="base.group_extended"
1565 icon="terp-stock_effects-object-colorize"
1566 states="draft,assigned,confirmed,done"/>
1567 <field name="date"/>
1568 <field name="state"/>
1569 <button name="action_assign" states="confirmed" string="Set Available" type="object" icon="gtk-yes"/>
1570 <button name="action_done" string="Process" type="object" states="confirmed,assigned" icon="gtk-go-forward"/>
1575 <record id="view_move_tree_reception_picking_board" model="ir.ui.view">
1576 <field name="name">stock.move.tree3</field>
1577 <field name="model">stock.move</field>
1578 <field name="type">tree</field>
1579 <field eval="6" name="priority"/>
1580 <field name="arch" type="xml">
1581 <tree string="Moves">
1582 <field name="picking_id" string="Reference"/>
1583 <field name="partner_id" string="Partner"/>
1584 <field name="product_id"/>
1585 <field name="product_qty" />
1586 <field name="product_uom" string="UoM"/>
1587 <field name="date"/>
1588 <button name="action_done" states="confirmed,assigned" string="Process" type="object" icon="gtk-go-forward"/>
1594 <record id="view_move_form_reception_picking" model="ir.ui.view">
1595 <field name="name">stock.move.form2</field>
1596 <field name="model">stock.move</field>
1597 <field name="type">form</field>
1598 <field eval="6" name="priority"/>
1599 <field name="arch" type="xml">
1600 <form string="Receive Products">
1601 <group colspan="4" col="7">
1602 <field name="product_id" on_change="onchange_product_id(product_id,location_id,location_dest_id, False)"/>
1603 <field name="product_qty" on_change="onchange_quantity(product_id, product_qty, product_uom, product_uos)"/>
1604 <field name="product_uom" string="Unit Of Measure"/>
1605 <button name="%(stock.move_scrap)d" groups="base.group_extended"
1606 string="Scrap" type="action"
1607 icon="gtk-convert" context="{'scrap': True}"
1608 states="draft,waiting,confirmed,assigned" colspan="1"/>
1610 <field name="location_id"/>
1611 <field name="location_dest_id"/>
1612 <field name="address_id" context="{'contact_display':'partner'}"/>
1615 <group colspan="2" col="2">
1616 <separator colspan="2" string="Move Information"/>
1617 <field name="name" string="Reason"/>
1618 <field name="product_uos_qty" groups="product.group_uos" on_change="onchange_uos_quantity(product_id, product_uos_qty, product_uos, product_uom)"/>
1619 <field name="product_uos" groups="product.group_uos"/>
1622 <group colspan="2" col="2">
1623 <separator string="Picking" colspan="2" />
1624 <field name="picking_id"/>
1625 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
1628 <group colspan="2" col="2">
1629 <separator string="Dates" colspan="2" />
1630 <field name="create_date" groups="base.group_extended"/>
1631 <field name="date" groups="base.group_extended"/>
1632 <field name="date_expected" on_change="onchange_date(date,date_expected)"/>
1635 <group colspan="2" col="4" groups="base.group_extended">
1636 <separator string="Traceability" colspan="4" groups="base.group_extended"/>
1637 <field name="tracking_id" colspan="3" groups="base.group_extended"/>
1638 <button name="%(split_into)d" string="New pack" type="action"
1639 groups="base.group_extended"
1640 icon="terp-stock_effects-object-colorize"
1641 states="draft,assigned,confirmed,done" colspan="1"/>
1642 <field name="prodlot_id" groups="base.group_extended"
1643 context="{'location_id':location_id, 'product_id':product_id}"
1644 domain="[('product_id','=?',product_id)]"
1645 on_change="onchange_lot_id(prodlot_id,product_qty, location_id, product_id, product_uom)" colspan="3"/>
1646 <button name="%(track_line)d"
1647 groups="base.group_extended"
1648 states="draft,waiting,confirmed,assigned,done"
1649 string="Split" type="action" icon="terp-stock_effects-object-colorize" colspan="1"/>
1652 <separator colspan="4"/>
1653 <field name="state" widget="statusbar" statusbar_visible="draft,confirmed,assigned,done" statusbar_colors='{"waiting":"blue","confirmed":"blue"}'/>
1654 <group col="5" colspan="2">
1655 <button name="action_cancel" states="assigned,confirmed" string="_Cancel" type="object" icon="gtk-cancel"/>
1656 <button name="action_confirm" states="draft" string="Process Later" type="object" icon="gtk-apply"/>
1657 <button name="force_assign" states="confirmed" string="Set Available" type="object" icon="gtk-yes"/>
1658 <button name="%(action_partial_move_server)d" string="Process" type="action" states="assigned" icon="gtk-go-forward"/>
1664 <record id="view_move_search_reception_incoming_picking" model="ir.ui.view">
1665 <field name="name">stock.move.incoming.search2</field>
1666 <field name="model">stock.move</field>
1667 <field name="type">search</field>
1668 <field eval="6" name="priority"/>
1669 <field name="arch" type="xml">
1670 <search string="Stock Moves">
1672 <filter icon="terp-gtk-go-back-rtl" name="receive" string="Waiting " domain="[('state','in',('confirmed','assigned'))]" help="Stock to be receive"/>
1673 <filter icon="terp-check" name="available" string="Available" domain="[('state','in',('assigned',))]" help="Stock available to be delivered"/>
1674 <filter icon="terp-dialog-close" name="done" string="Done" domain="[('state', '=', 'done')]"/>
1675 <separator orientation="vertical"/>
1676 <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"/>
1677 <separator orientation="vertical"/>
1678 <field name="origin"/>
1679 <field name="partner_id" string="Partner"/>
1680 <field name="product_id"/>
1681 <field name="prodlot_id"/>
1684 <group expand="0" string="Group By..." groups="base.group_extended">
1685 <filter string="Supplier" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
1686 <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
1687 <separator orientation="vertical"/>
1688 <filter string="Order" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'origin'}"/>
1689 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1690 <separator orientation="vertical"/>
1691 <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}" />
1697 <record id="view_move_search_reception_outcoming_picking" model="ir.ui.view">
1698 <field name="name">stock.move.outgoing.search2</field>
1699 <field name="model">stock.move</field>
1700 <field name="type">search</field>
1701 <field eval="6" name="priority"/>
1702 <field name="arch" type="xml">
1703 <search string="Stock Moves">
1705 <filter icon="terp-gtk-go-back-rtl" name="receive" string=" Waiting" domain="[('state','in',('confirmed','assigned'))]" help="Stock to be delivered (Available or not)"/>
1706 <filter icon="terp-check" name="available" string="Available" domain="[('state','in',('assigned',))]" help="Stock available to be delivered"/>
1707 <filter icon="terp-dialog-close" name="received" string="Done" domain="[('state','=','done')]"/>
1708 <separator orientation="vertical"/>
1709 <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"/>
1710 <separator orientation="vertical"/>
1711 <field name="origin"/>
1712 <field name="partner_id" string="Partner"/>
1713 <field name="product_id"/>
1714 <field name="prodlot_id"/>
1717 <group expand="0" string="Group By..." groups="base.group_extended">
1718 <filter string="Customer" icon="terp-personal" domain="[]" context="{'group_by':'partner_id'}"/>
1719 <separator orientation="vertical"/>
1720 <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
1721 <filter string="Order" icon="terp-gtk-jump-to-rtl" domain="[]" context="{'group_by':'origin'}"/>
1722 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
1723 <separator orientation="vertical"/>
1724 <filter string="Order Date" icon="terp-go-month" domain="[]" context="{'group_by':'date'}" />
1730 <record id="action_reception_picking_move" model="ir.actions.act_window">
1731 <field name="name">Receive Products</field>
1732 <field name="res_model">stock.move</field>
1733 <field name="type">ir.actions.act_window</field>
1734 <field name="view_type">form</field>
1735 <field name="view_mode">tree,form</field>
1736 <field name="domain">['|','&',('picking_id','=',False),('location_id.usage', 'in', ['customer','supplier']),'&',('picking_id','!=',False),('picking_id.type','=','in')]</field>
1737 <field name="view_id" ref="view_move_tree_reception_picking"/>
1738 <field name="context" eval="'{\'search_default_receive\':1, \'search_default_available\':1, \'product_receive\' : True, \'default_location_id\':%d, \'default_location_dest_id\':%d}' % (ref('stock_location_suppliers'),ref('stock_location_stock') )"/>
1739 <field name="search_view_id" ref="view_move_search_reception_incoming_picking"/>
1740 <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>
1743 <record model="ir.actions.act_window.view" id="action_move_reception_picking_tree">
1744 <field name="sequence" eval="1"/>
1745 <field name="view_mode">tree</field>
1746 <field name="view_id" ref="view_move_tree_reception_picking"/>
1747 <field name="act_window_id" ref="action_reception_picking_move"/>
1749 <record model="ir.actions.act_window.view" id="action_move_reception_picking_form">
1750 <field name="sequence" eval="2"/>
1751 <field name="view_mode">form</field>
1752 <field name="view_id" ref="view_move_form_reception_picking"/>
1753 <field name="act_window_id" ref="action_reception_picking_move"/>
1756 # -------------------------------------------------------------
1758 # -------------------------------------------------------------
1759 <record id="view_incoterms_tree" model="ir.ui.view">
1760 <field name="name">stock.incoterms.tree</field>
1761 <field name="model">stock.incoterms</field>
1762 <field name="type">tree</field>
1763 <field name="arch" type="xml">
1764 <tree string="Incoterms">
1765 <field name="code"/>
1766 <field colspan="4" name="name"/>
1770 <record id="stock_incoterms_form" model="ir.ui.view">
1771 <field name="name">stock.incoterms.form</field>
1772 <field name="model">stock.incoterms</field>
1773 <field name="type">form</field>
1774 <field name="arch" type="xml">
1775 <form string="Incoterms">
1776 <field colspan="4" name="name" select="1"/>
1777 <field name="code" select="1"/>
1778 <field name="active" select="1"/>
1782 <record id="action_incoterms_tree" model="ir.actions.act_window">
1783 <field name="name">Incoterms</field>
1784 <field name="res_model">stock.incoterms</field>
1785 <field name="type">ir.actions.act_window</field>
1786 <field name="view_type">form</field>
1787 <field name="view_mode">tree,form</field>
1790 <menuitem action="action_incoterms_tree" id="menu_action_incoterm_open" parent="menu_warehouse_config" sequence="7"/>
1793 context="{'location': active_id}"
1794 domain="[('type','<>','service')]"
1795 id="act_product_location_open"
1797 res_model="product.product"
1798 src_model="stock.location"/>
1801 context="{'search_default_done': 1,'search_default_product_id': [active_id], 'default_product_id': active_id}"
1802 id="act_product_stock_move_open"
1804 res_model="stock.move"
1805 src_model="product.product"/>
1808 domain="[('move_lines','=',active_id)]"
1809 id="act_relate_picking"
1810 name="Related Picking"
1811 res_model="stock.picking"
1812 src_model="stock.move"/>
1815 context="{'search_default_future': 1,'search_default_product_id': [active_id], 'default_product_id': active_id}"
1816 domain="[('state','in',('waiting','confirmed','assigned'))]"
1817 id="act_product_stock_move_futur_open"
1818 name="Future Stock Moves"
1819 res_model="stock.move"
1820 src_model="product.product"
1821 groups="base.group_extended"/>
1823 <record id="ir_act_product_location_open" model="ir.values">
1824 <field name="key2">tree_but_open</field>
1825 <field name="model">stock.location</field>
1826 <field name="name">Products</field>
1827 <field eval="'ir.actions.act_window,%d'%act_product_location_open" name="value"/>
1831 <record id="ir_act_product_location_open" model="ir.values">
1832 <field name="key2">tree_but_open</field>
1833 <field name="model">stock.location</field>
1834 <field name="name">Open Products</field>
1835 <field eval="'ir.actions.act_window,%d'%action_view_stock_location_product" name="value"/>
1837 <record id="action_picking_tree_out" model="ir.actions.act_window">
1838 <field name="name">Customers Packings</field>
1839 <field name="res_model">stock.picking</field>
1840 <field name="type">ir.actions.act_window</field>
1841 <field name="view_type">form</field>
1842 <field name="view_mode">tree,form,calendar</field>
1843 <field name="domain">[('type','=','out')]</field>
1844 <field name="context">{'default_type': 'out', 'contact_display': 'partner',"search_default_available":1}</field>
1845 <field name="search_view_id" ref="view_picking_in_search"/>
1847 <record id="action_invoice_tree5_out" model="ir.actions.act_window.view">
1848 <field eval="1" name="sequence"/>
1849 <field name="view_mode">tree</field>
1850 <field name="view_id" ref="view_picking_in_tree"/>
1851 <field name="act_window_id" ref="action_picking_tree_out"/>
1853 <record id="action_invoice_tree5_view2_out" model="ir.actions.act_window.view">
1854 <field eval="2" name="sequence"/>
1855 <field name="view_mode">form</field>
1856 <field name="view_id" ref="view_picking_in_form"/>
1857 <field name="act_window_id" ref="action_picking_tree_out"/>
1859 <record id="action_invoice_tree5_viewout_cal" model="ir.actions.act_window.view">
1860 <field eval="3" name="sequence"/>
1861 <field name="view_mode">calendar</field>
1862 <field name="act_window_id" ref="action_picking_tree_out"/>
1865 <record id="action_out_picking_move" model="ir.actions.act_window">
1866 <field name="name">Deliver Products</field>
1867 <field name="res_model">stock.move</field>
1868 <field name="type">ir.actions.act_window</field>
1869 <field name="view_type">form</field>
1870 <field name="view_mode">tree,form</field>
1871 <field name="domain">['|','&',('picking_id','=',False),('location_dest_id.usage', 'in', ['customer','supplier']),'&',('picking_id','!=',False),('picking_id.type','=','out')]</field>
1872 <field name="view_id" ref="view_move_tree_reception_picking"/>
1873 <field name="context" eval="'{\'search_default_receive\':1,\'search_default_available\':1, \'default_location_id\':%d, \'default_location_dest_id\':%d}' % (ref('stock_location_stock'),ref('stock_location_customers'))"/>
1874 <field name="search_view_id" ref="view_move_search_reception_outcoming_picking"/>
1875 <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>
1878 <record model="ir.actions.act_window.view" id="action_move_out_picking_tree">
1879 <field name="sequence" eval="1"/>
1880 <field name="view_mode">tree</field>
1881 <field name="view_id" ref="view_move_tree_reception_picking"/>
1882 <field name="act_window_id" ref="action_out_picking_move"/>
1884 <record model="ir.actions.act_window.view" id="action_move_out_picking_form">
1885 <field name="sequence" eval="2"/>
1886 <field name="view_mode">form</field>
1887 <field name="view_id" ref="view_move_form"/>
1888 <field name="act_window_id" ref="action_out_picking_move"/>
1891 <menuitem action="action_reception_picking_move" id="menu_action_pdct_in" parent="menu_stock_products_moves" sequence="1" groups="base.group_extended"/>
1892 <menuitem action="action_out_picking_move" id="menu_action_pdct_out" parent="menu_stock_products_moves" sequence="2" groups="base.group_extended"/>
1895 <record id="view_stock_journal_filter" model="ir.ui.view">
1896 <field name="name">stock.journal.filter</field>
1897 <field name="model">stock.journal</field>
1898 <field name="type">search</field>
1899 <field name="arch" type="xml">
1900 <search string="Stock Journal">
1901 <field name="name"/>
1902 <field name="user_id"/>
1906 <record model="ir.ui.view" id="view_stock_journal_tree">
1907 <field name="name">Stock Journals</field>
1908 <field name="model">stock.journal</field>
1909 <field name="type">tree</field>
1910 <field name="arch" type="xml">
1911 <tree string="Stock Journal">
1912 <field name="name"/>
1913 <field name="user_id"/>
1917 <record model="ir.ui.view" id="view_stock_journal_form">
1918 <field name="name">Stock Journals</field>
1919 <field name="model">stock.journal</field>
1920 <field name="type">form</field>
1921 <field name="arch" type="xml">
1922 <form string="Stock Journal">
1923 <field name="name"/>
1924 <field name="user_id"/>
1928 <record id="action_stock_journal_form" model="ir.actions.act_window">
1929 <field name="name">Stock Journals</field>
1930 <field name="res_model">stock.journal</field>
1931 <field name="type">ir.actions.act_window</field>
1932 <field name="view_type">form</field>
1933 <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>
1936 action="action_stock_journal_form"
1937 id="menu_action_stock_journal_form"
1938 groups="base.group_extended"
1939 parent="menu_warehouse_config" />
1941 <record model="ir.actions.todo.category" id="category_stock_management_config">
1942 <field name="name">Stock Management</field>