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"/>
13 <menuitem name="Master Data"
15 parent="base.menu_mrp_root"
16 groups="mrp.group_mrp_manager,mrp.group_mrp_user"
20 Property / Property Group
23 <record id="mrp_property_group_form_view" model="ir.ui.view">
24 <field name="name">mrp.property.group.form</field>
25 <field name="model">mrp.property.group</field>
26 <field name="type">form</field>
27 <field name="arch" type="xml">
28 <form string="Properties categories">
29 <separator colspan="4" string="Property Group"/>
30 <field colspan="4" name="name" select="1" nolabel="1"/>
31 <separator colspan="4" string="Description"/>
32 <field colspan="4" name="description" nolabel="1"/>
36 <record id="mrp_property_group_action" model="ir.actions.act_window">
37 <field name="name">Property Groups</field>
38 <field name="type">ir.actions.act_window</field>
39 <field name="res_model">mrp.property.group</field>
40 <field name="view_type">form</field>
41 <field name="view_mode">tree,form</field>
42 <field name="help">Define specific property groups that can be assigned to the properties of your bills of materials.</field>
45 id="menu_mrp_configuration"
47 parent="base.menu_mrp_root"
48 groups="group_mrp_manager"
51 <record id="mrp_property_tree_view" model="ir.ui.view">
52 <field name="name">mrp.property.tree</field>
53 <field name="model">mrp.property</field>
54 <field name="type">tree</field>
55 <field name="arch" type="xml">
56 <tree string="Properties">
58 <field name="composition"/>
59 <field name="group_id"/>
63 <record id="mrp_property_form_view" model="ir.ui.view">
64 <field name="name">mrp.property.form</field>
65 <field name="model">mrp.property</field>
66 <field name="type">form</field>
67 <field name="arch" type="xml">
68 <form string="Properties">
69 <field colspan="4" name="name" select="1"/>
70 <field name="group_id" select="1"/>
71 <field name="composition" select="1"/>
72 <separator colspan="4" string="Description"/>
73 <field colspan="4" name="description" nolabel="1"/>
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">
84 <group col='15' colspan='4'>
86 <field name="composition"/>
87 <field name="group_id" widget="selection" />
90 <group expand="0" string="Group By..." colspan="4" col="20">
91 <filter string="Property Group" icon="terp-personal" domain="[]" context="{'group_by':'group_id'}"/>
98 <record id="mrp_property_action" model="ir.actions.act_window">
99 <field name="name">Properties</field>
100 <field name="type">ir.actions.act_window</field>
101 <field name="res_model">mrp.property</field>
102 <field name="view_type">form</field>
103 <field name="view_mode">tree,form</field>
104 <field name="search_view_id" ref="view_mrp_property_search"/>
105 <field name="help">The Properties in OpenERP are used to select the right bill of material in order to manufacture 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 select automatically the BoM to use according the the needs.</field>
107 <menuitem name="Master Bill of Materials"
108 id="menu_mrp_property"
109 parent="menu_mrp_configuration"
110 groups="base.group_extended"
113 action="mrp_property_action"
114 id="menu_mrp_property_action"
115 parent="menu_mrp_property"
116 groups="base.group_extended" />
118 action="mrp_property_group_action"
119 id="menu_mrp_property_group_action"
120 parent="menu_mrp_property"/>
126 <record id="mrp_workcenter_tree_view" model="ir.ui.view">
127 <field name="name">mrp.workcenter.tree</field>
128 <field name="model">mrp.workcenter</field>
129 <field name="type">tree</field>
130 <field name="arch" type="xml">
131 <tree string="Work Center">
134 <field name="resource_type"/>
135 <field name="company_id" groups="base.group_multi_company"/>
139 <record id="mrp_workcenter_view" model="ir.ui.view">
140 <field name="name">mrp.workcenter.form</field>
141 <field name="model">mrp.workcenter</field>
142 <field name="type">form</field>
143 <field name="arch" type="xml">
144 <form string="Work Center">
145 <group col="6" colspan="4">
146 <field name="name" select="1"/>
147 <field name="code" select="1"/>
148 <field name="active"/>
149 <field name="resource_type"/>
150 <field name="calendar_id" widget="selection"/>
151 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
153 <notebook colspan="4">
154 <page string="General Information">
155 <group col="2" colspan="2">
156 <separator colspan="2" string="Capacity Information"/>
157 <field name="time_efficiency"/>
158 <field name="capacity_per_cycle"/>
159 <field name="time_cycle" widget="float_time"/>
160 <field name="time_start" widget="float_time"/>
161 <field name="time_stop" widget="float_time"/>
163 <group col="2" colspan="2">
164 <separator colspan="2" string="Costing Information"/>
165 <field name="product_id" on_change="on_change_product_cost(product_id)"/>
166 <field name="costs_hour"/>
167 <field name="costs_hour_account_id" groups="analytic.group_analytic_accounting"/>
168 <field name="costs_cycle"/>
169 <field name="costs_cycle_account_id" groups="analytic.group_analytic_accounting"/>
170 <field name="costs_journal_id" attrs="{'required':['|',('costs_hour_account_id', '=', True),('costs_cycle_account_id', '=', True)]}" groups="analytic.group_analytic_accounting"/>
171 <field name="costs_general_account_id" attrs="{ 'required':['|',('costs_cycle_account_id', '=', True),('costs_hour_account_id', '=', True)]}" groups="analytic.group_analytic_accounting"/>
173 <separator colspan="4" string="Description"/>
174 <field colspan="4" name="note" nolabel="1"/>
181 <!-- Search Views -->
183 <record id="view_mrp_workcenter_search" model="ir.ui.view">
184 <field name="name">mrp.workcenter.search</field>
185 <field name="model">mrp.workcenter</field>
186 <field name="type">search</field>
187 <field name="arch" type="xml">
188 <search string="Search for mrp workcenter">
189 <group col='15' colspan='4'>
190 <filter string="Inactive" icon="terp-gdu-smart-failing" domain="[('active','=',False)]"/>
191 <separator orientation="vertical"/>
194 <field name="resource_type"/>
197 <group expand="0" string="Group By..." colspan="4" col="20" groups="base.group_extended">
198 <filter string="Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'resource_type'}"/>
199 <separator orientation="vertical" groups="base.group_multi_company"/>
200 <filter string="Company" icon="terp-go-home" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
210 <record id="mrp_routing_workcenter_tree_view" model="ir.ui.view">
211 <field name="name">mrp.routing.workcenter.tree</field>
212 <field name="model">mrp.routing.workcenter</field>
213 <field name="type">tree</field>
214 <field name="arch" type="xml">
215 <tree string="Routing Work Centers">
216 <field name="sequence"/>
218 <field name="workcenter_id"/>
219 <field name="cycle_nbr"/>
220 <field name="hour_nbr"/>
221 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
226 <record id="mrp_routing_workcenter_form_view" model="ir.ui.view">
227 <field name="name">mrp.routing.workcenter.form</field>
228 <field name="model">mrp.routing.workcenter</field>
229 <field name="type">form</field>
230 <field name="arch" type="xml">
231 <form string="Routing Work Centers">
232 <separator colspan="4" string="General Information"/>
233 <field colspan="4" name="name" select="1"/>
234 <field name="sequence" select="1"/>
235 <field name="workcenter_id" select="1" widget="selection"/>
236 <field name="cycle_nbr"/>
237 <field name="hour_nbr" widget="float_time"/>
238 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
239 <separator colspan="4" string="Description"/>
240 <field colspan="4" name="note" nolabel="1"/>
245 <record id="mrp_routing_form_view" model="ir.ui.view">
246 <field name="name">mrp.routing.form</field>
247 <field name="model">mrp.routing</field>
248 <field name="type">form</field>
249 <field name="arch" type="xml">
250 <form string="Routing">
251 <group colspan="4" col="6">
254 <field name="active" groups="base.group_extended"/>
255 <field name="location_id"/>
256 <field name="company_id" widget="selection" groups="base.group_multi_company"/>
258 <notebook colspan="4">
259 <page string="Work Center Operations">
260 <field colspan="4" name="workcenter_lines" nolabel="1" widget="one2many_list"/>
262 <page string="Notes">
263 <field colspan="4" name="note" nolabel="1"/>
269 <record id="mrp_routing_tree_view" model="ir.ui.view">
270 <field name="name">mrp.routing.tree</field>
271 <field name="model">mrp.routing</field>
272 <field name="type">tree</field>
273 <field name="arch" type="xml">
274 <tree string="Routing">
277 <field name="location_id"/>
278 <field name="company_id" groups="base.group_multi_company"/>
282 <record id="mrp_routing_search_view" model="ir.ui.view">
283 <field name="name">mrp.routing.search</field>
284 <field name="model">mrp.routing</field>
285 <field name="type">search</field>
286 <field name="arch" type="xml">
287 <search string="Routing">
288 <filter string="Inactive" icon="terp-gdu-smart-failing" domain="[('active','=',False)]"/>
289 <separator orientation="vertical"/>
292 <field name="location_id"/>
293 <field name="company_id" groups="base.group_multi_company"/>
295 <group expand="0" string="Group By..." colspan="4" col="8" groups="base.group_extended">
296 <filter string="Production Location" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'location_id'}"/>
301 <record id="mrp_routing_action" model="ir.actions.act_window">
302 <field name="name">Routings</field>
303 <field name="type">ir.actions.act_window</field>
304 <field name="res_model">mrp.routing</field>
305 <field name="view_type">form</field>
306 <field name="view_id" ref="mrp_routing_tree_view"/>
307 <field name="search_view_id" ref="mrp_routing_search_view"/>
308 <field name="help">Routings allows 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>
310 <menuitem action="mrp_routing_action" id="menu_mrp_routing_action" parent="mrp.menu_mrp_property" groups="base.group_extended" sequence="30"/>
316 <record id="mrp_bom_form_view" model="ir.ui.view">
317 <field name="name">mrp.bom.form</field>
318 <field name="model">mrp.bom</field>
319 <field name="type">form</field>
320 <field name="arch" type="xml">
321 <form string="Bill of Material">
322 <group colspan="4" col="6">
323 <field name="product_id" on_change="onchange_product_id(product_id, name)" select="1"/>
324 <field name="name" select="1"/>
325 <field name="code" select="1" string="Reference" groups="base.group_extended"/>
327 <field name="product_qty"/>
328 <field name="product_uom"/>
329 <field name="routing_id" groups="base.group_extended"/>
331 <field name="product_uos_qty" groups="product.group_uos" />
332 <field name="product_uos" groups="product.group_uos"/>
334 <field name="type" groups="base.group_extended"/>
335 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
337 <notebook colspan="4" >
338 <page string="Components">
339 <field colspan="4" name="bom_lines" nolabel="1" widget="one2many_list">
340 <tree string="Components" editable="bottom">
341 <field name="product_id" on_change="onchange_product_id(product_id, name)" select="1"/>
342 <field name="product_qty"/>
343 <field name="product_uom"/>
344 <field name="name" invisible="1"/>
345 <field name="date_start"/>
346 <field name="date_stop"/>
350 <page string="Revisions" groups="base.group_extended" attrs="{'invisible': [('bom_id','!=',False)]}">
351 <field colspan="4" name="revision_ids" nolabel="1" widget="one2many_list"/>
353 <page string="Properties" groups="base.group_extended">
354 <field name="position"/>
355 <field name="active"/>
356 <field name="sequence"/>
357 <field name="bom_id"/>
359 <field name="date_start"/>
360 <field name="date_stop"/>
361 <field name="product_rounding"/>
362 <field name="product_efficiency" groups="base.group_extended"/>
363 <field colspan="4" name="property_ids" nolabel="2" groups="base.group_extended"/>
370 <record id="view_mrp_bom_filter" model="ir.ui.view">
371 <field name="name">mrp.bom.select</field>
372 <field name="model">mrp.bom</field>
373 <field name="type">search</field>
374 <field name="arch" type="xml">
375 <search string="Search Bill Of Material">
376 <group col='4' colspan='4'>
378 <field name="code" string="Reference"/>
379 <field name="product_id"/>
380 <field name="company_id" groups="base.group_multi_company"/>
383 <group expand="0" string="Group By..." colspan="4" col="8" groups="base.group_extended">
384 <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
385 <filter string='Default UOM' icon="terp-mrp" domain="[]" context="{'group_by' : 'product_uom'}" />
386 <separator orientation="vertical"/>
387 <filter string="Routing" icon="terp-stock_align_left_24" domain="[]" context="{'group_by':'routing_id'}"/>
388 <filter string='Type' icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'type'}" />
389 <separator orientation="vertical"/>
390 <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_start'}" help="Starting Date"/>
396 <record id="mrp_bom_tree_view" model="ir.ui.view">
397 <field name="name">mrp.bom.tree</field>
398 <field name="model">mrp.bom</field>
399 <field name="type">tree</field>
400 <field name="field_parent">child_complete_ids</field>
401 <field name="arch" type="xml">
402 <tree string="BoM Structure" colors="blue:method">
403 <field name="sequence" invisible="1"/>
406 <field name="product_id"/>
407 <field name="product_qty"/>
408 <field name="product_uom"/>
410 <field name="method" groups="base.group_extended"/>
411 <field name="routing_id" groups="base.group_extended"/>
412 <field name="date_start" groups="base.group_extended"/>
413 <field name="date_stop" groups="base.group_extended"/>
417 <record id="mrp_bom_form_action" model="ir.actions.act_window">
418 <field name="name">Bill of Materials</field>
419 <field name="type">ir.actions.act_window</field>
420 <field name="res_model">mrp.bom</field>
421 <field name="view_type">form</field>
422 <field name="domain">[('bom_id','=',False)]</field>
423 <field name="search_view_id" ref="view_mrp_bom_filter"/>
424 <field name="help">Master Bill of Materials allows you to create and manage the list of necessary raw materials used to make a finished product. OpenERP will use these BoM in order to propose automatically manufacturing orders according to products' needs. You can either create a bill of materials to define specific production steps or define a single multi-level bill of materials.</field>
426 <record id="mrp_bom_form_action2" model="ir.actions.act_window">
427 <field name="name">Bill of Material Components</field>
428 <field name="type">ir.actions.act_window</field>
429 <field name="res_model">mrp.bom</field>
430 <field name="view_type">form</field>
431 <field name="domain">[('bom_id','!=',False)]</field>
432 <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 is used a specific component.</field>
438 action="mrp_bom_form_action"
439 id="menu_mrp_bom_form_action"
440 parent="menu_mrp_bom"
441 groups="mrp.group_mrp_user,mrp.group_mrp_manager"
444 action="mrp_bom_form_action2"
445 id="menu_mrp_bom_form_action2"
446 groups="base.group_extended"
447 parent="menu_mrp_bom"
450 <record id="action2" model="ir.actions.act_window">
451 <field name="name">Bill of Materials Structure</field>
452 <field name="type">ir.actions.act_window</field>
453 <field name="res_model">mrp.bom</field>
454 <field name="domain">[('id','=',active_id)]</field>
455 <field name="view_type">tree</field>
456 <field name="view_id" ref="mrp_bom_tree_view"/>
458 <record id="ir_BOM_structure" model="ir.values">
459 <field eval="'client_action_multi'" name="key2"/>
460 <field eval="'mrp.bom'" name="model"/>
461 <field name="name">Bill of Materials Structure</field>
462 <field eval="'ir.actions.act_window,'+str(action2)" name="value"/>
463 <field eval="True" name="object"/>
466 <record id="mrp_bom_revision_tree" model="ir.ui.view">
467 <field name="name">mrp.bom.revision</field>
468 <field name="model">mrp.bom.revision</field>
469 <field name="type">tree</field>
470 <field name="arch" type="xml">
471 <tree string="BoM Revisions">
472 <field name="indice"/>
473 <field name="author_id"/>
475 <field colspan="4" name="name"/>
479 <record id="mrp_bom_revision_form" model="ir.ui.view">
480 <field name="name">mrp.bom.revision</field>
481 <field name="model">mrp.bom.revision</field>
482 <field name="type">form</field>
483 <field name="arch" type="xml">
484 <form string="BoM Revisions">
485 <field colspan="4" name="name"/>
486 <field colspan="1" name="indice"/>
487 <field colspan="1" name="date"/>
488 <field name="author_id" readonly="1"/>
489 <separator colspan="4" string="Description"/>
490 <field colspan="4" name="description" nolabel="1"/>
496 Production Management
498 <record id="mrp_production_tree_view" model="ir.ui.view">
499 <field name="name">mrp.production.tree</field>
500 <field name="model">mrp.production</field>
501 <field name="type">tree</field>
502 <field name="arch" type="xml">
503 <tree 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">
505 <field name="date_planned"/>
506 <field name="product_id"/>
507 <field name="product_qty" sum="Total Qty"/>
508 <field name="product_uom"/>
509 <field name="routing_id" groups="base.group_extended"/>
510 <field name="hour_total" sum="Total Hours" groups="base.group_extended"/>
511 <field name="cycle_total" sum="Total Cycles" groups="base.group_extended"/>
512 <field name="origin"/>
513 <field name="state"/>
518 <record id="view_production_calendar" model="ir.ui.view">
519 <field name="name">mrp.production.calendar</field>
520 <field name="model">mrp.production</field>
521 <field name="type">calendar</field>
522 <field eval="2" name="priority"/>
523 <field name="arch" type="xml">
524 <calendar color="routing_id" date_start="date_planned" string="Manufacturing Orders">
526 <field name="product_id"/>
527 <field name="product_qty"/>
533 <record id="view_production_gantt" model="ir.ui.view">
534 <field name="name">mrp.production.gantt</field>
535 <field name="model">mrp.production</field>
536 <field name="type">gantt</field>
537 <field name="arch" type="xml">
538 <gantt color="product_id" date_stop="date_finished" date_start="date_start" string="Productions">
539 <level object="mrp.routing" link="routing_id" domain="[]">
541 <field name="origin"/>
548 <record model="ir.ui.view" id="view_production_graph">
549 <field name="name">mrp.production.graph</field>
550 <field name="model">mrp.production</field>
551 <field name="type">graph</field>
552 <field name="arch" type="xml">
553 <graph string="Manufacturing Orders" type="bar">
554 <field name="date_planned_date"/>
555 <field name="hour_total" operator="+"/>
556 <field name="cycle_total" operator="+"/>
561 <record id="mrp_production_form_view" model="ir.ui.view">
562 <field name="name">mrp.production.form</field>
563 <field name="model">mrp.production</field>
564 <field name="type">form</field>
565 <field name="arch" type="xml">
566 <form string="Manufacturing Orders">
567 <group colspan="4" col="6">
568 <field name="name" string="Reference"/>
569 <field name="date_planned"/>
570 <field name="origin"/>
571 <field name="product_id" on_change="product_id_change(product_id)"/>
572 <field name="product_qty"/>
573 <group colspan="2" col="4">
574 <field name="product_uom"/>
575 <button type="action"
576 icon="terp-accessories-archiver+"
577 name="%(mrp.action_change_production_qty)d"
578 string="Change Qty" states="ready,confirmed" />
580 <label string="" colspan="2"/>
581 <field name="product_uos_qty" groups="product.group_uos"/>
582 <field name="product_uos" groups="product.group_uos"/>
585 <notebook colspan="4">
586 <page string="Consumed Products">
587 <field name="bom_id" domain="[('product_id','=',product_id),('bom_id','=',False)]" on_change="bom_id_change(bom_id)"/>
588 <field name="routing_id" groups="base.group_extended" select="1"/>
589 <field name="location_src_id" domain="[('usage','=','internal')]" on_change="location_id_change(location_src_id,location_dest_id)"/>
590 <field name="location_dest_id" domain="[('usage','=','internal')]"/>
591 <separator string="" colspan="4"/>
593 <field colspan="2" name="move_lines" nolabel="1" widget="one2many_list"
594 mode="tree,form" height="275" domain="[('state','<>', ('done', 'cancel'))]">
595 <tree colors="blue:state in ('draft');black:state in ('picking_except','confirmed','ready','in_production');gray:state in ('cancel','done') " string="Products to Consume">
596 <field name="product_id" />
597 <field name="product_qty" string="Qty"/>
598 <field name="product_uom" string="UOM"/>
599 <field name="location_id" string="Source Loc."/>
600 <field name="state" invisible="1"/>
601 <button name="%(stock.move_consume)d"
602 string="Consume Products" type="action"
603 icon="gtk-go-forward" context="{'consume': True}"
604 states="draft,waiting,confirmed,assigned" />
605 <button name="%(stock.move_scrap)d"
606 string="Scrap Products" type="action"
607 icon="gtk-convert" context="{'scrap': True}"
608 states="draft,waiting,confirmed,assigned"/>
612 <field colspan="2" name="move_lines2" nolabel="1" domain="[('state','in', ('done', 'cancel'))]"
613 widget="one2many_list" mode="tree,form" height="275">
614 <tree colors="red:scrapped==True;blue:state in('draft');black:state in('picking_except','confirmed','ready','in_production');gray:state in('cancel') " string="Consumed Products" editable="bottom">
615 <field name="product_id" readonly="1"/>
616 <field name="product_qty" readonly="1" string="Qty"/>
617 <field name="product_uom" readonly="1" string="UOM"/>
618 <field name="location_dest_id" readonly="1" string="Destination Loc."/>
619 <field name="prodlot_id" context="{'product_id': product_id}"/>
620 <field name="state" invisible="1"/>
621 <field name="scrapped" invisible="1"/>
623 name="%(stock.track_line)d"
624 string="Split in production lots"
625 type="action" icon="gtk-justify-fill"
626 states="done,cancel" />
628 name="%(stock.move_scrap)d"
629 string="Scrap Products" type="action"
631 states="done,cancel"/>
634 <separator colspan="4"/>
635 <group col="9" colspan="4">
636 <field name="state"/>
637 <button name="button_cancel" states="draft,ready,confirmed,in_production,picking_except" string="Cancel" icon="gtk-stop"/>
638 <button name="button_confirm" states="draft" string="Confirm Production" icon="gtk-apply"/>
639 <button name="button_produce" states="ready" string="Start Production" icon="terp-gtk-jump-to-ltr"/>
640 <button name="%(act_mrp_product_produce)d" states="in_production" string="Produce" icon="gtk-ok" type="action"/>
641 <button name="force_production" states="confirmed,picking_except" string="Force Reservation" type="object" icon="gtk-jump-to"/>
642 <button name="button_recreate" states="picking_except" string="Recreate Picking" icon="terp-document-new"/>
645 <page string="Finished Products">
646 <field colspan="2" name="move_created_ids" nolabel="1" widget="one2many_list"
647 mode="tree,form" height="275" domain="[('state','<>', ('done', 'cancel'))]">
648 <tree string="Products to Finish">
649 <field name="product_id" />
650 <field name="product_qty" string="Qty"/>
651 <field name="product_uom" string="UOM"/>
652 <field name="location_id" string="Source Loc." />
653 <field name="state" invisible="1"/>
654 <button name="%(stock.action_partial_move)d"
656 type="action" states="confirmed,assigned"
657 icon="gtk-justify-fill"/>
658 <button name="%(stock.move_scrap)d"
659 string="Scrap Products" type="action"
660 icon="gtk-convert" context="{'scrap': True}"
661 states="draft,waiting,confirmed,assigned" />
665 <field colspan="2" name="move_created_ids2" nolabel="1" domain="[('state','in', ('done', 'cancel'))]"
666 widget="one2many_list" mode="tree,form" height="275">
667 <tree colors="red:scrapped==True;blue:state in('draft');black:state in('picking_except','confirmed','ready','in_production');gray:state in('cancel','done') " string="Finished Products">
668 <field name="product_id" readonly="1"/>
669 <field name="product_qty" readonly="1" string="Qty"/>
670 <field name="product_uom" readonly="1" string="UOM"/>
671 <field name="location_dest_id" readonly="1" string="Destination Loc." widget="selection"/>
672 <field name="prodlot_id" context="{'product_id': product_id}"/>
673 <field name="scrapped" invisible="1"/>
674 <field name="state" invisible="1"/>
675 <button name="%(stock.track_line)d"
676 string="Split in production lots" type="action" icon="gtk-justify-fill" states="done,cancel"/>
677 <button name="%(stock.move_scrap)d"
678 string="Scrap Products" type="action" icon="gtk-convert"
679 states="done,cancel" />
683 <page string="Work Orders" groups="base.group_extended">
684 <button name="action_compute" states="draft"
685 string="Compute Data" type="object"
686 icon="terp-stock_format-scientific"
688 <field colspan="4" name="workcenter_lines" nolabel="1">
689 <form string="Production Work Centers">
690 <field colspan="4" name="name"/>
691 <field name="workcenter_id" widget="selection"/>
692 <field name="sequence"/>
693 <field name="cycle"/>
696 <tree string="Production Work Centers">
697 <field name="sequence"/>
699 <field name="workcenter_id" widget="selection"/>
700 <field name="cycle"/>
705 <page string="Scheduled Products">
706 <button name="action_compute" states="draft"
707 string="Compute Data" type="object"
708 icon="terp-stock_format-scientific"
710 <field colspan="4" name="product_lines" nolabel="1" widget="one2many_list"/>
712 <page string="Extra Information">
713 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
714 <field name="priority" groups="base.group_extended"/>
716 <field name="date_start"/>
717 <field name="date_finished"/>
718 <field name="picking_id" groups="base.group_extended"/>
719 <field name="move_prod_id" groups="base.group_extended"/>
726 <record id="view_mrp_production_filter" model="ir.ui.view">
727 <field name="name">mrp.production.select</field>
728 <field name="model">mrp.production</field>
729 <field name="type">search</field>
730 <field name="arch" type="xml">
731 <search string="Search Production">
732 <group col='9' colspan='4'>
733 <filter icon="terp-gtk-media-pause" string="Pending" name="pending"
734 domain="[('state','=','confirmed')]"
735 help="Manufacturing Orders which are waiting for raw materials."/>
736 <filter icon="terp-check" string="In Production" name="inprogress"
737 domain="[('state','=','in_production')]"
738 help="Manufacturing Orders which are currently in production."/>
739 <filter icon="terp-camera_test" string="Ready" name="ready"
740 domain="[('state','=','ready')]"
741 help="Manufacturing Orders which are ready to start production."/>
742 <separator orientation="vertical"/>
743 <filter icon="terp-gnome-cpu-frequency-applet+" string="Late"
744 domain="['&', ('date_planned::date','<', current_date), ('state', 'in', ('draft', 'confirmed', 'ready'))]"
745 help="Production started late" />
746 <separator orientation="vertical"/>
748 <field name="product_id"/>
749 <field name="routing_id" groups="base.group_extended"/>
750 <field name="origin"/>
753 <group expand="0" string="Group By..." colspan="10" col="8">
754 <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
755 <separator orientation="vertical"/>
756 <filter string="Routing" icon="terp-stock_align_left_24" domain="[]" context="{'group_by':'routing_id'}" groups="base.group_extended"/>
757 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
758 <separator orientation="vertical"/>
759 <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_planned'}" help="Scheduled Date"/>
765 <record id="mrp_production_action" model="ir.actions.act_window">
766 <field name="name">Manufacturing Orders</field>
767 <field name="type">ir.actions.act_window</field>
768 <field name="res_model">mrp.production</field>
769 <field name="view_type">form</field>
770 <field name="view_mode">tree,form,calendar,graph,gantt</field>
771 <field name="view_id" eval="False"/>
772 <field name="search_view_id" ref="view_mrp_production_filter"/>
773 <field name="context">{'search_default_ready':1}</field>
774 <field name="help">Manufacturing Orders are usually proposed automatically by OpenERP based on the bill of materials and the procurement rules, but you can also create manufacturing orders manually. OpenERP will handle the consumation of the raw materials (stock decrease) and the production of the finished products (stock increase) when the order is processed.</field>
776 <menuitem action="mrp_production_action" id="menu_mrp_production_action" parent="menu_mrp_manufacturing" groups="mrp.group_mrp_user,mrp.group_mrp_manager" sequence="1"/>
778 <record id="mrp_production_action_planning" model="ir.actions.act_window">
779 <field name="name">Manufacturing Orders</field>
780 <field name="type">ir.actions.act_window</field>
781 <field name="res_model">mrp.production</field>
782 <field name="view_type">form</field>
783 <field name="view_mode">calendar,tree,form,graph</field>
784 <field name="domain">[('state','in',('ready','confirmed','in_production'))]</field>
785 <field name="help">Manufacturing Orders describe the operations that need to be carried out and the raw materials usage for each stage of production. 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 becomes capable of automatically deciding on the manufacturing route depending on the needs of the company.</field>
788 <record id="mrp_production_action2" model="ir.actions.act_window">
789 <field name="name">Manufacturing Orders To Start</field>
790 <field name="type">ir.actions.act_window</field>
791 <field name="res_model">mrp.production</field>
792 <field name="view_type">form</field>
793 <field name="view_mode">tree,form,calendar,graph,gantt</field>
794 <field name="domain">[('state','=','ready')]</field>
795 <field name="filter" eval="True"/>
796 <field name="search_view_id" ref="view_mrp_production_filter"/>
799 <record id="mrp_production_action3" model="ir.actions.act_window">
800 <field name="name">Manufacturing Orders in Progress</field>
801 <field name="type">ir.actions.act_window</field>
802 <field name="res_model">mrp.production</field>
803 <field name="view_type">form</field>
804 <field name="view_mode">tree,form,calendar,graph,gantt</field>
805 <field name="domain">[('state','=','in_production')]</field>
806 <field name="filter" eval="True"/>
807 <field name="search_view_id" ref="view_mrp_production_filter"/>
810 <record id="mrp_production_action4" model="ir.actions.act_window">
811 <field name="name">Manufacturing Orders Waiting Products</field>
812 <field name="type">ir.actions.act_window</field>
813 <field name="res_model">mrp.production</field>
814 <field name="view_type">form</field>
815 <field name="view_mode">tree,form,calendar,graph,gantt</field>
816 <field name="domain">[('state','=','confirmed')]</field>
817 <field name="filter" eval="True"/>
818 <field name="search_view_id" ref="view_mrp_production_filter"/>
821 <record id="mrp_production_lot_form_view" model="ir.ui.view">
822 <field name="name">mrp.production.lot.line.form</field>
823 <field name="model">mrp.production.lot.line</field>
824 <field name="type">form</field>
825 <field name="arch" type="xml">
826 <form string="Production Products">
827 <field colspan="4" name="move_id" on_change="onchange_lot_line_id(lot_id)"/>
829 <field name="product_id"/>
830 <field name="product_qty"/>
831 <field name="product_uom"/>
832 <field name="product_uos_qty" groups="product.group_uos"/>
833 <field name="product_uos" groups="product.group_uos"/>
834 <field name="tracking_id"/>
838 <record id="mrp_production_lot_tree_view" model="ir.ui.view">
839 <field name="name">mrp.production.lot.line.tree</field>
840 <field name="model">mrp.production.lot.line</field>
841 <field name="type">tree</field>
842 <field name="arch" type="xml">
843 <tree string="Production Products Consommation">
844 <field name="product_id"/>
845 <field name="product_qty"/>
846 <field name="product_uom"/>
847 <field name="product_uos_qty" groups="product.group_uos"/>
848 <field name="product_uos" groups="product.group_uos"/>
849 <field name="tracking_id"/>
854 <record id="mrp_production_product_form_view" model="ir.ui.view">
855 <field name="name">mrp.production.product.line.form</field>
856 <field name="model">mrp.production.product.line</field>
857 <field name="type">form</field>
858 <field name="arch" type="xml">
859 <form string="Scheduled Products">
861 <field name="product_id"/>
862 <field name="product_qty"/>
863 <field name="product_uom"/>
864 <field name="product_uos_qty" groups="product.group_uos"/>
865 <field name="product_uos" groups="product.group_uos"/>
869 <record id="mrp_production_product_tree_view" model="ir.ui.view">
870 <field name="name">mrp.production.product.line.tree</field>
871 <field name="model">mrp.production.product.line</field>
872 <field name="type">tree</field>
873 <field name="arch" type="xml">
874 <tree string="Scheduled Products">
875 <field name="product_id"/>
876 <field name="product_qty"/>
877 <field name="product_uom"/>
878 <field name="product_uos_qty" groups="product.group_uos"/>
879 <field name="product_uos" groups="product.group_uos"/>
888 <record id="view_procurement_form_inherit" model="ir.ui.view">
889 <field name="name">procurement.order.form.inherit</field>
890 <field name="model">procurement.order</field>
891 <field name="inherit_id" ref="procurement.procurement_form_view"/>
892 <field name="type">form</field>
893 <field name="arch" type="xml">
895 <xpath expr="/form/notebook/page/field[@name='move_id']" position="before">
896 <field name="bom_id" domain="[('product_id','=',product_id),('bom_id','=',False)]"/>
898 <xpath expr="/form/notebook/page/field[@name='close_move']" position="after">
899 <group colspan="4" groups="base.group_extended">
900 <separator colspan="4" string="Properties" />
901 <field colspan="4" name="property_ids" nolabel="1"/>
908 id="action_product_bom_structure"
909 name="Product BoM Structure"
910 domain="[('product_id', '=', active_id),('bom_id','=',False)]"
912 view_id="mrp_bom_tree_view"
914 src_model="product.product"
915 groups="base.group_extended"/>
918 domain="[('bom_id','=',False)]"
919 context="{'search_default_product_id': [active_id],'default_product_id':active_id}"
920 id="act_product_product_2_mrp_bom"
921 name="Bill of Materials"
923 src_model="product.product"/>
925 <!-- Menu for Resource for MRP-->
927 <record id="mrp_workcenter_action" model="ir.actions.act_window">
928 <field name="name">Work Centers</field>
929 <field name="type">ir.actions.act_window</field>
930 <field name="res_model">mrp.workcenter</field>
931 <field name="view_type">form</field>
932 <field name="view_id" ref="mrp_workcenter_tree_view"/>
933 <field name="search_view_id" ref="view_mrp_workcenter_search"/>
934 <field name="help">Work Centers allows you to create and manage manufacturing units consisting of one or several people and/or machines that can be considered as a unit for capacity and planning forecasting.</field>
937 <menuitem id="menu_pm_resources_config" name="Resources" parent="menu_mrp_configuration"/>
938 <menuitem action="mrp_workcenter_action" id="menu_view_resource_search_mrp" parent="menu_pm_resources_config" sequence="1"/>
939 <menuitem action="resource.action_resource_calendar_form" id="menu_view_resource_calendar_search_mrp" parent="menu_pm_resources_config" sequence="1"/>
940 <menuitem action="resource.action_resource_calendar_leave_tree" id="menu_view_resource_calendar_leaves_search_mrp" parent="menu_pm_resources_config" sequence="1"/>
944 <menuitem id="menu_mrp_planning" name="Planning"
945 parent="base.menu_mrp_root" sequence="2"
946 groups="base.group_extended"/>
947 <menuitem action="mrp.mrp_production_action_planning"
948 id="menu_mrp_production_order_action"
949 parent="menu_mrp_planning" sequence="1"
950 groups="base.group_extended"/>