1 <?xml version="1.0" encoding="utf-8"?>
6 <menuitem name="Manufacturing"
7 id="base.menu_mrp_root"
8 groups="group_mrp_user,group_mrp_manager"
11 <menuitem name="Manufacturing"
12 id="menu_mrp_manufacturing"
13 parent="base.menu_mrp_root"
16 <menuitem name="Master Data"
18 parent="base.menu_mrp_root"
22 Property / Property Group
25 <record id="mrp_property_group_form_view" model="ir.ui.view">
26 <field name="name">mrp.property.group.form</field>
27 <field name="model">mrp.property.group</field>
28 <field name="type">form</field>
29 <field name="arch" type="xml">
30 <form string="Properties categories" version="7.0">
33 <label name="description"/>
34 <field name="description"/>
38 <record id="mrp_property_group_action" model="ir.actions.act_window">
39 <field name="name">Property Groups</field>
40 <field name="type">ir.actions.act_window</field>
41 <field name="res_model">mrp.property.group</field>
42 <field name="view_type">form</field>
43 <field name="view_mode">tree,form</field>
45 Define specific property groups that can be assigned to the properties of your bill of materials.
49 id="menu_mrp_configuration"
51 parent="base.menu_mrp_root"
52 groups="group_mrp_manager"
55 <record id="mrp_property_tree_view" model="ir.ui.view">
56 <field name="name">mrp.property.tree</field>
57 <field name="model">mrp.property</field>
58 <field name="type">tree</field>
59 <field name="arch" type="xml">
60 <tree string="Properties">
62 <field name="composition"/>
63 <field name="group_id"/>
67 <record id="mrp_property_form_view" model="ir.ui.view">
68 <field name="name">mrp.property.form</field>
69 <field name="model">mrp.property</field>
70 <field name="type">form</field>
71 <field name="arch" type="xml">
72 <form string="Properties" version="7.0">
74 <field colspan="4" name="name"/>
75 <field name="group_id"/>
76 <field name="composition"/>
78 <label for="description"/>
79 <field name="description"/>
84 <record id="view_mrp_property_search" model="ir.ui.view">
85 <field name="name">mrp.property.search</field>
86 <field name="model">mrp.property</field>
87 <field name="type">search</field>
88 <field name="arch" type="xml">
89 <search string="Search">
91 <field name="name" string="Name"/>
92 <separator orientation="vertical"/>
93 <field name="group_id" widget="selection"/>
94 <field name="composition"/>
97 <group expand="0" string="Group By...">
98 <filter string="Property Group" icon="terp-personal" domain="[]" context="{'group_by':'group_id'}"/>
105 <record id="mrp_property_action" model="ir.actions.act_window">
106 <field name="name">Properties</field>
107 <field name="type">ir.actions.act_window</field>
108 <field name="res_model">mrp.property</field>
109 <field name="view_type">form</field>
110 <field name="view_mode">tree,form</field>
111 <field name="search_view_id" ref="view_mrp_property_search"/>
113 The Properties in OpenERP are used to select the right bill of materials for manufacturing
114 a product when you have different ways of building the same product.
115 You can assign several properties to each bill of materials.
116 When a salesperson creates a sale order, they can relate it to several properties
117 and OpenERP will automatically select the BoM to use according the needs.
120 <menuitem name="Master Bill of Materials"
121 id="menu_mrp_property"
122 parent="menu_mrp_configuration"
123 groups="mrp.group_mrp_routings,product.group_mrp_properties"
126 action="mrp_property_action"
127 id="menu_mrp_property_action"
128 groups="product.group_mrp_properties"
129 parent="menu_mrp_configuration"
132 action="mrp_property_group_action"
133 parent="menu_mrp_configuration"
134 groups="base.group_no_one,product.group_mrp_properties"
135 id="menu_mrp_property_group_action"
142 <record id="mrp_workcenter_tree_view" model="ir.ui.view">
143 <field name="name">mrp.workcenter.tree</field>
144 <field name="model">mrp.workcenter</field>
145 <field name="type">tree</field>
146 <field name="arch" type="xml">
147 <tree string="Work Center">
150 <field name="resource_type"/>
151 <field name="company_id" groups="base.group_multi_company"/>
155 <record id="mrp_workcenter_view" model="ir.ui.view">
156 <field name="name">mrp.workcenter.form</field>
157 <field name="model">mrp.workcenter</field>
158 <field name="type">form</field>
159 <field name="arch" type="xml">
160 <form string="Work Center" version="7.0">
164 <field name="resource_type"/>
165 <field name="calendar_id" widget="selection"/>
169 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
170 <field name="active"/>
174 <page string="General Information">
176 <group string="Capacity Information">
177 <field name="time_efficiency"/>
178 <field name="capacity_per_cycle"/>
179 <field name="time_cycle" widget="float_time"/>
180 <field name="time_start" widget="float_time"/>
181 <field name="time_stop" widget="float_time"/>
183 <group string="Costing Information">
184 <field name="product_id" on_change="on_change_product_cost(product_id)"/>
185 <field name="costs_hour"/>
186 <field name="costs_hour_account_id" groups="analytic.group_analytic_accounting"/>
187 <field name="costs_cycle"/>
188 <field name="costs_cycle_account_id" groups="analytic.group_analytic_accounting"/>
189 <field name="costs_journal_id" attrs="{'required':['|',('costs_hour_account_id', '=', True),('costs_cycle_account_id', '=', True)]}" groups="analytic.group_analytic_accounting"/>
190 <field name="costs_general_account_id" attrs="{ 'required':['|',('costs_cycle_account_id', '=', True),('costs_hour_account_id', '=', True)]}" groups="analytic.group_analytic_accounting"/>
201 <!-- Search Views -->
203 <record id="view_mrp_workcenter_search" model="ir.ui.view">
204 <field name="name">mrp.workcenter.search</field>
205 <field name="model">mrp.workcenter</field>
206 <field name="type">search</field>
207 <field name="arch" type="xml">
208 <search string="Search for mrp workcenter">
210 <field name="name" string="Mrp Workcenter" filter_domain="['|',('name','ilike',self),('code','ilike',self)]"/>
211 <separator orientation="vertical"/>
212 <filter string="Inactive" icon="terp-gdu-smart-failing" domain="[('active','=',False)]"/>
213 <separator orientation="vertical"/>
214 <field name="resource_type"/>
217 <group expand="0" string="Group By...">
218 <filter string="Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'resource_type'}"/>
219 <separator orientation="vertical" groups="base.group_multi_company"/>
220 <filter string="Company" icon="terp-go-home" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
230 <record id="mrp_routing_workcenter_tree_view" model="ir.ui.view">
231 <field name="name">mrp.routing.workcenter.tree</field>
232 <field name="model">mrp.routing.workcenter</field>
233 <field name="type">tree</field>
234 <field name="arch" type="xml">
235 <tree string="Routing Work Centers">
236 <field name="sequence"/>
238 <field name="workcenter_id"/>
239 <field name="cycle_nbr"/>
240 <field name="hour_nbr"/>
241 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
246 <record id="mrp_routing_workcenter_form_view" model="ir.ui.view">
247 <field name="name">mrp.routing.workcenter.form</field>
248 <field name="model">mrp.routing.workcenter</field>
249 <field name="type">form</field>
250 <field name="arch" type="xml">
251 <form string="Routing Work Centers" version="7.0">
252 <group col="4" string="General Information">
253 <field colspan="4" name="name"/>
254 <field name="sequence"/>
255 <field name="workcenter_id"/>
256 <field name="cycle_nbr"/>
257 <field name="hour_nbr" widget="float_time"/>
258 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
266 <record id="mrp_routing_form_view" model="ir.ui.view">
267 <field name="name">mrp.routing.form</field>
268 <field name="model">mrp.routing</field>
269 <field name="type">form</field>
270 <field name="arch" type="xml">
271 <form string="Routing" version="7.0">
278 <field name="location_id"/>
279 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
280 <field name="active"/>
284 <page string="Work Center Operations">
285 <field name="workcenter_lines"/>
287 <page string="Notes">
294 <record id="mrp_routing_tree_view" model="ir.ui.view">
295 <field name="name">mrp.routing.tree</field>
296 <field name="model">mrp.routing</field>
297 <field name="type">tree</field>
298 <field name="arch" type="xml">
299 <tree string="Routing">
302 <field name="location_id"/>
303 <field name="company_id" groups="base.group_multi_company"/>
307 <record id="mrp_routing_search_view" model="ir.ui.view">
308 <field name="name">mrp.routing.search</field>
309 <field name="model">mrp.routing</field>
310 <field name="type">search</field>
311 <field name="arch" type="xml">
312 <search string="Routing">
313 <field name="name" string="Routing" filter_domain="['|',('name','ilike',self),('code','ilike',self)]"/>
314 <separator orientation="vertical"/>
315 <filter string="Inactive" icon="terp-gdu-smart-failing" domain="[('active','=',False)]"/>
316 <separator orientation="vertical"/>
317 <field name="location_id"/>
318 <field name="company_id" groups="base.group_multi_company"/>
319 <group expand="0" string="Group By...">
320 <filter string="Production Location" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'location_id'}"/>
325 <record id="mrp_routing_action" model="ir.actions.act_window">
326 <field name="name">Routings</field>
327 <field name="type">ir.actions.act_window</field>
328 <field name="res_model">mrp.routing</field>
329 <field name="view_type">form</field>
330 <field name="view_id" ref="mrp_routing_tree_view"/>
331 <field name="search_view_id" ref="mrp_routing_search_view"/>
333 Routings allow you to create and manage the manufacturing operations that should be
334 followed within your work centers in order to produce a product.
335 They are attached to bills of materials that will define the required raw materials.
338 <menuitem action="mrp_routing_action" id="menu_mrp_routing_action" parent="mrp.menu_mrp_bom" groups="mrp.group_mrp_routings" sequence="15"/>
344 <record id="mrp_bom_form_view" model="ir.ui.view">
345 <field name="name">mrp.bom.form</field>
346 <field name="model">mrp.bom</field>
347 <field name="type">form</field>
348 <field name="arch" type="xml">
349 <form string="Bill of Material" version="7.0">
350 <label for="product_id" string="Product and Quantity" class="oe_edit_only"/>
352 <field name="product_id" on_change="onchange_product_id(product_id, name, context)" class="oe_inline"/>:
353 <field name="product_qty" class="oe_inline"/>
354 <field name="product_uom" class="oe_inline" groups="product.group_uom"/>
356 <div groups="mrp.group_mrp_routings">
357 <label for="routing_id" class="oe_edit_only"/>
358 <h2><field name="routing_id" class="oe_inline"/></h2>
363 <field name="code" string="Reference"/>
367 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
368 <label for="product_uos_qty" groups="product.group_uos"/>
369 <div groups="product.group_uos" >
370 <field name="product_uos_qty"
372 <label string="-" attrs="{'invisible':[('product_uos','=',False)]}" class="oe_inline"/>
373 <field name="product_uos" class="oe_inline"/>
378 <page string="Components">
379 <field name="bom_lines" widget="one2many_list">
380 <tree string="Components" editable="bottom">
381 <field name="product_id" on_change="onchange_product_id(product_id, name)"/>
382 <field name="product_qty"/>
383 <field name="product_uom" groups="product.group_uom"/>
384 <field name="name" invisible="1"/>
385 <field name="date_start"/>
386 <field name="date_stop"/>
390 <page string="Revisions" attrs="{'invisible': [('bom_id','!=',False)]}">
391 <field name="revision_ids"/>
393 <page string="Properties" groups="product.group_mrp_properties">
396 <field name="position"/>
397 <field name="bom_id"/>
398 <field name="sequence"/>
399 <field name="active"/>
402 <field name="date_start"/>
403 <field name="date_stop"/>
404 <field name="product_rounding"/>
405 <field name="product_efficiency"/>
408 <separator string="Properties"/>
409 <field name="property_ids" widget="many2many_tags"/>
416 <record id="view_mrp_bom_filter" model="ir.ui.view">
417 <field name="name">mrp.bom.select</field>
418 <field name="model">mrp.bom</field>
419 <field name="type">search</field>
420 <field name="arch" type="xml">
421 <search string="Search Bill Of Material">
423 <field name="name" string="Bill Of Material" filter_domain="['|',('name','ilike',self),('code','ilike',self)]"/>
424 <separator orientation="vertical"/>
425 <field name="product_id"/>
426 <field name="company_id" groups="base.group_multi_company"/>
429 <group expand="0" string="Group By...">
430 <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
431 <filter string='Default Unit of Measure' icon="terp-mrp" domain="[]" context="{'group_by' : 'product_uom'}"/>
432 <separator orientation="vertical"/>
433 <filter string="Routing" icon="terp-stock_align_left_24" domain="[]" context="{'group_by':'routing_id'}"/>
434 <filter string='Type' icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'type'}"/>
435 <separator orientation="vertical"/>
436 <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_start'}" help="Starting Date"/>
442 <record id="mrp_bom_tree_view" model="ir.ui.view">
443 <field name="name">mrp.bom.tree</field>
444 <field name="model">mrp.bom</field>
445 <field name="type">tree</field>
446 <field name="field_parent">child_complete_ids</field>
447 <field name="arch" type="xml">
448 <tree string="Bill of Materials" colors="blue:method">
449 <field name="sequence" invisible="1"/>
452 <field name="product_id"/>
453 <field name="product_qty"/>
454 <field name="product_uom" groups="product.group_uom"/>
456 <field name="method"/>
457 <field name="routing_id" groups="mrp.group_mrp_routings"/>
458 <field name="date_start"/>
459 <field name="date_stop"/>
463 <record id="mrp_bom_component_tree_view" model="ir.ui.view">
464 <field name="name">mrp.bom.component.tree</field>
465 <field name="model">mrp.bom</field>
466 <field name="type">tree</field>
467 <field name="field_parent">child_complete_ids</field>
468 <field name="arch" type="xml">
469 <tree string="BoM Structure" colors="blue:method">
470 <field name="sequence" invisible="1"/>
471 <field name="name" string="Component Name"/>
473 <field name="product_id" string="Component Product"/>
474 <field name="bom_id"/>
475 <field name="product_qty"/>
476 <field name="product_uom" groups="product.group_uom"/>
478 <field name="method"/>
479 <field name="routing_id" groups="mrp.group_mrp_routings"/>
480 <field name="date_start"/>
481 <field name="date_stop"/>
485 <record id="mrp_bom_form_action" model="ir.actions.act_window">
486 <field name="name">Bill of Materials</field>
487 <field name="type">ir.actions.act_window</field>
488 <field name="res_model">mrp.bom</field>
489 <field name="view_type">form</field>
490 <field name="domain">[('bom_id','=',False)]</field>
491 <field name="search_view_id" ref="view_mrp_bom_filter"/>
493 Master Bills of Materials allow you to create and manage the list of necessary
494 raw materials used to make a finished product.
495 OpenERP uses these BoMs to automatically propose manufacturing orders according to product needs.
496 You can either create a bill of materials to define specific production steps,
497 or define a single multi-level bill of materials.
500 <record id="mrp_bom_form_action2" model="ir.actions.act_window">
501 <field name="name">Bill of Material Components</field>
502 <field name="type">ir.actions.act_window</field>
503 <field name="res_model">mrp.bom</field>
504 <field name="view_type">form</field>
505 <field name="view_id" ref="mrp_bom_component_tree_view"/>
506 <field name="domain">[('bom_id','!=',False)]</field>
508 Bills of materials components are components and sub-products used to create master bills of materials.
509 Use this menu to search in which BoM a specific component is used.
516 action="mrp_bom_form_action"
517 id="menu_mrp_bom_form_action"
518 parent="menu_mrp_bom"
521 action="mrp_bom_form_action2"
522 id="menu_mrp_bom_form_action2"
523 parent="menu_mrp_configuration"
526 <record id="action2" model="ir.actions.act_window">
527 <field name="name">Bill of Materials Structure</field>
528 <field name="type">ir.actions.act_window</field>
529 <field name="res_model">mrp.bom</field>
530 <field name="domain">[('id','in',active_ids)]</field>
531 <field name="view_type">tree</field>
532 <field name="view_mode">tree</field>
533 <field name="view_id" ref="mrp_bom_tree_view"/>
535 <record id="ir_BOM_structure" model="ir.values">
536 <field eval="'client_action_multi'" name="key2"/>
537 <field eval="'mrp.bom'" name="model"/>
538 <field name="name">Bill of Materials Structure</field>
539 <field eval="'ir.actions.act_window,'+str(action2)" name="value"/>
542 <record id="mrp_bom_revision_tree" model="ir.ui.view">
543 <field name="name">mrp.bom.revision</field>
544 <field name="model">mrp.bom.revision</field>
545 <field name="type">tree</field>
546 <field name="arch" type="xml">
547 <tree string="BoM Revisions">
548 <field name="indice"/>
549 <field name="author_id"/>
551 <field colspan="4" name="name"/>
555 <record id="mrp_bom_revision_form" model="ir.ui.view">
556 <field name="name">mrp.bom.revision</field>
557 <field name="model">mrp.bom.revision</field>
558 <field name="type">form</field>
559 <field name="arch" type="xml">
560 <form string="BoM Revisions" version="7.0">
563 <field name="indice"/>
565 <field name="author_id" readonly="1"/>
567 <separator string="Description"/>
568 <field name="description"/>
574 Production Management
576 <record id="mrp_production_tree_view" model="ir.ui.view">
577 <field name="name">mrp.production.tree</field>
578 <field name="model">mrp.production</field>
579 <field name="type">tree</field>
580 <field name="arch" type="xml">
581 <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;gray:state in ('done','cancel') " string="Manufacturing Orders">
582 <field name="needaction_pending" invisible="1"/>
584 <field name="date_planned"/>
585 <field name="product_id"/>
586 <field name="product_qty" sum="Total Qty"/>
587 <field name="product_uom" groups="product.group_uom"/>
588 <field name="routing_id" groups="mrp.group_mrp_routings"/>
589 <field name="hour_total" sum="Total Hours"/>
590 <field name="cycle_total" sum="Total Cycles"/>
591 <field name="origin"/>
592 <field name="state"/>
597 <record id="view_production_calendar" model="ir.ui.view">
598 <field name="name">mrp.production.calendar</field>
599 <field name="model">mrp.production</field>
600 <field name="type">calendar</field>
601 <field eval="2" name="priority"/>
602 <field name="arch" type="xml">
603 <calendar color="routing_id" date_start="date_planned" string="Manufacturing Orders">
605 <field name="product_id"/>
606 <field name="product_qty"/>
612 <record id="view_production_gantt" model="ir.ui.view">
613 <field name="name">mrp.production.gantt</field>
614 <field name="model">mrp.production</field>
615 <field name="type">gantt</field>
616 <field name="arch" type="xml">
617 <gantt date_stop="date_finished" date_start="date_start" string="Productions" default_group_by="routing_id">
623 <record model="ir.ui.view" id="view_production_graph">
624 <field name="name">mrp.production.graph</field>
625 <field name="model">mrp.production</field>
626 <field name="type">graph</field>
627 <field name="arch" type="xml">
628 <graph string="Manufacturing Orders" type="bar">
629 <field name="date_planned_date"/>
630 <field name="hour_total" operator="+"/>
631 <field name="cycle_total" operator="+"/>
636 <record id="mrp_production_form_view" model="ir.ui.view">
637 <field name="name">mrp.production.form</field>
638 <field name="model">mrp.production</field>
639 <field name="type">form</field>
640 <field name="arch" type="xml">
641 <form string="Manufacturing Orders" version="7.0">
643 <button name="button_confirm" states="draft" string="Confirm Production" class="oe_highlight"/>
644 <button name="button_produce" states="ready" string="Start Production" class="oe_highlight"/>
645 <button name="%(act_mrp_product_produce)d" states="in_production" string="Produce" type="action" class="oe_highlight"/>
646 <button name="force_production" states="confirmed" string="Force Reservation" type="object" class="oe_highlight"/>
647 <button name="force_production" states="picking_except" string="Force Reservation" type="object"/>
648 <button name="button_recreate" states="picking_except" string="Recreate Picking"/>
649 <button name="button_cancel" states="draft,ready,in_production,picking_except" string="Cancel"/>
650 <button name="action_cancel" type="object" states="confirmed" string="Cancel"/>
651 <field name="state" widget="statusbar" statusbar_visible="draft,ready,in_production,done" statusbar_colors='{"picking_except":"red","confirmed":"blue"}'/>
654 <label for="product_id" class="oe_edit_only"/>
656 <field name="product_id" on_change="product_id_change(product_id)" domain="[('supply_method','=','produce')]" class="oe_inline"/>
658 <label for="product_qty" class="oe_edit_only"/>
660 <field name="product_qty" class="oe_inline"/>
661 <field name="product_uom" groups="product.group_uom" class="oe_inline"/>
662 <button type="action"
663 icon="terp-accessories-archiver+"
664 name="%(mrp.action_change_production_qty)d"
665 string="Change Qty" states="ready,confirmed" class="oe_inline"/>
667 <div groups="mrp.group_mrp_routings">
668 <label for="routing_id" class="oe_edit_only"/>
669 <h2><field name="routing_id" class="oe_inline"/></h2>
674 <field name="date_planned"/>
675 <field name="origin"/>
678 <field name="user_id"/>
679 <label for="product_uos_qty" groups="product.group_uos"/>
680 <div groups="product.group_uos">
681 <field name="product_uos_qty" class="oe_inline"/>
682 <label string="-" attrs="{'invisible':[('product_uos','=',False)]}" class="oe_inline"/>
683 <field name="product_uos" class="oe_inline"/>
688 <page string="Consumed Products">
690 <group groups="stock.group_locations">
691 <field name="bom_id" domain="[('product_id','=',product_id)]" context="{'default_product_id': product_id}" on_change="bom_id_change(bom_id)"/>
694 <field name="location_src_id" domain="[('usage','=','internal')]" on_change="location_id_change(location_src_id,location_dest_id)"/>
695 <field name="location_dest_id" domain="[('usage','=','internal')]"/>
699 <group string="Products to Consume">
700 <field name="move_lines" domain="[('state','<>', ('done', 'cancel'))]" nolabel="1">
701 <tree colors="blue:state == 'draft';black:state in ('picking_except','confirmed','ready','in_production');gray:state in ('cancel','done') " string="Products to Consume">
702 <field name="product_id"/>
703 <field name="product_qty" string="Quantity"/>
704 <field name="product_uom" string="Unit of Measure" groups="product.group_uom"/>
705 <field name="location_id" string="Source Loc." groups="stock.group_locations"/>
706 <field name="state" invisible="1"/>
707 <button name="%(stock.move_consume)d"
708 string="Consume Products" type="action"
709 icon="gtk-go-forward" context="{'consume': True}"
710 states="draft,waiting,confirmed,assigned"/>
712 name="%(stock.track_line)d"
713 string="Split in Serial Numbers"
714 type="action" icon="gtk-justify-fill"
715 states="draft,waiting,confirmed,assigned"/>
716 <button name="%(stock.move_scrap)d"
717 string="Scrap Products" type="action"
718 icon="gtk-convert" context="{'scrap': True}"
719 states="draft,waiting,confirmed,assigned"/>
723 <group string="Consumed Product">
724 <field name="move_lines2" domain="[('state','in', ('done', 'cancel'))]" nolabel="1">
725 <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">
726 <field name="product_id" readonly="1"/>
727 <field name="product_qty" readonly="1"/>
728 <field name="product_uom" readonly="1" string="Unit of Measure" groups="product.group_uom"/>
729 <field name="prodlot_id" context="{'product_id': product_id}"/>
730 <field name="state" invisible="1"/>
731 <field name="scrapped" invisible="1"/>
733 name="%(stock.move_scrap)d"
734 string="Scrap Products" type="action"
736 states="done,cancel"/>
742 <page string="Finished Products">
744 <group string="Products to Produce">
745 <field name="move_created_ids" domain="[('state','<>', ('done', 'cancel'))]" nolabel="1">
746 <tree string="Products to Finish">
747 <field name="product_id"/>
748 <field name="product_qty"/>
749 <field name="product_uom" string="Unit of Measure" groups="product.group_uom"/>
750 <field name="state" invisible="1"/>
751 <button name="%(stock.action_partial_move_server)d"
753 type="action" states="confirmed,assigned"
754 icon="gtk-justify-fill"/>
755 <button name="%(stock.move_scrap)d"
756 string="Scrap Products" type="action"
757 icon="gtk-convert" context="{'scrap': True}"
758 states="draft,waiting,confirmed,assigned"/>
762 <group string="Produced Products">
763 <field name="move_created_ids2" domain="[('state','in', ('done', 'cancel'))]" nolabel="1">
764 <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">
765 <field name="product_id" readonly="1"/>
766 <field name="product_qty" readonly="1"/>
767 <field name="product_uom" readonly="1" string="Unit of Measure" groups="product.group_uom"/>
768 <field name="location_dest_id" readonly="1" string="Destination Loc." widget="selection" groups="stock.group_locations"/>
769 <field name="prodlot_id" context="{'product_id': product_id}"/>
770 <field name="scrapped" invisible="1"/>
771 <field name="state" invisible="1"/>
772 <button name="%(stock.track_line)d"
773 string="Split in Serial Numbers" type="action" icon="gtk-justify-fill" states="done,cancel"/>
774 <button name="%(stock.move_scrap)d"
775 string="Scrap Products" type="action" icon="gtk-convert"
776 states="done,cancel"/>
782 <page string="Work Orders">
783 <button name="action_compute" states="draft"
784 string="Compute Data" type="object"
785 icon="terp-stock_format-scientific"/>
786 <field name="workcenter_lines">
787 <form string="Production Work Centers" version="7.0">
789 <field colspan="4" name="name"/>
790 <field name="workcenter_id"/>
791 <field name="sequence"/>
792 <field name="cycle"/>
796 <tree string="Production Work Centers">
797 <field name="sequence"/>
799 <field name="workcenter_id"/>
800 <field name="cycle"/>
805 <page string="Scheduled Products">
806 <button name="action_compute" states="draft"
807 string="Compute Data" type="object"
808 icon="terp-stock_format-scientific"/>
809 <field name="product_lines"/>
811 <page string="Extra Information">
814 <field name="priority"/>
815 <field name="date_start"/>
816 <field name="date_finished"/>
819 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
820 <field name="picking_id"/>
821 <field name="move_prod_id" groups="stock.group_locations"/>
827 <div class="oe_chatter">
828 <field name="message_ids" widget="mail_thread"/>
834 <record id="view_mrp_production_filter" model="ir.ui.view">
835 <field name="name">mrp.production.select</field>
836 <field name="model">mrp.production</field>
837 <field name="type">search</field>
838 <field name="arch" type="xml">
839 <search string="Search Production">
841 <field name="name" string="Production" filter_domain="['|',('name','ilike',self),('origin','ilike',self)]"/>
842 <separator orientation="vertical"/>
843 <filter icon="terp-gtk-media-pause" string="Pending" name="pending"
844 domain="[('state','=','confirmed')]"
845 help="Manufacturing Orders which are waiting for raw materials."/>
846 <filter icon="terp-camera_test" string="Ready" name="ready"
847 domain="[('state','=','ready')]"
848 help="Manufacturing Orders which are ready to start production."/>
849 <filter icon="terp-check" string="In Production" name="inprogress"
850 domain="[('state','=','in_production')]"
851 help="Manufacturing Orders which are currently in production."/>
852 <filter icon="terp-gnome-cpu-frequency-applet+" string="Late"
853 domain="['&', ('date_planned','<', current_date), ('state', 'in', ('draft', 'confirmed', 'ready'))]"
854 help="Production started late"/>
855 <separator orientation="vertical"/>
856 <field name="product_id"/>
857 <field name="routing_id" groups="mrp.group_mrp_routings"/>
860 <group expand="0" string="Group By...">
861 <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
862 <separator orientation="vertical"/>
863 <filter string="Routing" icon="terp-stock_align_left_24" domain="[]" context="{'group_by':'routing_id'}"/>
864 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
865 <separator orientation="vertical"/>
866 <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_planned'}" help="Scheduled Date"/>
872 <record id="mrp_production_action" model="ir.actions.act_window">
873 <field name="name">Manufacturing Orders</field>
874 <field name="type">ir.actions.act_window</field>
875 <field name="res_model">mrp.production</field>
876 <field name="view_type">form</field>
877 <field name="view_mode">tree,form,calendar,graph,gantt</field>
878 <field name="view_id" eval="False"/>
879 <field name="search_view_id" ref="view_mrp_production_filter"/>
880 <field name="context">{}</field>
882 Click here to create a new Manufacturing Order.
884 To process the production, do not forget to create a Bill of Material.
885 Manufacturing orders can be automatically generated based on procurement rules specified on the product.
888 <menuitem action="mrp_production_action" id="menu_mrp_production_action"
889 parent="menu_mrp_manufacturing" sequence="1"/>
891 <record id="mrp_production_action_planning" model="ir.actions.act_window">
892 <field name="name">Manufacturing Orders</field>
893 <field name="type">ir.actions.act_window</field>
894 <field name="res_model">mrp.production</field>
895 <field name="view_type">form</field>
896 <field name="view_mode">calendar,tree,form,graph</field>
897 <field name="domain">[('state','in',('ready','confirmed','in_production'))]</field>
899 Manufacturing Orders describe the operations that need to be carried out,
900 and the raw materials usage for each production stage.
901 You use specifications (bills of materials or BoM) to work out the raw material requirements
902 and the manufacturing orders needed for the finished products.
903 Once the bills of materials have been defined, OpenERP is capable of automatically deciding
904 on the manufacturing route depending on the needs of the company.
908 <record id="mrp_production_action2" model="ir.actions.act_window">
909 <field name="name">Manufacturing Orders To Start</field>
910 <field name="type">ir.actions.act_window</field>
911 <field name="res_model">mrp.production</field>
912 <field name="view_type">form</field>
913 <field name="view_mode">tree,form,calendar,graph,gantt</field>
914 <field name="domain">[('state','=','ready')]</field>
915 <field name="filter" eval="True"/>
916 <field name="search_view_id" ref="view_mrp_production_filter"/>
919 <record id="mrp_production_action3" model="ir.actions.act_window">
920 <field name="name">Manufacturing Orders in Progress</field>
921 <field name="type">ir.actions.act_window</field>
922 <field name="res_model">mrp.production</field>
923 <field name="view_type">form</field>
924 <field name="view_mode">tree,form,calendar,graph,gantt</field>
925 <field name="domain">[('state','=','in_production')]</field>
926 <field name="filter" eval="True"/>
927 <field name="search_view_id" ref="view_mrp_production_filter"/>
930 <record id="mrp_production_action4" model="ir.actions.act_window">
931 <field name="name">Manufacturing Orders Waiting Products</field>
932 <field name="type">ir.actions.act_window</field>
933 <field name="res_model">mrp.production</field>
934 <field name="view_type">form</field>
935 <field name="view_mode">tree,form,calendar,graph,gantt</field>
936 <field name="domain">[('state','=','confirmed')]</field>
937 <field name="filter" eval="True"/>
938 <field name="search_view_id" ref="view_mrp_production_filter"/>
941 <record id="mrp_production_product_form_view" model="ir.ui.view">
942 <field name="name">mrp.production.product.line.form</field>
943 <field name="model">mrp.production.product.line</field>
944 <field name="type">form</field>
945 <field name="arch" type="xml">
946 <form string="Scheduled Products" version="7.0">
949 <field name="product_id"/>
950 <field name="product_qty"/>
951 <field name="product_uom" groups="product.group_uom"/>
952 <field name="product_uos_qty" groups="product.group_uos"/>
953 <field name="product_uos" groups="product.group_uos"/>
958 <record id="mrp_production_product_tree_view" model="ir.ui.view">
959 <field name="name">mrp.production.product.line.tree</field>
960 <field name="model">mrp.production.product.line</field>
961 <field name="type">tree</field>
962 <field name="arch" type="xml">
963 <tree string="Scheduled Products">
964 <field name="product_id"/>
965 <field name="product_qty"/>
966 <field name="product_uom" groups="product.group_uom"/>
967 <field name="product_uos_qty" groups="product.group_uos"/>
968 <field name="product_uos" groups="product.group_uos"/>
977 <record id="view_procurement_form_inherit" model="ir.ui.view">
978 <field name="name">procurement.order.form.inherit</field>
979 <field name="model">procurement.order</field>
980 <field name="inherit_id" ref="procurement.procurement_form_view"/>
981 <field name="type">form</field>
982 <field name="arch" type="xml">
984 <xpath expr="//field[@name='move_id']" position="before">
985 <field name="bom_id" domain="[('product_id','=',product_id),('bom_id','=',False)]"/>
987 <xpath expr="//field[@name='close_move']" position="after">
988 <group colspan="4" groups="product.group_mrp_properties">
989 <field colspan="4" name="property_ids" widget="many2many_tags"/>
996 <record id="product_normal_form_view" model="ir.ui.view">
997 <field name="name">product.normal.form.mrp.inherit</field>
998 <field name="model">product.product</field>
999 <field name="type">form</field>
1000 <field name="inherit_id" ref="product.product_normal_form_view"/>
1001 <field name="arch" type="xml">
1002 <page string="Procurement & Locations" position="inside">
1003 <separator string="Bill of Materials"/>
1004 <field name="bom_ids" widget="one2many_list" mode="tree" context="{'default_product_id': active_id}">
1005 <tree string="Bill of Materials">
1006 <field name="name" string="Component Name"/>
1007 <field name="bom_id"/>
1008 <field name="product_qty" string="Quantity of Product"/>
1009 <field name="type"/>
1010 <field name="date_start"/>
1011 <field name="date_stop"/>
1019 context="{'search_default_product_id': [active_id]}"
1020 id="act_product_manufacturing_open"
1021 name="Manufacturing Orders"
1022 view_id="mrp_production_tree_view"
1023 res_model="mrp.production"
1024 src_model="product.product"/>
1027 id="action_product_bom_structure"
1028 name="Product BoM Structure"
1029 domain="[('product_id', 'in', active_ids),('bom_id','=',False)]"
1030 context="{'default_product_id': active_id}"
1033 view_id="mrp_bom_tree_view"
1035 src_model="product.product"
1036 groups="mrp.group_mrp_user"/>
1038 <!-- Menu for Resource for MRP-->
1040 <record id="mrp_workcenter_action" model="ir.actions.act_window">
1041 <field name="name">Work Center</field>
1042 <field name="type">ir.actions.act_window</field>
1043 <field name="res_model">mrp.workcenter</field>
1044 <field name="view_type">form</field>
1045 <field name="view_id" ref="mrp_workcenter_tree_view"/>
1046 <field name="search_view_id" ref="view_mrp_workcenter_search"/>
1048 Work Centers allow you to create and manage manufacturing units.
1049 They consist of workers and/or machines, which are considered as units for capacity and planning forecast.
1050 Keep in mind that the working time and resource leave are not taken into account in the time computation
1055 <menuitem id="menu_pm_resources_config" name="Resources" parent="menu_mrp_configuration"/>
1056 <menuitem action="mrp_workcenter_action" id="menu_view_resource_search_mrp" groups="mrp.group_mrp_routings" parent="mrp.menu_mrp_configuration" sequence="25"/>
1057 <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"/>
1058 <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"/>
1062 <menuitem id="menu_mrp_planning" name="Planning"
1063 parent="base.menu_mrp_root" sequence="2"/>
1064 <menuitem action="mrp.mrp_production_action_planning"
1065 id="menu_mrp_production_order_action" name="Orders Planning"
1066 parent="menu_mrp_planning" sequence="1"/>