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="Products"
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="arch" type="xml">
29 <form string="Properties categories" version="7.0">
32 <label for="description"/>
33 <field name="description"/>
37 <record id="mrp_property_group_action" model="ir.actions.act_window">
38 <field name="name">Property Groups</field>
39 <field name="type">ir.actions.act_window</field>
40 <field name="res_model">mrp.property.group</field>
41 <field name="view_type">form</field>
42 <field name="view_mode">tree,form</field>
43 <field name="help" type="html">
44 <p class="oe_view_nocontent_create">
45 Click to create a group of properties.
47 Define specific property groups that can be assigned to your
48 bill of materials and sales orders. Properties allows OpenERP
49 to automatically select the right bill of materials according
50 to properties selected in the sales order by salesperson.
52 For instance, in the property group "Warranty", you an have
53 two properties: 1 year warranty, 3 years warranty. Depending
54 on the propoerties selected in the sales order, OpenERP will
55 schedule a production using the matching bill of materials.
60 id="menu_mrp_configuration"
62 parent="base.menu_mrp_root"
63 groups="group_mrp_manager"
66 <record id="mrp_property_tree_view" model="ir.ui.view">
67 <field name="name">mrp.property.tree</field>
68 <field name="model">mrp.property</field>
69 <field name="arch" type="xml">
70 <tree string="Properties">
72 <field name="composition"/>
73 <field name="group_id"/>
77 <record id="mrp_property_form_view" model="ir.ui.view">
78 <field name="name">mrp.property.form</field>
79 <field name="model">mrp.property</field>
80 <field name="arch" type="xml">
81 <form string="Properties" version="7.0">
83 <field colspan="4" name="name"/>
84 <field name="group_id"/>
85 <field name="composition"/>
87 <label for="description"/>
88 <field name="description"/>
93 <record id="view_mrp_property_search" model="ir.ui.view">
94 <field name="name">mrp.property.search</field>
95 <field name="model">mrp.property</field>
96 <field name="arch" type="xml">
97 <search string="Search">
98 <field name="name" string="Name"/>
99 <field name="composition"/>
100 <field name="group_id" />
101 <group expand="0" string="Group By...">
102 <filter string="Property Group" icon="terp-personal" domain="[]" context="{'group_by':'group_id'}"/>
109 <record id="mrp_property_action" model="ir.actions.act_window">
110 <field name="name">Properties</field>
111 <field name="type">ir.actions.act_window</field>
112 <field name="res_model">mrp.property</field>
113 <field name="view_type">form</field>
114 <field name="view_mode">tree,form</field>
115 <field name="search_view_id" ref="view_mrp_property_search"/>
116 <field name="help" type="html">
117 <p class="oe_view_nocontent_create">
118 Click to create a new property.
120 The Properties in OpenERP are used to select the right bill of
121 materials for manufacturing a product when you have different
122 ways of building the same product. You can assign several
123 properties to each bill of materials. When a salesperson
124 creates a sales order, they can relate it to several properties
125 and OpenERP will automatically select the BoM to use according
130 <menuitem name="Master Bill of Materials"
131 id="menu_mrp_property"
132 parent="menu_mrp_configuration"
133 groups="mrp.group_mrp_routings,product.group_mrp_properties"
136 action="mrp_property_action"
137 id="menu_mrp_property_action"
138 groups="product.group_mrp_properties"
139 parent="menu_mrp_configuration"
142 action="mrp_property_group_action"
143 parent="menu_mrp_configuration"
144 groups="base.group_no_one,product.group_mrp_properties"
145 id="menu_mrp_property_group_action"
152 <record id="mrp_workcenter_tree_view" model="ir.ui.view">
153 <field name="name">mrp.workcenter.tree</field>
154 <field name="model">mrp.workcenter</field>
155 <field name="arch" type="xml">
156 <tree string="Work Center">
159 <field name="resource_type"/>
160 <field name="company_id" groups="base.group_multi_company"/>
164 <record id="mrp_workcenter_view" model="ir.ui.view">
165 <field name="name">mrp.workcenter.form</field>
166 <field name="model">mrp.workcenter</field>
167 <field name="arch" type="xml">
168 <form string="Work Center" version="7.0">
172 <field name="resource_type"/>
173 <field name="calendar_id" widget="selection"/>
177 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
178 <field name="active"/>
182 <page string="General Information">
184 <group string="Capacity Information">
185 <field name="time_efficiency"/>
186 <field name="capacity_per_cycle"/>
187 <field name="time_cycle" widget="float_time"/>
188 <field name="time_start" widget="float_time"/>
189 <field name="time_stop" widget="float_time"/>
191 <group string="Costing Information">
192 <field name="product_id" on_change="on_change_product_cost(product_id)"/>
193 <field name="costs_hour"/>
194 <field name="costs_hour_account_id" groups="analytic.group_analytic_accounting"/>
195 <field name="costs_cycle"/>
196 <field name="costs_cycle_account_id" groups="analytic.group_analytic_accounting"/>
197 <field name="costs_journal_id" attrs="{'required':['|',('costs_hour_account_id', '=', True),('costs_cycle_account_id', '=', True)]}" groups="analytic.group_analytic_accounting"/>
198 <field name="costs_general_account_id" attrs="{ 'required':['|',('costs_cycle_account_id', '=', True),('costs_hour_account_id', '=', True)]}" groups="analytic.group_analytic_accounting"/>
209 <!-- Search Views -->
211 <record id="view_mrp_workcenter_search" model="ir.ui.view">
212 <field name="name">mrp.workcenter.search</field>
213 <field name="model">mrp.workcenter</field>
214 <field name="arch" type="xml">
215 <search string="Search for mrp workcenter">
216 <field name="name" string="Mrp Workcenter" filter_domain="['|',('name','ilike',self),('code','ilike',self)]"/>
217 <field name="resource_type"/>
218 <filter string="Inactive" icon="terp-gdu-smart-failing" domain="[('active','=',False)]"/>
219 <group expand="0" string="Group By...">
220 <filter string="Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'resource_type'}"/>
221 <filter string="Company" icon="terp-go-home" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
231 <record id="mrp_routing_workcenter_tree_view" model="ir.ui.view">
232 <field name="name">mrp.routing.workcenter.tree</field>
233 <field name="model">mrp.routing.workcenter</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="arch" type="xml">
250 <form string="Routing Work Centers" version="7.0">
251 <group col="4" string="General Information">
252 <field colspan="4" name="name"/>
253 <field name="sequence"/>
254 <field name="workcenter_id"/>
255 <field name="cycle_nbr"/>
256 <field name="hour_nbr" widget="float_time"/>
257 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
265 <record id="mrp_routing_form_view" model="ir.ui.view">
266 <field name="name">mrp.routing.form</field>
267 <field name="model">mrp.routing</field>
268 <field name="arch" type="xml">
269 <form string="Routing" version="7.0">
276 <field name="location_id"/>
277 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
278 <field name="active"/>
282 <page string="Work Center Operations">
283 <field name="workcenter_lines"/>
285 <page string="Notes">
292 <record id="mrp_routing_tree_view" model="ir.ui.view">
293 <field name="name">mrp.routing.tree</field>
294 <field name="model">mrp.routing</field>
295 <field name="arch" type="xml">
296 <tree string="Routing">
299 <field name="location_id"/>
300 <field name="company_id" groups="base.group_multi_company"/>
304 <record id="mrp_routing_search_view" model="ir.ui.view">
305 <field name="name">mrp.routing.search</field>
306 <field name="model">mrp.routing</field>
307 <field name="arch" type="xml">
308 <search string="Routing">
309 <field name="name" string="Routing" filter_domain="['|',('name','ilike',self),('code','ilike',self)]"/>
310 <filter string="Inactive" icon="terp-gdu-smart-failing" domain="[('active','=',False)]"/>
311 <field name="location_id"/>
312 <field name="company_id" groups="base.group_multi_company"/>
313 <group expand="0" string="Group By...">
314 <filter string="Production Location" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'location_id'}"/>
319 <record id="mrp_routing_action" model="ir.actions.act_window">
320 <field name="name">Routings</field>
321 <field name="type">ir.actions.act_window</field>
322 <field name="res_model">mrp.routing</field>
323 <field name="view_type">form</field>
324 <field name="view_id" ref="mrp_routing_tree_view"/>
325 <field name="search_view_id" ref="mrp_routing_search_view"/>
326 <field name="help" type="html">
327 <p class="oe_view_nocontent_create">
328 Click to create a routing.
330 Routings allow you to create and manage the manufacturing
331 operations that should be followed within your work centers in
332 order to produce a product. They are attached to bills of
333 materials that will define the required raw materials.
337 <menuitem action="mrp_routing_action" id="menu_mrp_routing_action" parent="mrp.menu_mrp_bom" groups="mrp.group_mrp_routings" sequence="15"/>
343 <record id="mrp_bom_form_view" model="ir.ui.view">
344 <field name="name">mrp.bom.form</field>
345 <field name="model">mrp.bom</field>
346 <field name="arch" type="xml">
347 <form string="Bill of Material" version="7.0">
350 <field name="product_id" on_change="onchange_product_id(product_id, name, context)" context="{'default_supply_method':'produce'}" class="oe_inline"/>
351 <label for="product_qty" string="Quantity"/>
353 <field name="product_qty" class="oe_inline"/>
354 <field name="product_uom" class="oe_inline" on_change="onchange_uom(product_id, product_uom)" groups="product.group_uom"/>
356 <label for="product_uos_qty" groups="product.group_uos"/>
357 <div groups="product.group_uos" >
358 <field name="product_uos_qty"
360 <label string="-" attrs="{'invisible':[('product_uos','=',False)]}" class="oe_inline"/>
361 <field name="product_uos" class="oe_inline"/>
363 <label for="routing_id" class="oe_inline" groups="mrp.group_mrp_routings"/>
364 <div groups="mrp.group_mrp_routings">
365 <field name="routing_id" class="oe_inline"/>
369 <field name="name" groups="base.group_no_one"/>
370 <field name="code" string="Reference"/>
372 <p colspan="2" class="oe_grey" attrs="{'invisible': [('type','=','normal')]}">
373 When processing a sales order for this product, the delivery order
374 will contain the raw materials, instead of the finished product.
376 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
380 <page string="Components">
381 <field name="bom_lines" widget="one2many_list">
382 <tree string="Components" editable="bottom">
383 <field name="product_id" context="{'default_supply_method':'produce'}" on_change="onchange_product_id(product_id, name)"/>
384 <field name="product_qty"/>
385 <field name="product_uom" on_change="onchange_uom(product_id, product_uom)" groups="product.group_uom"/>
386 <field name="name" invisible="1"/>
387 <field name="date_start"/>
388 <field name="date_stop"/>
392 <page string="Properties" groups="product.group_mrp_properties">
395 <field name="position"/>
396 <field name="bom_id"/>
397 <field name="sequence"/>
398 <field name="active"/>
401 <field name="date_start"/>
402 <field name="date_stop"/>
403 <field name="product_rounding"/>
404 <field name="product_efficiency"/>
407 <separator string="Properties"/>
408 <field name="property_ids" widget="many2many_tags"/>
411 <div class="oe_chatter">
412 <field name="message_follower_ids" widget="mail_followers"/>
413 <field name="message_ids" colspan="4" widget="mail_thread" nolabel="1"/>
419 <record id="view_mrp_bom_filter" model="ir.ui.view">
420 <field name="name">mrp.bom.select</field>
421 <field name="model">mrp.bom</field>
422 <field name="arch" type="xml">
423 <search string="Search Bill Of Material">
424 <field name="name" string="Bill Of Material" filter_domain="['|',('name','ilike',self),('code','ilike',self)]"/>
425 <field name="product_id"/>
426 <field name="company_id" groups="base.group_multi_company"/>
427 <group expand="0" string="Group By...">
428 <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
429 <filter string='Default Unit of Measure' icon="terp-mrp" domain="[]" context="{'group_by' : 'product_uom'}"/>
430 <filter string="Routing" icon="terp-stock_align_left_24" domain="[]" context="{'group_by':'routing_id'}"/>
431 <filter string='Type' icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'type'}"/>
432 <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_start'}" help="Starting Date"/>
438 <record id="mrp_bom_tree_view" model="ir.ui.view">
439 <field name="name">mrp.bom.tree</field>
440 <field name="model">mrp.bom</field>
441 <field name="field_parent">child_complete_ids</field>
442 <field name="arch" type="xml">
443 <tree string="Bill of Materials">
444 <field name="sequence" invisible="1"/>
445 <field name="name" invisible="1"/>
446 <field name="product_id"/>
447 <field name="product_qty"/>
448 <field name="product_uom" groups="product.group_uom"/>
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_component_tree_view" model="ir.ui.view">
458 <field name="name">mrp.bom.component.tree</field>
459 <field name="model">mrp.bom</field>
460 <field name="field_parent">child_complete_ids</field>
461 <field name="arch" type="xml">
462 <tree string="BoM Structure">
463 <field name="sequence" invisible="1"/>
464 <field name="name" groups="base.group_no_one"/>
466 <field name="product_id"/>
467 <field name="bom_id" groups="product.group_mrp_properties"/>
468 <field name="product_qty"/>
469 <field name="product_uom" groups="product.group_uom"/>
471 <field name="routing_id" groups="mrp.group_mrp_routings"/>
472 <field name="date_start" groups="product.group_mrp_properties"/>
473 <field name="date_stop" groups="product.group_mrp_properties"/>
477 <record id="mrp_bom_form_action" model="ir.actions.act_window">
478 <field name="name">Bill of Materials</field>
479 <field name="type">ir.actions.act_window</field>
480 <field name="res_model">mrp.bom</field>
481 <field name="view_type">form</field>
482 <field name="domain">[('bom_id','=',False)]</field>
483 <field name="search_view_id" ref="view_mrp_bom_filter"/>
484 <field name="help" type="html">
485 <p class="oe_view_nocontent_create">
486 Click to create a bill of material.
488 Bills of Materials allow you to define the list of required raw
489 materials used to make a finished product; through a manufacturing
490 order or a pack of products.
492 OpenERP uses these BoMs to automatically propose manufacturing
493 orders according to procurement needs.
497 <record id="mrp_bom_form_action2" model="ir.actions.act_window">
498 <field name="name">Bill of Material Components</field>
499 <field name="type">ir.actions.act_window</field>
500 <field name="res_model">mrp.bom</field>
501 <field name="view_type">form</field>
502 <field name="view_id" ref="mrp_bom_component_tree_view"/>
503 <field name="domain">[]</field>
504 <field name="help" type="html">
505 <p class="oe_view_nocontent_create">
506 Click to add a component to a bill of material.
508 Bills of materials components are components and by-products
509 used to create master bills of materials. Use this menu to
510 search in which BoM a specific component is used.
515 <record id="product_supply_method_produce" model="ir.actions.act_window">
516 <field name="name">Products</field>
517 <field name="res_model">product.product</field>
518 <field name="view_type">form</field>
519 <field name="view_mode">kanban,tree,form</field>
520 <field name="context">{'search_default_filter_supply_method_produce' : 1}</field>
521 <field name="search_view_id" ref="product.product_search_form_view"/>
526 action="mrp_bom_form_action"
527 id="menu_mrp_bom_form_action"
528 parent="menu_mrp_bom"
530 <menuitem name="Products"
531 id="menu_mrp_product_form"
532 action="product_supply_method_produce"
533 parent="menu_mrp_bom"/>
535 action="mrp_bom_form_action2"
536 id="menu_mrp_bom_form_action2"
537 parent="menu_mrp_configuration"
538 groups="base.group_no_one"
541 <record id="action2" model="ir.actions.act_window">
542 <field name="name">Bill of Materials Structure</field>
543 <field name="type">ir.actions.act_window</field>
544 <field name="res_model">mrp.bom</field>
545 <field name="domain">[('bom_id', '=',active_ids)]</field>
546 <field name="view_type">tree</field>
547 <field name="view_id" ref="mrp_bom_tree_view"/>
549 <record id="ir_BOM_structure" model="ir.values">
550 <field eval="'client_action_multi'" name="key2"/>
551 <field eval="'mrp.bom'" name="model"/>
552 <field name="name">Bill of Materials Structure</field>
553 <field eval="'ir.actions.act_window,'+str(action2)" name="value"/>
557 Production Management
559 <record id="mrp_production_tree_view" model="ir.ui.view">
560 <field name="name">mrp.production.tree</field>
561 <field name="model">mrp.production</field>
562 <field name="arch" type="xml">
563 <tree fonts="bold:message_unread==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">
564 <field name="message_unread" invisible="1"/>
566 <field name="date_planned"/>
567 <field name="product_id"/>
568 <field name="product_qty" sum="Total Qty"/>
569 <field name="product_uom" groups="product.group_uom"/>
570 <field name="routing_id" groups="mrp.group_mrp_routings"/>
571 <field name="hour_total" sum="Total Hours"/>
572 <field name="cycle_total" sum="Total Cycles"/>
573 <field name="origin"/>
574 <field name="state"/>
579 <record id="view_production_calendar" model="ir.ui.view">
580 <field name="name">mrp.production.calendar</field>
581 <field name="model">mrp.production</field>
582 <field eval="2" name="priority"/>
583 <field name="arch" type="xml">
584 <calendar color="routing_id" date_start="date_planned" string="Manufacturing Orders">
586 <field name="product_id"/>
587 <field name="product_qty"/>
593 <record id="view_production_gantt" model="ir.ui.view">
594 <field name="name">mrp.production.gantt</field>
595 <field name="model">mrp.production</field>
596 <field name="arch" type="xml">
597 <gantt date_stop="date_finished" date_start="date_start" progress="progress" string="Productions" default_group_by="routing_id">
603 <record model="ir.ui.view" id="view_production_graph">
604 <field name="name">mrp.production.graph</field>
605 <field name="model">mrp.production</field>
606 <field name="arch" type="xml">
607 <graph string="Manufacturing Orders" type="bar">
608 <field name="date_planned"/>
609 <field name="hour_total" operator="+"/>
610 <field name="cycle_total" operator="+"/>
615 <record id="mrp_production_form_view" model="ir.ui.view">
616 <field name="name">mrp.production.form</field>
617 <field name="model">mrp.production</field>
618 <field name="arch" type="xml">
619 <form string="Manufacturing Orders" version="7.0">
621 <button name="button_confirm" states="draft" string="Confirm Production" class="oe_highlight"/>
622 <button name="%(act_mrp_product_produce)d" states="confirmed,ready,in_production" string="Produce" type="action" class="oe_highlight"/>
623 <button name="force_production" states="confirmed" string="Force Reservation" type="object"/>
624 <button name="force_production" states="picking_except" string="Force Reservation" type="object"/>
625 <button name="button_produce" states="ready" string="Mark as Started"/>
626 <button name="button_recreate" states="picking_except" string="Recreate Picking"/>
627 <button name="button_cancel" states="draft,ready,in_production,picking_except" string="Cancel Production"/>
628 <button name="action_cancel" type="object" states="confirmed" string="Cancel Production"/>
629 <field name="state" widget="statusbar" statusbar_visible="draft,ready,in_production,done" statusbar_colors='{"picking_except":"red","confirmed":"blue"}'/>
632 <div class="oe_title">
633 <h1>Manufacturing Order <field name="name" class="oe_inline"/></h1>
637 <field name="product_id" on_change="product_id_change(product_id)" domain="[('bom_ids','!=',False),('bom_ids.bom_id','=',False)]" class="oe_inline" context='{"default_supply_method":"produce", "default_type": "product"}'/>
638 <label for="product_qty"/>
640 <field name="product_qty" class="oe_inline"/>
641 <field name="product_uom" groups="product.group_uom" class="oe_inline"/>
642 <button type="action"
643 icon="terp-accessories-archiver+"
644 name="%(mrp.action_change_production_qty)d"
645 string="(Update)" states="confirmed" class="oe_edit_only oe_link"/>
647 <label for="product_uos_qty" groups="product.group_uos"/>
648 <div groups="product.group_uos">
649 <field name="product_uos_qty" class="oe_inline"/>
650 <label string="-" attrs="{'invisible':[('product_uos','=',False)]}" class="oe_inline"/>
651 <field name="product_uos" class="oe_inline"/>
653 <field name="date_planned"/>
656 <field name="bom_id" domain="[('product_id','=',product_id)]" context="{'default_product_id': product_id}" on_change="bom_id_change(bom_id)" required="1"/>
657 <field name="routing_id" class="oe_inline" groups="mrp.group_mrp_routings"/>
658 <field name="user_id"/>
659 <field name="origin"/>
661 <group groups="stock.group_locations">
662 <field name="location_src_id" domain="[('usage','=','internal')]" on_change="location_id_change(location_src_id,location_dest_id)"/>
663 <field name="location_dest_id" domain="[('usage','=','internal')]"/>
667 <page string="Consumed Products">
669 <group string="Products to Consume">
670 <field name="move_lines" nolabel="1" options="{'reload_on_button': true}">
671 <tree colors="blue:state == 'draft';black:state in ('picking_except','confirmed','ready','in_production');gray:state in ('cancel','done') " string="Products to Consume">
672 <field name="product_id"/>
673 <field name="product_qty" string="Quantity"/>
674 <field name="product_uom" string="Unit of Measure" groups="product.group_uom"/>
675 <field name="prodlot_id" groups="stock.group_production_lot" context="{'product_id': product_id}"/>
676 <field name="state" invisible="1"/>
677 <button name="%(stock.move_consume)d"
678 string="Consume Products" type="action"
679 icon="gtk-go-forward" context="{'consume': True}"
680 states="draft,waiting,confirmed,assigned"/>
682 name="%(stock.track_line)d"
683 string="Split in Serial Numbers"
684 type="action" icon="gtk-justify-fill"
685 states="draft,waiting,confirmed,assigned"
686 groups="stock.group_production_lot"/>
687 <button name="%(stock.move_scrap)d"
688 string="Scrap Products" type="action"
689 icon="terp-gtk-jump-to-ltr" context="{'scrap': True}"
690 states="draft,waiting,confirmed,assigned"/>
694 <group string="Consumed Products">
695 <field name="move_lines2" nolabel="1">
696 <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">
697 <field name="product_id" readonly="1"/>
698 <field name="product_qty" readonly="1"/>
699 <field name="product_uom" readonly="1" string="Unit of Measure" groups="product.group_uom"/>
700 <field name="prodlot_id" context="{'product_id': product_id}" groups="stock.group_production_lot"/>
701 <field name="state" invisible="1"/>
702 <field name="scrapped" invisible="1"/>
708 <page string="Finished Products">
710 <group string="Products to Produce">
711 <field name="move_created_ids" nolabel="1">
712 <tree string="Products to Finish">
713 <field name="product_id"/>
714 <field name="product_qty"/>
715 <field name="product_uom" string="Unit of Measure" groups="product.group_uom"/>
716 <field name="state" invisible="1"/>
717 <button name="%(stock.action_partial_move_server)d"
719 type="action" states="confirmed,assigned"
720 icon="gtk-justify-fill"/>
724 <group string="Produced Products">
725 <field name="move_created_ids2" nolabel="1">
726 <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">
727 <field name="product_id" readonly="1"/>
728 <field name="product_qty" readonly="1"/>
729 <field name="product_uom" readonly="1" string="Unit of Measure" groups="product.group_uom"/>
730 <field name="location_dest_id" readonly="1" string="Destination Loc." widget="selection" groups="stock.group_locations"/>
731 <field name="prodlot_id" context="{'product_id': product_id}" groups="stock.group_production_lot"/>
732 <field name="scrapped" invisible="1"/>
733 <field name="state" invisible="1"/>
734 <button name="%(stock.track_line)d"
735 string="Split in Serial Numbers" type="action" icon="gtk-justify-fill" states="done,cancel"/>
736 <button name="%(stock.move_scrap)d"
737 string="Scrap Products" type="action" icon="terp-gtk-jump-to-ltr"
738 states="done,cancel"/>
744 <page string="Work Orders" groups="mrp.group_mrp_routings">
745 <button name="action_compute" states="draft"
746 string="Compute Data" type="object"
747 icon="terp-stock_format-scientific"/>
748 <field name="workcenter_lines">
749 <form string="Production Work Centers" version="7.0">
751 <field colspan="4" name="name"/>
752 <field name="workcenter_id"/>
753 <field name="sequence"/>
754 <field name="cycle"/>
758 <tree string="Production Work Centers">
759 <field name="sequence"/>
761 <field name="workcenter_id"/>
762 <field name="cycle"/>
767 <page string="Scheduled Products">
768 <button name="action_compute" states="draft"
769 string="Compute Data" type="object"
770 icon="terp-stock_format-scientific"/>
771 <field name="product_lines"/>
773 <page string="Extra Information">
776 <field name="priority"/>
777 <field name="date_start" invisible="1"/>
778 <field name="date_finished" invisible="1"/>
781 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
782 <field name="picking_id"/>
783 <field name="move_prod_id" groups="stock.group_locations"/>
789 <div class="oe_chatter">
790 <field name="message_follower_ids" widget="mail_followers"/>
791 <field name="message_ids" widget="mail_thread"/>
797 <record id="view_mrp_production_filter" model="ir.ui.view">
798 <field name="name">mrp.production.select</field>
799 <field name="model">mrp.production</field>
800 <field name="arch" type="xml">
801 <search string="Search Production">
802 <field name="name" string="Production" filter_domain="['|',('name','ilike',self),('origin','ilike',self)]"/>
803 <filter icon="terp-gtk-media-pause" string="Pending" name="pending" domain="[('state','=','confirmed')]"
804 help="Manufacturing Orders which are waiting for raw materials."/>
805 <filter icon="terp-camera_test" string="Ready" name="ready" domain="[('state','=','ready')]"
806 help="Manufacturing Orders which are ready to start production."/>
807 <filter icon="terp-check" string="In Production" name="inprogress" domain="[('state','=','in_production')]"
808 help="Manufacturing Orders which are currently in production."/>
810 <filter icon="terp-gnome-cpu-frequency-applet+" string="Late" domain="['&', ('date_planned','<', current_date), ('state', 'in', ('draft', 'confirmed', 'ready'))]"
811 help="Production started late"/>
812 <field name="product_id"/>
813 <field name="routing_id" groups="mrp.group_mrp_routings"/>
814 <group expand="0" string="Group By...">
815 <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
816 <filter string="Routing" icon="terp-stock_align_left_24" domain="[]" context="{'group_by':'routing_id'}"/>
817 <filter string="Status" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
818 <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_planned'}" help="Scheduled Date"/>
824 <record id="mrp_production_action" model="ir.actions.act_window">
825 <field name="name">Manufacturing Orders</field>
826 <field name="type">ir.actions.act_window</field>
827 <field name="res_model">mrp.production</field>
828 <field name="view_type">form</field>
829 <field name="view_mode">tree,form,calendar,graph,gantt</field>
830 <field name="view_id" eval="False"/>
831 <field name="search_view_id" ref="view_mrp_production_filter"/>
832 <field name="context">{}</field>
833 <field name="help" type="html">
834 <p class="oe_view_nocontent_create">
835 Click to create a manufacturing order.
837 A manufacuring order, based on a bill of materials, will
838 consume raw materials and produce finished products.
840 Manufacturing orders are usually proposed automatically based
841 on customer requirements or automated rules like the minimum
846 <menuitem action="mrp_production_action" id="menu_mrp_production_action"
847 parent="menu_mrp_manufacturing" sequence="1"/>
849 <record id="mrp_production_action_planning" model="ir.actions.act_window">
850 <field name="name">Manufacturing Orders</field>
851 <field name="type">ir.actions.act_window</field>
852 <field name="res_model">mrp.production</field>
853 <field name="view_type">form</field>
854 <field name="view_mode">calendar,tree,form,graph</field>
855 <field name="domain">[('state','in',('ready','confirmed','in_production'))]</field>
856 <field name="help" type="html">
857 <p class="oe_view_nocontent_create">
858 Click to start a new manufacturing order.
860 A manufacuring order, based on a bill of materials, will
861 consume raw materials and produce finished products.
863 Manufacturing orders are usually proposed automatically based
864 on customer requirements or automated rules like the minimum
870 <record id="mrp_production_action2" model="ir.actions.act_window">
871 <field name="name">Manufacturing Orders To Start</field>
872 <field name="type">ir.actions.act_window</field>
873 <field name="res_model">mrp.production</field>
874 <field name="view_type">form</field>
875 <field name="view_mode">tree,form,calendar,graph,gantt</field>
876 <field name="domain">[('state','=','ready')]</field>
877 <field name="filter" eval="True"/>
878 <field name="search_view_id" ref="view_mrp_production_filter"/>
881 <record id="mrp_production_action3" model="ir.actions.act_window">
882 <field name="name">Manufacturing Orders in Progress</field>
883 <field name="type">ir.actions.act_window</field>
884 <field name="res_model">mrp.production</field>
885 <field name="view_type">form</field>
886 <field name="view_mode">tree,form,calendar,graph,gantt</field>
887 <field name="domain">[('state','=','in_production')]</field>
888 <field name="filter" eval="True"/>
889 <field name="search_view_id" ref="view_mrp_production_filter"/>
892 <record id="mrp_production_action4" model="ir.actions.act_window">
893 <field name="name">Manufacturing Orders Waiting Products</field>
894 <field name="type">ir.actions.act_window</field>
895 <field name="res_model">mrp.production</field>
896 <field name="view_type">form</field>
897 <field name="view_mode">tree,form,calendar,graph,gantt</field>
898 <field name="domain">[('state','=','confirmed')]</field>
899 <field name="filter" eval="True"/>
900 <field name="search_view_id" ref="view_mrp_production_filter"/>
903 <record id="mrp_production_product_form_view" model="ir.ui.view">
904 <field name="name">mrp.production.product.line.form</field>
905 <field name="model">mrp.production.product.line</field>
906 <field name="arch" type="xml">
907 <form string="Scheduled Products" version="7.0">
910 <field name="product_id"/>
911 <field name="product_qty"/>
912 <field name="product_uom" groups="product.group_uom"/>
913 <field name="product_uos_qty" groups="product.group_uos"/>
914 <field name="product_uos" groups="product.group_uos"/>
919 <record id="mrp_production_product_tree_view" model="ir.ui.view">
920 <field name="name">mrp.production.product.line.tree</field>
921 <field name="model">mrp.production.product.line</field>
922 <field name="arch" type="xml">
923 <tree string="Scheduled Products">
924 <field name="product_id"/>
925 <field name="product_qty"/>
926 <field name="product_uom" groups="product.group_uom"/>
927 <field name="product_uos_qty" groups="product.group_uos"/>
928 <field name="product_uos" groups="product.group_uos"/>
937 <record id="view_procurement_form_inherit" model="ir.ui.view">
938 <field name="name">procurement.order.form.inherit</field>
939 <field name="model">procurement.order</field>
940 <field name="inherit_id" ref="procurement.procurement_form_view"/>
941 <field name="arch" type="xml">
943 <xpath expr="//field[@name='move_id']" position="before">
944 <field name="bom_id" domain="[('product_id','=',product_id),('bom_id','=',False)]"/>
945 <field name="production_id" attrs="{'invisible': [('production_id','=',False)]}"/>
947 <xpath expr="//field[@name='close_move']" position="after">
948 <group colspan="4" groups="product.group_mrp_properties">
949 <field colspan="4" name="property_ids" widget="many2many_tags"/>
955 <record id="product_product_normal_form_supply_view" model="ir.ui.view">
956 <field name="name">product.normal.form.mrp.inherit</field>
957 <field name="model">product.product</field>
958 <field name="inherit_id" ref="procurement.product_form_view_procurement_button"/>
959 <field name="arch" type="xml">
960 <xpath expr="//field[@name='supply_method']" position="attributes">
961 <attribute name="invisible">False</attribute>
963 <group name="procurement_help" position="inside">
964 <p attrs="{'invisible': ['|','|',('type','=','service'),('procure_method','<>','make_to_order'),('supply_method','<>','produce')]}">
965 When you sell this product, OpenERP will trigger <b>a manufacturing
966 order</b> using the bill of materials assigned to this product.
967 The delivery order will be ready once the production is done.
973 <!-- Menu for Resource for MRP-->
975 <record id="mrp_workcenter_action" model="ir.actions.act_window">
976 <field name="name">Work Center</field>
977 <field name="type">ir.actions.act_window</field>
978 <field name="res_model">mrp.workcenter</field>
979 <field name="view_type">form</field>
980 <field name="view_id" ref="mrp_workcenter_tree_view"/>
981 <field name="search_view_id" ref="view_mrp_workcenter_search"/>
982 <field name="help" type="html">
983 <p class="oe_view_nocontent_create">
984 Click to add a work center.
986 Work Centers allow you to create and manage manufacturing
987 units. They consist of workers and/or machines, which are
988 considered as units for task assignation as well as capacity
989 and planning forecast.
994 <menuitem id="menu_pm_resources_config" name="Resources" parent="menu_mrp_configuration"/>
995 <menuitem action="mrp_workcenter_action" id="menu_view_resource_search_mrp" groups="mrp.group_mrp_routings" parent="mrp.menu_mrp_configuration" sequence="25"/>
996 <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"/>
997 <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"/>
1001 <menuitem id="menu_mrp_planning" name="Planning"
1002 parent="base.menu_mrp_root" sequence="2"/>
1003 <menuitem action="mrp.mrp_production_action_planning"
1004 id="menu_mrp_production_order_action" name="Order Planning"
1005 parent="menu_mrp_planning" sequence="1"/>
1007 <record id="act_product_mrp_bom_open" model="ir.actions.act_window">
1008 <field name="name">BoM Structure</field>
1009 <field name="context">{'default_product_id': active_id}</field>
1010 <field name="domain">[('product_id', 'in', active_ids),('bom_id','=',False)]</field>
1011 <field name="res_model">mrp.bom</field>
1013 <record model="ir.actions.act_window" id="product_open_bom">
1014 <field name="context">{'default_product_id': active_id, 'search_default_product_id': active_id}</field>
1015 <field name="name">Bill of Materials</field>
1016 <field name="domain">[('bom_id','=',False)]</field>
1017 <field name="res_model">mrp.bom</field>
1019 <record id="act_product_mrp_production" model="ir.actions.act_window">
1020 <field name="context">{'search_default_product_id': [active_id]}</field>
1021 <field name="name">Manufacturing Orders</field>
1022 <field name="res_model">mrp.production</field>
1023 <field name="view_id" ref="mrp_production_tree_view"/>
1025 <record model="ir.ui.view" id="product_form_view_bom_button">
1026 <field name="name">product.product.procurement</field>
1027 <field name="model">product.product</field>
1028 <field name="inherit_id" ref="product.product_normal_form_view"/>
1029 <field name="arch" type="xml">
1030 <xpath expr="//div[@name='buttons']" position="inside">
1031 <button string="Bill of Materials" name="%(product_open_bom)d" type="action" attrs="{'invisible':[('type', '=', 'service')]}"/>
1032 <button string="BoM Structure" name="%(act_product_mrp_bom_open)d" type="action" groups="mrp.group_mrp_user" attrs="{'invisible':[('type', '=', 'service')]}"/>
1033 <button string="Manufacturing Orders" name="%(act_product_mrp_production)d" type="action" groups="mrp.group_mrp_user" attrs="{'invisible':[('type', '=', 'service')]}"/>