1 <?xml version="1.0" encoding="utf-8"?>
5 <menuitem icon="terp-mrp" id="base.menu_mrp_root" parent="" name="Manufacturing"
6 groups="group_mrp_user,group_mrp_manager" sequence="8"
7 web_icon="images/manufacturing.png"
8 web_icon_hover="images/manufacturing-hover.png"/>
10 <menuitem id="menu_mrp_manufacturing" name="Manufacturing" parent="base.menu_mrp_root" sequence="1"/>
12 <menuitem name="Master Data"
14 parent="base.menu_mrp_root"
18 Property / Property Group
21 <record id="mrp_property_group_form_view" model="ir.ui.view">
22 <field name="name">mrp.property.group.form</field>
23 <field name="model">mrp.property.group</field>
24 <field name="type">form</field>
25 <field name="arch" type="xml">
26 <form string="Properties categories" version="7.0">
29 <label name="description"/>
30 <field name="description"/>
34 <record id="mrp_property_group_action" model="ir.actions.act_window">
35 <field name="name">Property Groups</field>
36 <field name="type">ir.actions.act_window</field>
37 <field name="res_model">mrp.property.group</field>
38 <field name="view_type">form</field>
39 <field name="view_mode">tree,form</field>
40 <field name="help">Define specific property groups that can be assigned to the properties of your bill of materials.</field>
43 id="menu_mrp_configuration"
45 parent="base.menu_mrp_root"
46 groups="group_mrp_manager"
49 <record id="mrp_property_tree_view" model="ir.ui.view">
50 <field name="name">mrp.property.tree</field>
51 <field name="model">mrp.property</field>
52 <field name="type">tree</field>
53 <field name="arch" type="xml">
54 <tree string="Properties">
56 <field name="composition"/>
57 <field name="group_id"/>
61 <record id="mrp_property_form_view" model="ir.ui.view">
62 <field name="name">mrp.property.form</field>
63 <field name="model">mrp.property</field>
64 <field name="type">form</field>
65 <field name="arch" type="xml">
66 <form string="Properties" version="7.0">
68 <field colspan="4" name="name"/>
69 <field name="group_id"/>
70 <field name="composition"/>
72 <label for="description"/>
73 <field name="description"/>
78 <record id="view_mrp_property_search" model="ir.ui.view">
79 <field name="name">mrp.property.search</field>
80 <field name="model">mrp.property</field>
81 <field name="type">search</field>
82 <field name="arch" type="xml">
83 <search string="Search">
85 <field name="name" string="Name"/>
86 <separator orientation="vertical"/>
87 <field name="group_id" widget="selection" />
88 <field name="composition"/>
91 <group expand="0" string="Group By...">
92 <filter string="Property Group" icon="terp-personal" domain="[]" context="{'group_by':'group_id'}"/>
99 <record id="mrp_property_action" model="ir.actions.act_window">
100 <field name="name">Properties</field>
101 <field name="type">ir.actions.act_window</field>
102 <field name="res_model">mrp.property</field>
103 <field name="view_type">form</field>
104 <field name="view_mode">tree,form</field>
105 <field name="search_view_id" ref="view_mrp_property_search"/>
106 <field name="help">The Properties in OpenERP are used to select the right bill of materials for manufacturing a product when you have different ways of building the same product. You can assign several properties to each Bill of Materials. When a sales person creates a sales order, he can relate it to several properties and OpenERP will automatically select the BoM to use according the needs.</field>
108 <menuitem name="Master Bill of Materials"
109 id="menu_mrp_property"
110 parent="menu_mrp_configuration"
111 groups="mrp.group_mrp_routings,product.group_mrp_properties"
114 action="mrp_property_action"
115 id="menu_mrp_property_action"
116 groups="product.group_mrp_properties"
117 parent="menu_mrp_property"/>
119 action="mrp_property_group_action"
120 parent="menu_mrp_property"
121 groups="product.group_mrp_properties"
122 id="menu_mrp_property_group_action"/>
128 <record id="mrp_workcenter_tree_view" model="ir.ui.view">
129 <field name="name">mrp.workcenter.tree</field>
130 <field name="model">mrp.workcenter</field>
131 <field name="type">tree</field>
132 <field name="arch" type="xml">
133 <tree string="Work Center">
136 <field name="resource_type"/>
137 <field name="company_id" groups="base.group_multi_company"/>
141 <record id="mrp_workcenter_view" model="ir.ui.view">
142 <field name="name">mrp.workcenter.form</field>
143 <field name="model">mrp.workcenter</field>
144 <field name="type">form</field>
145 <field name="arch" type="xml">
146 <form string="Work Center" version="7.0">
150 <field name="active"/>
151 <field name="resource_type"/>
152 <field name="calendar_id" widget="selection"/>
153 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
156 <page string="General Information">
158 <group string="Capacity Information">
159 <field name="time_efficiency"/>
160 <field name="capacity_per_cycle"/>
161 <field name="time_cycle" widget="float_time"/>
162 <field name="time_start" widget="float_time"/>
163 <field name="time_stop" widget="float_time"/>
165 <group string="Costing Information">
166 <field name="product_id" on_change="on_change_product_cost(product_id)"/>
167 <field name="costs_hour"/>
168 <field name="costs_hour_account_id" groups="analytic.group_analytic_accounting"/>
169 <field name="costs_cycle"/>
170 <field name="costs_cycle_account_id" groups="analytic.group_analytic_accounting"/>
171 <field name="costs_journal_id" attrs="{'required':['|',('costs_hour_account_id', '=', True),('costs_cycle_account_id', '=', True)]}" groups="analytic.group_analytic_accounting"/>
172 <field name="costs_general_account_id" attrs="{ 'required':['|',('costs_cycle_account_id', '=', True),('costs_hour_account_id', '=', True)]}" groups="analytic.group_analytic_accounting"/>
183 <!-- Search Views -->
185 <record id="view_mrp_workcenter_search" model="ir.ui.view">
186 <field name="name">mrp.workcenter.search</field>
187 <field name="model">mrp.workcenter</field>
188 <field name="type">search</field>
189 <field name="arch" type="xml">
190 <search string="Search for mrp workcenter">
192 <field name="name" string="Mrp Workcenter" filter_domain="['|',('name','ilike',self),('code','ilike',self)]"/>
193 <separator orientation="vertical"/>
194 <filter string="Inactive" icon="terp-gdu-smart-failing" domain="[('active','=',False)]"/>
195 <separator orientation="vertical"/>
196 <field name="resource_type"/>
199 <group expand="0" string="Group By...">
200 <filter string="Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'resource_type'}"/>
201 <separator orientation="vertical" groups="base.group_multi_company"/>
202 <filter string="Company" icon="terp-go-home" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
212 <record id="mrp_routing_workcenter_tree_view" model="ir.ui.view">
213 <field name="name">mrp.routing.workcenter.tree</field>
214 <field name="model">mrp.routing.workcenter</field>
215 <field name="type">tree</field>
216 <field name="arch" type="xml">
217 <tree string="Routing Work Centers">
218 <field name="sequence"/>
220 <field name="workcenter_id"/>
221 <field name="cycle_nbr"/>
222 <field name="hour_nbr"/>
223 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
228 <record id="mrp_routing_workcenter_form_view" model="ir.ui.view">
229 <field name="name">mrp.routing.workcenter.form</field>
230 <field name="model">mrp.routing.workcenter</field>
231 <field name="type">form</field>
232 <field name="arch" type="xml">
233 <form string="Routing Work Centers" version="7.0">
234 <group col="4" string="General Information">
235 <field colspan="4" name="name"/>
236 <field name="sequence"/>
237 <field name="workcenter_id"/>
238 <field name="cycle_nbr"/>
239 <field name="hour_nbr" widget="float_time"/>
240 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
248 <record id="mrp_routing_form_view" model="ir.ui.view">
249 <field name="name">mrp.routing.form</field>
250 <field name="model">mrp.routing</field>
251 <field name="type">form</field>
252 <field name="arch" type="xml">
253 <form string="Routing" version="7.0">
257 <field name="active"/>
258 <field name="location_id"/>
259 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
262 <page string="Work Center Operations">
263 <field name="workcenter_lines"/>
265 <page string="Notes">
272 <record id="mrp_routing_tree_view" model="ir.ui.view">
273 <field name="name">mrp.routing.tree</field>
274 <field name="model">mrp.routing</field>
275 <field name="type">tree</field>
276 <field name="arch" type="xml">
277 <tree string="Routing">
280 <field name="location_id"/>
281 <field name="company_id" groups="base.group_multi_company"/>
285 <record id="mrp_routing_search_view" model="ir.ui.view">
286 <field name="name">mrp.routing.search</field>
287 <field name="model">mrp.routing</field>
288 <field name="type">search</field>
289 <field name="arch" type="xml">
290 <search string="Routing">
291 <field name="name" string="Routing" filter_domain="['|',('name','ilike',self),('code','ilike',self)]"/>
292 <separator orientation="vertical"/>
293 <filter string="Inactive" icon="terp-gdu-smart-failing" domain="[('active','=',False)]"/>
294 <separator orientation="vertical"/>
295 <field name="location_id"/>
296 <field name="company_id" groups="base.group_multi_company"/>
297 <group expand="0" string="Group By...">
298 <filter string="Production Location" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'location_id'}"/>
303 <record id="mrp_routing_action" model="ir.actions.act_window">
304 <field name="name">Routings</field>
305 <field name="type">ir.actions.act_window</field>
306 <field name="res_model">mrp.routing</field>
307 <field name="view_type">form</field>
308 <field name="view_id" ref="mrp_routing_tree_view"/>
309 <field name="search_view_id" ref="mrp_routing_search_view"/>
310 <field name="help">Routings allow you to create and manage the manufacturing operations that should be followed within your work centers in order to produce a product. They are attached to bills of materials that will define the required raw materials.</field>
312 <menuitem action="mrp_routing_action" id="menu_mrp_routing_action" parent="mrp.menu_mrp_bom" groups="mrp.group_mrp_routings" sequence="15"/>
318 <record id="mrp_bom_form_view" model="ir.ui.view">
319 <field name="name">mrp.bom.form</field>
320 <field name="model">mrp.bom</field>
321 <field name="type">form</field>
322 <field name="arch" type="xml">
323 <form string="Bill of Material" version="7.0">
325 <label for="product_id" class="oe_edit_only"/>
327 <field name="product_id" on_change="onchange_product_id(product_id, name, context)" class="oe_inline"/>:
328 <field name="product_qty" class="oe_inline"/>
329 <field name="product_uom" class="oe_inline" groups="product.group_uom"/>
331 <label for="routing_id" class="oe_edit_only"/>
333 <field name="routing_id" groups="mrp.group_mrp_routings"/>
338 <field name="code" string="Reference"/>
342 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
343 <field name="product_uos_qty" groups="product.group_uos" />
344 <field name="product_uos" groups="product.group_uos"/>
348 <page string="Components">
349 <field name="bom_lines" widget="one2many_list">
350 <tree string="Components" editable="bottom">
351 <field name="product_id" on_change="onchange_product_id(product_id, name)"/>
352 <field name="product_qty"/>
353 <field name="product_uom" groups="product.group_uom"/>
354 <field name="name" invisible="1"/>
355 <field name="date_start"/>
356 <field name="date_stop"/>
360 <page string="Revisions" attrs="{'invisible': [('bom_id','!=',False)]}">
361 <field name="revision_ids"/>
363 <page string="Properties" groups="product.group_mrp_properties">
366 <field name="position"/>
367 <field name="bom_id"/>
368 <field name="sequence"/>
369 <field name="active"/>
372 <field name="date_start"/>
373 <field name="date_stop"/>
374 <field name="product_rounding"/>
375 <field name="product_efficiency"/>
378 <separator string="Properties"/>
379 <field name="property_ids" widget="many2many_tags" />
388 <record id="view_mrp_bom_filter" model="ir.ui.view">
389 <field name="name">mrp.bom.select</field>
390 <field name="model">mrp.bom</field>
391 <field name="type">search</field>
392 <field name="arch" type="xml">
393 <search string="Search Bill Of Material">
395 <field name="name" string="Bill Of Material" filter_domain="['|',('name','ilike',self),('code','ilike',self)]"/>
396 <separator orientation="vertical"/>
397 <field name="product_id"/>
398 <field name="company_id" groups="base.group_multi_company"/>
401 <group expand="0" string="Group By...">
402 <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
403 <filter string='Default Unit of Measure' icon="terp-mrp" domain="[]" context="{'group_by' : 'product_uom'}" />
404 <separator orientation="vertical"/>
405 <filter string="Routing" icon="terp-stock_align_left_24" domain="[]" context="{'group_by':'routing_id'}"/>
406 <filter string='Type' icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'type'}" />
407 <separator orientation="vertical"/>
408 <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_start'}" help="Starting Date"/>
414 <record id="mrp_bom_tree_view" model="ir.ui.view">
415 <field name="name">mrp.bom.tree</field>
416 <field name="model">mrp.bom</field>
417 <field name="type">tree</field>
418 <field name="field_parent">child_complete_ids</field>
419 <field name="arch" type="xml">
420 <tree string="Bill of Materials" colors="blue:method">
421 <field name="sequence" invisible="1"/>
424 <field name="product_id"/>
425 <field name="product_qty"/>
426 <field name="product_uom" groups="product.group_uom"/>
428 <field name="method"/>
429 <field name="routing_id" groups="mrp.group_mrp_routings"/>
430 <field name="date_start"/>
431 <field name="date_stop"/>
435 <record id="mrp_bom_component_tree_view" model="ir.ui.view">
436 <field name="name">mrp.bom.component.tree</field>
437 <field name="model">mrp.bom</field>
438 <field name="type">tree</field>
439 <field name="field_parent">child_complete_ids</field>
440 <field name="arch" type="xml">
441 <tree string="BoM Structure" colors="blue:method">
442 <field name="sequence" invisible="1"/>
443 <field name="name" string="Component Name"/>
445 <field name="product_id" string="Component Product"/>
446 <field name="bom_id"/>
447 <field name="product_qty"/>
448 <field name="product_uom" groups="product.group_uom"/>
450 <field name="method"/>
451 <field name="routing_id" groups="mrp.group_mrp_routings"/>
452 <field name="date_start"/>
453 <field name="date_stop"/>
457 <record id="mrp_bom_form_action" model="ir.actions.act_window">
458 <field name="name">Bill of Materials</field>
459 <field name="type">ir.actions.act_window</field>
460 <field name="res_model">mrp.bom</field>
461 <field name="view_type">form</field>
462 <field name="domain">[('bom_id','=',False)]</field>
463 <field name="search_view_id" ref="view_mrp_bom_filter"/>
464 <field name="help">Master Bills of Materials allow you to create and manage the list of necessary raw materials used to make a finished product. OpenERP will use these BoMs to automatically propose manufacturing orders according to product needs. You can either create a bill of materials to define specific production steps or define a single multi-level bill of materials.</field>
466 <record id="mrp_bom_form_action2" model="ir.actions.act_window">
467 <field name="name">Bill of Material Components</field>
468 <field name="type">ir.actions.act_window</field>
469 <field name="res_model">mrp.bom</field>
470 <field name="view_type">form</field>
471 <field name="view_id" ref="mrp_bom_component_tree_view"/>
472 <field name="domain">[('bom_id','!=',False)]</field>
473 <field name="help">Bills of materials components are components and sub-products used to create master bills of materials. Use this menu to search in which BoM a specific component is used.</field>
479 action="mrp_bom_form_action"
480 id="menu_mrp_bom_form_action"
481 parent="menu_mrp_bom"
484 action="mrp_bom_form_action2"
485 id="menu_mrp_bom_form_action2"
486 parent="menu_mrp_bom"
489 <record id="action2" model="ir.actions.act_window">
490 <field name="name">Bill of Materials Structure</field>
491 <field name="type">ir.actions.act_window</field>
492 <field name="res_model">mrp.bom</field>
493 <field name="domain">[('id','in',active_ids)]</field>
494 <field name="view_type">tree</field>
495 <field name="view_mode">tree</field>
496 <field name="view_id" ref="mrp_bom_tree_view"/>
498 <record id="ir_BOM_structure" model="ir.values">
499 <field eval="'client_action_multi'" name="key2"/>
500 <field eval="'mrp.bom'" name="model"/>
501 <field name="name">Bill of Materials Structure</field>
502 <field eval="'ir.actions.act_window,'+str(action2)" name="value"/>
505 <record id="mrp_bom_revision_tree" model="ir.ui.view">
506 <field name="name">mrp.bom.revision</field>
507 <field name="model">mrp.bom.revision</field>
508 <field name="type">tree</field>
509 <field name="arch" type="xml">
510 <tree string="BoM Revisions">
511 <field name="indice"/>
512 <field name="author_id"/>
514 <field colspan="4" name="name"/>
518 <record id="mrp_bom_revision_form" model="ir.ui.view">
519 <field name="name">mrp.bom.revision</field>
520 <field name="model">mrp.bom.revision</field>
521 <field name="type">form</field>
522 <field name="arch" type="xml">
523 <form string="BoM Revisions" version="7.0">
526 <field name="indice"/>
528 <field name="author_id" readonly="1"/>
530 <separator string="Description"/>
531 <field name="description"/>
537 Production Management
539 <record id="mrp_production_tree_view" model="ir.ui.view">
540 <field name="name">mrp.production.tree</field>
541 <field name="model">mrp.production</field>
542 <field name="type">tree</field>
543 <field name="arch" type="xml">
544 <tree fonts="bold:needaction_pending==True" colors="blue:state in ('draft','confirmed');red:date_planned<current_date and state not in ('done','cancel');black:date_planned>=current_date and state not in ('done','cancel');gray:state in ('done','cancel')" string="Manufacturing Orders">
545 <field name="needaction_pending" invisible="1"/>
547 <field name="date_planned"/>
548 <field name="product_id"/>
549 <field name="product_qty" sum="Total Qty"/>
550 <field name="product_uom" groups="product.group_uom"/>
551 <field name="routing_id" groups="mrp.group_mrp_routings"/>
552 <field name="hour_total" sum="Total Hours"/>
553 <field name="cycle_total" sum="Total Cycles"/>
554 <field name="origin"/>
555 <field name="state"/>
560 <record id="view_production_calendar" model="ir.ui.view">
561 <field name="name">mrp.production.calendar</field>
562 <field name="model">mrp.production</field>
563 <field name="type">calendar</field>
564 <field eval="2" name="priority"/>
565 <field name="arch" type="xml">
566 <calendar color="routing_id" date_start="date_planned" string="Manufacturing Orders">
568 <field name="product_id"/>
569 <field name="product_qty"/>
575 <record id="view_production_gantt" model="ir.ui.view">
576 <field name="name">mrp.production.gantt</field>
577 <field name="model">mrp.production</field>
578 <field name="type">gantt</field>
579 <field name="arch" type="xml">
580 <gantt date_stop="date_finished" date_start="date_start" string="Productions" default_group_by="routing_id">
586 <record model="ir.ui.view" id="view_production_graph">
587 <field name="name">mrp.production.graph</field>
588 <field name="model">mrp.production</field>
589 <field name="type">graph</field>
590 <field name="arch" type="xml">
591 <graph string="Manufacturing Orders" type="bar">
592 <field name="date_planned_date"/>
593 <field name="hour_total" operator="+"/>
594 <field name="cycle_total" operator="+"/>
599 <record id="mrp_production_form_view" model="ir.ui.view">
600 <field name="name">mrp.production.form</field>
601 <field name="model">mrp.production</field>
602 <field name="type">form</field>
603 <field name="arch" type="xml">
604 <form string="Manufacturing Orders" version="7.0">
606 <button name="button_confirm" states="draft" string="Confirm Production" class="oe_form_button_hi"/>
607 <button name="button_produce" states="ready" string="Start Production" class="oe_form_button_hi"/>
608 <button name="%(act_mrp_product_produce)d" states="in_production" string="Produce" type="action" class="oe_form_button_hi"/>
609 <button name="force_production" states="confirmed,picking_except" string="Force Reservation" type="object"/>
610 <button name="button_recreate" states="picking_except" string="Recreate Picking"/>
611 <button name="button_cancel" states="draft,ready,in_production,picking_except" string="Cancel"/>
612 <button name="action_cancel" type="object" states="confirmed" string="Cancel"/>
613 <field name="state" widget="statusbar" statusbar_visible="draft,ready,in_production,done" statusbar_colors='{"picking_except":"red","confirmed":"blue"}'/>
616 <label for="product_id" class="oe_edit_only"/>
618 <field name="product_id" on_change="product_id_change(product_id)" domain="[('supply_method','=','produce')]" class="oe_inline"/>
619 <field name="product_qty" class="oe_inline"/>
620 <field name="product_uom" class="oe_inline" groups="product.group_uom"/>
621 <button type="action"
622 icon="terp-accessories-archiver+" class="oe_inline"
623 name="%(mrp.action_change_production_qty)d"
624 string="Change Quantity" states="ready,confirmed" />
626 <label for="routing_id" groups="mrp.group_mrp_routings" class="oe_edit_only"/>
628 <field name="routing_id" groups="mrp.group_mrp_routings"/>
633 <field name="date_planned"/>
634 <field name="origin"/>
637 <field name="user_id"/>
638 <field name="product_uos_qty" groups="product.group_uos"/>
639 <field name="product_uos" groups="product.group_uos"/>
643 <page string="Consumed Products">
646 <field name="location_src_id" domain="[('usage','=','internal')]" on_change="location_id_change(location_src_id,location_dest_id)" groups="stock.group_locations"/>
647 <field name="location_dest_id" domain="[('usage','=','internal')]" groups="stock.group_locations"/>
650 <field name="bom_id" domain="[('product_id','=',product_id)]" context="{'default_product_id': product_id}" on_change="bom_id_change(bom_id)"/>
655 <field name="move_lines" domain="[('state','<>', ('done', 'cancel'))]">
656 <tree colors="blue:state == 'draft';black:state in ('picking_except','confirmed','ready','in_production');gray:state in ('cancel','done') " string="Products to Consume">
657 <field name="product_id"/>
658 <field name="product_qty"/>
659 <field name="product_uom" string="Unit of Measure" groups="product.group_uom"/>
660 <field name="location_id" string="Source Loc." groups="stock.group_locations"/>
661 <field name="state" invisible="1"/>
662 <button name="%(stock.move_consume)d"
663 string="Consume Products" type="action"
664 icon="gtk-go-forward" context="{'consume': True}"
665 states="draft,waiting,confirmed,assigned" />
667 name="%(stock.track_line)d"
668 string="Split in Serial Numbers"
669 type="action" icon="gtk-justify-fill"
670 states="draft,waiting,confirmed,assigned" />
671 <button name="%(stock.move_scrap)d"
672 string="Scrap Products" type="action"
673 icon="gtk-convert" context="{'scrap': True}"
674 states="draft,waiting,confirmed,assigned"/>
677 <field name="move_lines2" domain="[('state','in', ('done', 'cancel'))]">
678 <tree colors="red:scrapped==True;blue:state == 'draft';black:state in('picking_except','confirmed','ready','in_production');gray:state == 'cancel' " string="Consumed Products" editable="bottom">
679 <field name="product_id" readonly="1"/>
680 <field name="product_qty" readonly="1"/>
681 <field name="product_uom" readonly="1" string="Unit of Measure" groups="product.group_uom"/>
682 <field name="prodlot_id" context="{'product_id': product_id}"/>
683 <field name="state" invisible="1"/>
684 <field name="scrapped" invisible="1"/>
686 name="%(stock.move_scrap)d"
687 string="Scrap Products" type="action"
689 states="done,cancel"/>
694 <page string="Finished Products">
696 <field name="move_created_ids" domain="[('state','<>', ('done', 'cancel'))]">
697 <tree string="Products to Finish">
698 <field name="product_id"/>
699 <field name="product_qty"/>
700 <field name="product_uom" string="Unit of Measure" groups="product.group_uom"/>
701 <field name="state" invisible="1"/>
702 <button name="%(stock.action_partial_move_server)d"
704 type="action" states="confirmed,assigned"
705 icon="gtk-justify-fill"/>
706 <button name="%(stock.move_scrap)d"
707 string="Scrap Products" type="action"
708 icon="gtk-convert" context="{'scrap': True}"
709 states="draft,waiting,confirmed,assigned" />
712 <field name="move_created_ids2" domain="[('state','in', ('done', 'cancel'))]">
713 <tree colors="red:scrapped==True;blue:state == 'draft';black:state in('picking_except','confirmed','ready','in_production');gray:state in('cancel','done') " string="Finished Products">
714 <field name="product_id" readonly="1"/>
715 <field name="product_qty" readonly="1"/>
716 <field name="product_uom" readonly="1" string="Unit of Measure" groups="product.group_uom"/>
717 <field name="location_dest_id" readonly="1" string="Destination Loc." widget="selection" groups="stock.group_locations"/>
718 <field name="prodlot_id" context="{'product_id': product_id}"/>
719 <field name="scrapped" invisible="1"/>
720 <field name="state" invisible="1"/>
721 <button name="%(stock.track_line)d"
722 string="Split in Serial Numbers" type="action" icon="gtk-justify-fill" states="done,cancel"/>
723 <button name="%(stock.move_scrap)d"
724 string="Scrap Products" type="action" icon="gtk-convert"
725 states="done,cancel" />
730 <page string="Work Orders">
731 <button name="action_compute" states="draft"
732 string="Compute Data" type="object"
733 icon="terp-stock_format-scientific"/>
734 <field name="workcenter_lines">
735 <form string="Production Work Centers" version="7.0">
737 <field colspan="4" name="name"/>
738 <field name="workcenter_id" widget="selection"/>
739 <field name="sequence"/>
740 <field name="cycle"/>
744 <tree string="Production Work Centers">
745 <field name="sequence"/>
747 <field name="workcenter_id" widget="selection"/>
748 <field name="cycle"/>
753 <page string="Scheduled Products">
754 <button name="action_compute" states="draft"
755 string="Compute Data" type="object"
756 icon="terp-stock_format-scientific"/>
757 <field name="product_lines"/>
759 <page string="Extra Information">
761 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
762 <field name="priority"/>
763 <field name="date_start"/>
764 <field name="date_finished"/>
765 <field name="picking_id"/>
766 <field name="move_prod_id" groups="stock.group_locations"/>
772 <field name="message_ids" widget="ThreadView"/>
778 <record id="view_mrp_production_filter" model="ir.ui.view">
779 <field name="name">mrp.production.select</field>
780 <field name="model">mrp.production</field>
781 <field name="type">search</field>
782 <field name="arch" type="xml">
783 <search string="Search Production">
785 <field name="name" string="Production" filter_domain="['|',('name','ilike',self),('origin','ilike',self)]"/>
786 <separator orientation="vertical"/>
787 <filter icon="terp-gtk-media-pause" string="Pending" name="pending"
788 domain="[('state','=','confirmed')]"
789 help="Manufacturing Orders which are waiting for raw materials."/>
790 <filter icon="terp-camera_test" string="Ready" name="ready"
791 domain="[('state','=','ready')]"
792 help="Manufacturing Orders which are ready to start production."/>
793 <filter icon="terp-check" string="In Production" name="inprogress"
794 domain="[('state','=','in_production')]"
795 help="Manufacturing Orders which are currently in production."/>
796 <filter icon="terp-gnome-cpu-frequency-applet+" string="Late"
797 domain="['&', ('date_planned','<', current_date), ('state', 'in', ('draft', 'confirmed', 'ready'))]"
798 help="Production started late" />
799 <separator orientation="vertical"/>
800 <field name="product_id"/>
801 <field name="routing_id" groups="mrp.group_mrp_routings"/>
804 <group expand="0" string="Group By...">
805 <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
806 <separator orientation="vertical"/>
807 <filter string="Routing" icon="terp-stock_align_left_24" domain="[]" context="{'group_by':'routing_id'}"/>
808 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
809 <separator orientation="vertical"/>
810 <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_planned'}" help="Scheduled Date"/>
816 <record id="mrp_production_action" model="ir.actions.act_window">
817 <field name="name">Manufacturing Orders</field>
818 <field name="type">ir.actions.act_window</field>
819 <field name="res_model">mrp.production</field>
820 <field name="view_type">form</field>
821 <field name="view_mode">tree,form,calendar,graph,gantt</field>
822 <field name="view_id" eval="False"/>
823 <field name="search_view_id" ref="view_mrp_production_filter"/>
824 <field name="context">{}</field>
825 <field name="help">Click here to create a new Manufacturing Order.
827 To process the production, don't forget to create a Bill of Material. Manufacturing Order can be automatically generated based on procurement rules specified on the product.</field>
829 <menuitem action="mrp_production_action" id="menu_mrp_production_action"
830 parent="menu_mrp_manufacturing" sequence="1"/>
832 <record id="mrp_production_action_planning" model="ir.actions.act_window">
833 <field name="name">Manufacturing Orders</field>
834 <field name="type">ir.actions.act_window</field>
835 <field name="res_model">mrp.production</field>
836 <field name="view_type">form</field>
837 <field name="view_mode">calendar,tree,form,graph</field>
838 <field name="domain">[('state','in',('ready','confirmed','in_production'))]</field>
839 <field name="help">Manufacturing Orders describe the operations that need to be carried out and the raw materials usage for each production stage. You use specifications (bills of materials or BoM) to work out the raw material requirements and the manufacturing orders needed for the finished products. Once the bills of materials have been defined, OpenERP is capable of automatically deciding on the manufacturing route depending on the needs of the company.</field>
842 <record id="mrp_production_action2" model="ir.actions.act_window">
843 <field name="name">Manufacturing Orders To Start</field>
844 <field name="type">ir.actions.act_window</field>
845 <field name="res_model">mrp.production</field>
846 <field name="view_type">form</field>
847 <field name="view_mode">tree,form,calendar,graph,gantt</field>
848 <field name="domain">[('state','=','ready')]</field>
849 <field name="filter" eval="True"/>
850 <field name="search_view_id" ref="view_mrp_production_filter"/>
853 <record id="mrp_production_action3" model="ir.actions.act_window">
854 <field name="name">Manufacturing Orders in Progress</field>
855 <field name="type">ir.actions.act_window</field>
856 <field name="res_model">mrp.production</field>
857 <field name="view_type">form</field>
858 <field name="view_mode">tree,form,calendar,graph,gantt</field>
859 <field name="domain">[('state','=','in_production')]</field>
860 <field name="filter" eval="True"/>
861 <field name="search_view_id" ref="view_mrp_production_filter"/>
864 <record id="mrp_production_action4" model="ir.actions.act_window">
865 <field name="name">Manufacturing Orders Waiting Products</field>
866 <field name="type">ir.actions.act_window</field>
867 <field name="res_model">mrp.production</field>
868 <field name="view_type">form</field>
869 <field name="view_mode">tree,form,calendar,graph,gantt</field>
870 <field name="domain">[('state','=','confirmed')]</field>
871 <field name="filter" eval="True"/>
872 <field name="search_view_id" ref="view_mrp_production_filter"/>
875 <record id="mrp_production_product_form_view" model="ir.ui.view">
876 <field name="name">mrp.production.product.line.form</field>
877 <field name="model">mrp.production.product.line</field>
878 <field name="type">form</field>
879 <field name="arch" type="xml">
880 <form string="Scheduled Products" version="7.0">
883 <field name="product_id"/>
884 <field name="product_qty"/>
885 <field name="product_uom" groups="product.group_uom"/>
886 <field name="product_uos_qty" groups="product.group_uos"/>
887 <field name="product_uos" groups="product.group_uos"/>
892 <record id="mrp_production_product_tree_view" model="ir.ui.view">
893 <field name="name">mrp.production.product.line.tree</field>
894 <field name="model">mrp.production.product.line</field>
895 <field name="type">tree</field>
896 <field name="arch" type="xml">
897 <tree string="Scheduled Products">
898 <field name="product_id"/>
899 <field name="product_qty"/>
900 <field name="product_uom" groups="product.group_uom"/>
901 <field name="product_uos_qty" groups="product.group_uos"/>
902 <field name="product_uos" groups="product.group_uos"/>
911 <record id="view_procurement_form_inherit" model="ir.ui.view">
912 <field name="name">procurement.order.form.inherit</field>
913 <field name="model">procurement.order</field>
914 <field name="inherit_id" ref="procurement.procurement_form_view"/>
915 <field name="type">form</field>
916 <field name="arch" type="xml">
918 <xpath expr="//field[@name='move_id']" position="before">
919 <field name="bom_id" domain="[('product_id','=',product_id),('bom_id','=',False)]"/>
921 <xpath expr="//field[@name='close_move']" position="after">
922 <group colspan="4" groups="product.group_mrp_properties">
923 <separator colspan="4" string="Properties" />
924 <field colspan="4" name="property_ids" nolabel="1"/>
931 <record id="product_normal_form_view" model="ir.ui.view">
932 <field name="name">product.normal.form.mrp.inherit</field>
933 <field name="model">product.product</field>
934 <field name="type">form</field>
935 <field name="inherit_id" ref="product.product_normal_form_view"/>
936 <field name="arch" type="xml">
937 <group name="misc" position="after">
938 <separator string="Bill of Materials" colspan="4"/>
939 <field name="bom_ids" nolabel="1" colspan="4" context="{'default_product_id': active_id}" widget="one2many_list"
941 <tree string="Bill of Materials">
942 <field name="name" string="Component Name"/>
943 <field name="bom_id"/>
944 <field name="product_qty" string="Quantity of Product"/>
946 <field name="date_start"/>
947 <field name="date_stop"/>
955 context="{'search_default_product_id': [active_id]}"
956 id="act_product_manufacturing_open"
957 name="Manufacturing Orders"
958 view_id="mrp_production_tree_view"
959 res_model="mrp.production"
960 src_model="product.product"/>
963 id="action_product_bom_structure"
964 name="Product BoM Structure"
965 domain="[('product_id', 'in', active_ids),('bom_id','=',False)]"
966 context="{'default_product_id': active_id}"
969 view_id="mrp_bom_tree_view"
971 src_model="product.product"
972 groups="mrp.group_mrp_user"/>
974 <!-- Menu for Resource for MRP-->
976 <record id="mrp_workcenter_action" model="ir.actions.act_window">
977 <field name="name">Work Centers</field>
978 <field name="type">ir.actions.act_window</field>
979 <field name="res_model">mrp.workcenter</field>
980 <field name="view_type">form</field>
981 <field name="view_id" ref="mrp_workcenter_tree_view"/>
982 <field name="search_view_id" ref="view_mrp_workcenter_search"/>
983 <field name="help">Work Centers allow you to create and manage manufacturing units. They consist of workers and/or machines, which are considered as units for capacity and planning forecast. Keep in mind that the working time and resource leave are not taken into account in the time computation of the work center.</field>
986 <menuitem id="menu_pm_resources_config" name="Resources" parent="menu_mrp_configuration"/>
987 <menuitem action="mrp_workcenter_action" id="menu_view_resource_search_mrp" groups="mrp.group_mrp_routings" parent="mrp.menu_mrp_bom" sequence="25"/>
988 <menuitem action="resource.action_resource_calendar_form" id="menu_view_resource_calendar_search_mrp" parent="menu_pm_resources_config" sequence="1" groups="base.group_no_one"/>
989 <menuitem action="resource.action_resource_calendar_leave_tree" id="menu_view_resource_calendar_leaves_search_mrp" parent="menu_pm_resources_config" sequence="1" groups="base.group_no_one"/>
993 <menuitem id="menu_mrp_planning" name="Planning"
994 parent="base.menu_mrp_root" sequence="2"/>
995 <menuitem action="mrp.mrp_production_action_planning"
996 id="menu_mrp_production_order_action" name="Orders Planning"
997 parent="menu_mrp_planning" sequence="1"/>