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,base.group_system" sequence="8"/>
8 <menuitem id="menu_mrp_manufacturing" name="Manufacturing" parent="base.menu_mrp_root" sequence="1"/>
11 <menuitem name="Master Data"
13 parent="base.menu_mrp_root"
14 groups="mrp.group_mrp_manager,base.group_system"
18 Property / Property Group
21 <record id="mrp_property_group_form_view" model="ir.ui.view">
22 <field name="name">mrp.property.group.form</field>
23 <field name="model">mrp.property.group</field>
24 <field name="type">form</field>
25 <field name="arch" type="xml">
26 <form string="Properties categories">
27 <separator colspan="4" string="Property Group"/>
28 <field colspan="4" name="name" select="1" nolabel="1"/>
29 <separator colspan="4" string="Description"/>
30 <field colspan="4" name="description" nolabel="1"/>
34 <record id="mrp_property_group_action" model="ir.actions.act_window">
35 <field name="name">Property Groups</field>
36 <field name="type">ir.actions.act_window</field>
37 <field name="res_model">mrp.property.group</field>
38 <field name="view_type">form</field>
39 <field name="view_mode">tree,form</field>
42 id="menu_mrp_configuration"
44 parent="base.menu_mrp_root"
45 groups="base.group_system"
48 <record id="mrp_property_tree_view" model="ir.ui.view">
49 <field name="name">mrp.property.tree</field>
50 <field name="model">mrp.property</field>
51 <field name="type">tree</field>
52 <field name="arch" type="xml">
53 <tree string="Properties">
55 <field name="composition"/>
56 <field name="group_id"/>
60 <record id="mrp_property_form_view" model="ir.ui.view">
61 <field name="name">mrp.property.form</field>
62 <field name="model">mrp.property</field>
63 <field name="type">form</field>
64 <field name="arch" type="xml">
65 <form string="Properties">
66 <field colspan="4" name="name" select="1"/>
67 <field name="group_id" select="1"/>
68 <field name="composition" select="1"/>
69 <separator colspan="4" string="Description"/>
70 <field colspan="4" name="description" nolabel="1"/>
75 <record id="view_mrp_property_search" model="ir.ui.view">
76 <field name="name">mrp.property.search</field>
77 <field name="model">mrp.property</field>
78 <field name="type">search</field>
79 <field name="arch" type="xml">
80 <search string="Search">
81 <group col='15' colspan='4'>
83 <field name="composition"/>
84 <field name="group_id" widget="selection" />
87 <group expand="0" string="Group By..." colspan="4" col="20">
88 <filter string="Property Group" icon="terp-personal" domain="[]" context="{'group_by':'group_id'}"/>
95 <record id="mrp_property_action" model="ir.actions.act_window">
96 <field name="name">Properties</field>
97 <field name="type">ir.actions.act_window</field>
98 <field name="res_model">mrp.property</field>
99 <field name="view_type">form</field>
100 <field name="view_mode">tree,form</field>
101 <field name="search_view_id" ref="view_mrp_property_search"/>
103 <menuitem name="Master Bill of Materials"
104 id="menu_mrp_property"
105 parent="menu_mrp_configuration"
106 groups="base.group_extended"
109 action="mrp_property_action"
110 id="menu_mrp_property_action"
111 parent="menu_mrp_property"
112 groups="base.group_extended,base.group_system" />
114 action="mrp_property_group_action"
115 id="menu_mrp_property_group_action"
116 groups="base.group_system"
117 parent="menu_mrp_property"/>
123 <record id="mrp_workcenter_tree_view" model="ir.ui.view">
124 <field name="name">mrp.workcenter.tree</field>
125 <field name="model">mrp.workcenter</field>
126 <field name="type">tree</field>
127 <field name="arch" type="xml">
128 <tree string="Work Center">
131 <field name="resource_id"/>
132 <field name="resource_type"/>
133 <field name="company_id" groups="base.group_multi_company"/>
137 <record id="mrp_workcenter_view" model="ir.ui.view">
138 <field name="name">mrp.workcenter.form</field>
139 <field name="model">mrp.workcenter</field>
140 <field name="type">form</field>
141 <field name="arch" type="xml">
142 <form string="Work Center">
143 <group col="6" colspan="4">
144 <field name="name" select="1"/>
145 <field name="code" select="1"/>
146 <field name="active"/>
147 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
149 <notebook colspan="4">
150 <page string="Work Center">
151 <field name="resource_type"/>
152 <field name="calendar_id" widget="selection"/>
153 <separator colspan="4" string="Description"/>
154 <field colspan="4" name="note" nolabel="1"/>
155 <separator colspan="4" string="Capacity Information"/>
156 <group col="4" colspan="4">
157 <field name="capacity_per_cycle"/>
159 <field name="time_cycle" widget="float_time"/>
160 <field name="time_efficiency"/>
161 <field name="time_start" widget="float_time"/>
162 <field name="time_stop" widget="float_time"/>
165 <page string="Analytic Accounting" groups="analytic.group_analytic_accounting">
166 <field name="costs_hour"/>
167 <field name="costs_hour_account_id"/>
168 <field name="costs_cycle"/>
169 <field name="costs_cycle_account_id"/>
170 <field name="costs_journal_id"/>
171 <field name="costs_general_account_id"/>
178 <!-- Search Views -->
180 <record id="view_mrp_workcenter_search" model="ir.ui.view">
181 <field name="name">mrp.workcenter.search</field>
182 <field name="model">mrp.workcenter</field>
183 <field name="type">search</field>
184 <field name="arch" type="xml">
185 <search string="Search for mrp workcenter">
186 <group col='15' colspan='4'>
189 <field name="resource_type"/>
192 <group expand="0" string="Group By..." colspan="4" col="20" groups="base.group_extended">
193 <filter string="Resource" icon="terp-personal" domain="[]" context="{'group_by':'resource_id'}"/>
194 <separator orientation="vertical"/>
195 <filter string="Type" icon="terp-stock_symbol-selection" domain="[]" context="{'group_by':'resource_type'}"/>
196 <separator orientation="vertical" groups="base.group_multi_company"/>
197 <filter string="Company" icon="terp-go-home" domain="[]" context="{'group_by':'company_id'}" groups="base.group_multi_company"/>
203 <record id="mrp_workcenter_action" model="ir.actions.act_window">
204 <field name="name">Work Centers</field>
205 <field name="type">ir.actions.act_window</field>
206 <field name="res_model">mrp.workcenter</field>
207 <field name="view_type">form</field>
208 <field name="view_id" ref="mrp_workcenter_tree_view"/>
209 <field name="search_view_id" ref="view_mrp_workcenter_search"/>
210 <field name="help">Work Centers are units of manufacture consisting of one or several people and/or machines that can be considered as a unit for the purposes of forecasting capacity and planning.</field>
217 <record id="mrp_routing_workcenter_tree_view" model="ir.ui.view">
218 <field name="name">mrp.routing.workcenter.tree</field>
219 <field name="model">mrp.routing.workcenter</field>
220 <field name="type">tree</field>
221 <field name="arch" type="xml">
222 <tree string="Routing Work Centers">
223 <field name="sequence"/>
224 <field name="workcenter_id"/>
225 <field name="cycle_nbr"/>
226 <field name="hour_nbr"/>
231 <record id="mrp_routing_workcenter_form_view" model="ir.ui.view">
232 <field name="name">mrp.routing.workcenter.form</field>
233 <field name="model">mrp.routing.workcenter</field>
234 <field name="type">form</field>
235 <field name="arch" type="xml">
236 <form string="Routing Work Centers">
237 <separator colspan="4" string="General Information"/>
238 <field colspan="4" name="name" select="1"/>
239 <field name="sequence" select="1"/>
240 <field name="workcenter_id" select="1"/>
241 <field name="cycle_nbr"/>
242 <field name="hour_nbr" widget="float_time"/>
243 <separator colspan="4" string="Description"/>
244 <field colspan="4" name="note" nolabel="1"/>
249 <record id="mrp_routing_form_view" model="ir.ui.view">
250 <field name="name">mrp.routing.form</field>
251 <field name="model">mrp.routing</field>
252 <field name="type">form</field>
253 <field name="arch" type="xml">
254 <form string="Routing">
257 <field name="location_id"/>
258 <field name="active" groups="base.group_extended"/>
259 <notebook colspan="4">
260 <page string="Work Center Operations">
261 <field colspan="4" name="workcenter_lines" nolabel="1" widget="one2many_list"/>
263 <page string="Notes">
264 <field colspan="4" name="note" nolabel="1"/>
270 <record id="mrp_routing_tree_view" model="ir.ui.view">
271 <field name="name">mrp.routing.tree</field>
272 <field name="model">mrp.routing</field>
273 <field name="type">tree</field>
274 <field name="arch" type="xml">
275 <tree string="Routing">
278 <field name="location_id"/>
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">
290 <field name="location_id"/>
294 <record id="mrp_routing_action" model="ir.actions.act_window">
295 <field name="name">Routings</field>
296 <field name="type">ir.actions.act_window</field>
297 <field name="res_model">mrp.routing</field>
298 <field name="view_type">form</field>
299 <field name="view_id" ref="mrp_routing_tree_view"/>
300 <field name="search_view_id" ref="mrp_routing_search_view"/>
301 <field name="help">Routings define the assembly operations to be done in work centers for manufacturing a certain product. They are usually attached to bills of materials which will define the assembly of products required for manufacture or for finished products.</field>
303 <menuitem action="mrp_workcenter_action" id="menu_mrp_workcenter_action" parent="mrp.menu_mrp_property" groups="base.group_extended" sequence="40" />
304 <menuitem action="mrp_routing_action" id="menu_mrp_routing_action" parent="mrp.menu_mrp_property" groups="base.group_extended" sequence="30"/>
310 <record id="mrp_bom_form_view" model="ir.ui.view">
311 <field name="name">mrp.bom.form</field>
312 <field name="model">mrp.bom</field>
313 <field name="type">form</field>
314 <field name="arch" type="xml">
315 <form string="Bill of Material">
316 <group colspan="4" col="6">
317 <field name="product_id" on_change="onchange_product_id(product_id, name)" select="1"/>
318 <field name="name" select="1"/>
319 <field name="code" select="1" string="Reference" groups="base.group_extended"/>
321 <field name="product_qty"/>
322 <field name="product_uom"/>
323 <field name="routing_id" groups="base.group_extended"/>
325 <field name="product_uos" groups="product.group_uos"/>
326 <field name="product_uos_qty" groups="product.group_uos" />
328 <field name="type" groups="base.group_extended"/>
329 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
331 <notebook colspan="4" >
332 <page string="Components">
333 <field colspan="4" name="bom_lines" nolabel="1" widget="one2many_list">
334 <tree string="Components" editable="bottom">
335 <field name="product_id" on_change="onchange_product_id(product_id, name)" select="1"/>
336 <field name="product_qty"/>
337 <field name="product_uom"/>
338 <field name="name" invisible="1"/>
339 <field name="date_start"/>
340 <field name="date_stop"/>
344 <page string="Revisions" groups="base.group_extended" attrs="{'invisible': [('bom_id','!=',False)]}">
345 <field colspan="4" name="revision_ids" nolabel="1" widget="one2many_list"/>
347 <page string="Properties" groups="base.group_extended">
348 <field name="position"/>
349 <field name="active"/>
350 <field name="sequence"/>
351 <field name="bom_id"/>
353 <field name="date_start"/>
354 <field name="date_stop"/>
355 <field name="product_rounding"/>
356 <field name="product_efficiency" groups="base.group_extended"/>
357 <field colspan="4" name="property_ids" nolabel="2" groups="base.group_extended"/>
364 <record id="view_mrp_bom_filter" model="ir.ui.view">
365 <field name="name">mrp.bom.select</field>
366 <field name="model">mrp.bom</field>
367 <field name="type">search</field>
368 <field name="arch" type="xml">
369 <search string="Search Bill Of Material">
370 <group col='4' colspan='4'>
372 <field name="code" string="Reference"/>
373 <field name="product_id"/>
374 <field name="company_id" groups="base.group_multi_company"/>
377 <group expand="0" string="Group By..." colspan="4" col="8" groups="base.group_extended">
378 <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
379 <filter string='Default UOM' icon="terp-mrp" domain="[]" context="{'group_by' : 'product_uom'}" />
380 <separator orientation="vertical"/>
381 <filter string="Routing" icon="terp-stock_align_left_24" domain="[]" context="{'group_by':'routing_id'}"/>
382 <filter string='Type' icon="terp-stock_symbol-selection" domain="[]" context="{'group_by' : 'type'}" />
383 <separator orientation="vertical"/>
384 <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_start'}" help="Starting Date"/>
390 <record id="mrp_bom_tree_view" model="ir.ui.view">
391 <field name="name">mrp.bom.tree</field>
392 <field name="model">mrp.bom</field>
393 <field name="type">tree</field>
394 <field name="field_parent">child_complete_ids</field>
395 <field name="arch" type="xml">
396 <tree string="BoM Structure" colors="blue:method">
397 <field name="sequence" invisible="1"/>
400 <field name="product_id"/>
401 <field name="product_qty"/>
402 <field name="product_uom"/>
404 <field name="method" groups="base.group_extended"/>
405 <field name="routing_id" groups="base.group_extended"/>
406 <field name="date_start" groups="base.group_extended"/>
407 <field name="date_stop" groups="base.group_extended"/>
411 <record id="mrp_bom_form_action" model="ir.actions.act_window">
412 <field name="name">Master Bill of Materials</field>
413 <field name="type">ir.actions.act_window</field>
414 <field name="res_model">mrp.bom</field>
415 <field name="view_type">form</field>
416 <field name="domain">[('bom_id','=',False)]</field>
417 <field name="search_view_id" ref="view_mrp_bom_filter"/>
418 <field name="help">Master Bills of Materials are documents that describe the list of raw materials used to make a finished product. You can generate documents for a product manufacturing (defining each manufacturing step) or you could define a single multi-level bill of materials.</field>
420 <record id="mrp_bom_form_action2" model="ir.actions.act_window">
421 <field name="name">Bill of Material Components</field>
422 <field name="type">ir.actions.act_window</field>
423 <field name="res_model">mrp.bom</field>
424 <field name="view_type">form</field>
425 <field name="domain">[('bom_id','!=',False)]</field>
426 <field name="help">Bills of materials Components are components and sub-product used to create master bills of materials.</field>
432 action="mrp_bom_form_action"
433 id="menu_mrp_bom_form_action"
434 parent="menu_mrp_bom"
435 groups="mrp.group_mrp_user,mrp.group_mrp_manager,base.group_system"
438 action="mrp_bom_form_action2"
439 id="menu_mrp_bom_form_action2"
440 groups="base.group_extended"
441 parent="menu_mrp_bom"
444 <record id="action2" model="ir.actions.act_window">
445 <field name="name">Bill of Materials Structure</field>
446 <field name="type">ir.actions.act_window</field>
447 <field name="res_model">mrp.bom</field>
448 <field name="domain">[('id','=',active_id)]</field>
449 <field name="view_type">tree</field>
450 <field name="view_id" ref="mrp_bom_tree_view"/>
452 <record id="ir_BOM_structure" model="ir.values">
453 <field eval="'client_action_multi'" name="key2"/>
454 <field eval="'mrp.bom'" name="model"/>
455 <field name="name">Bill of Materials Structure</field>
456 <field eval="'ir.actions.act_window,'+str(action2)" name="value"/>
457 <field eval="True" name="object"/>
460 <record id="mrp_bom_revision_tree" model="ir.ui.view">
461 <field name="name">mrp.bom.revision</field>
462 <field name="model">mrp.bom.revision</field>
463 <field name="type">tree</field>
464 <field name="arch" type="xml">
465 <tree string="BoM Revisions">
466 <field name="indice"/>
467 <field name="author_id"/>
469 <field colspan="4" name="name"/>
473 <record id="mrp_bom_revision_form" model="ir.ui.view">
474 <field name="name">mrp.bom.revision</field>
475 <field name="model">mrp.bom.revision</field>
476 <field name="type">form</field>
477 <field name="arch" type="xml">
478 <form string="BoM Revisions">
479 <field colspan="4" name="name"/>
480 <field colspan="1" name="indice"/>
481 <field colspan="1" name="date"/>
482 <field name="author_id" readonly="1"/>
483 <separator colspan="4" string="Description"/>
484 <field colspan="4" name="description" nolabel="1"/>
490 Production Management
492 <record id="mrp_production_tree_view" model="ir.ui.view">
493 <field name="name">mrp.production.tree</field>
494 <field name="model">mrp.production</field>
495 <field name="type">tree</field>
496 <field name="arch" type="xml">
497 <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">
499 <field name="date_planned"/>
500 <field name="product_id"/>
501 <field name="product_qty" sum="Total Qty"/>
502 <field name="product_uom"/>
503 <field name="routing_id" groups="base.group_extended"/>
504 <field name="hour_total" sum="Total Hours" groups="base.group_extended"/>
505 <field name="cycle_total" sum="Total Cycles" groups="base.group_extended"/>
506 <field name="origin"/>
507 <field name="state"/>
512 <record id="view_production_calendar" model="ir.ui.view">
513 <field name="name">mrp.production.calendar</field>
514 <field name="model">mrp.production</field>
515 <field name="type">calendar</field>
516 <field eval="2" name="priority"/>
517 <field name="arch" type="xml">
518 <calendar color="routing_id" date_start="date_planned" string="Manufacturing Orders">
519 <field name="origin"/>
520 <field name="product_id"/>
521 <field name="product_qty"/>
527 <record id="view_production_gantt" model="ir.ui.view">
528 <field name="name">mrp.production.gantt</field>
529 <field name="model">mrp.production</field>
530 <field name="type">gantt</field>
531 <field name="arch" type="xml">
532 <gantt color="product_id" date_stop="date_finished" date_start="date_start" string="Productions">
533 <level object="mrp.routing" link="routing_id" domain="[]">
535 <field name="origin"/>
542 <record model="ir.ui.view" id="view_production_graph">
543 <field name="name">mrp.production.graph</field>
544 <field name="model">mrp.production</field>
545 <field name="type">graph</field>
546 <field name="arch" type="xml">
547 <graph string="Manufacturing Orders" type="bar">
548 <field name="date_planned_date"/>
549 <field name="hour_total" operator="+"/>
550 <field name="cycle_total" operator="+"/>
555 <record id="mrp_production_form_view" model="ir.ui.view">
556 <field name="name">mrp.production.form</field>
557 <field name="model">mrp.production</field>
558 <field name="type">form</field>
559 <field name="arch" type="xml">
560 <form string="Manufacturing Orders">
561 <group colspan="4" col="6">
562 <field name="name" string="Reference"/>
563 <field name="date_planned"/>
564 <field name="origin"/>
565 <field name="product_id" on_change="product_id_change(product_id)"/>
566 <field name="product_qty"/>
567 <group colspan="2" col="3">
568 <field name="product_uom"/>
569 <button type="action"
570 name="%(mrp.action_change_production_qty)d"
571 string="Change Qty" states="ready,confirmed" />
573 <label string="" colspan="2"/>
574 <field name="product_uos_qty" groups="product.group_uos"/>
575 <field name="product_uos" groups="product.group_uos"/>
578 <notebook colspan="4">
579 <page string="Consumed Products">
580 <field name="bom_id" domain="[('product_id','=',product_id),('bom_id','=',False)]" on_change="bom_id_change(bom_id)" />
581 <field name="routing_id" groups="base.group_extended" select="1"/>
582 <field name="location_src_id" domain="[('usage','=','internal')]" on_change="location_id_change(location_src_id,location_dest_id)"/>
583 <field name="location_dest_id" domain="[('usage','=','internal')]"/>
584 <separator string="" colspan="4"/>
586 <field colspan="2" name="move_lines" nolabel="1" widget="one2many_list"
587 mode="tree,form" height="275" domain="[('state','<>', ('done', 'cancel'))]">
588 <tree colors="blue:state in ('draft');black:state in ('picking_except','confirmed','ready','in_production');gray:state in ('cancel','done') " string="Products to Consume">
589 <field name="product_id" />
590 <field name="product_qty" string="Qty"/>
591 <field name="product_uom" string="UOM" widget="selection"/>
592 <field name="location_id" string="Source Loc." widget="selection"/>
593 <field name="state" invisible="1"/>
594 <button name="%(stock.move_consume)d"
595 string="Consume Products" type="action"
596 icon="gtk-go-forward" context="{'consume': True}"
597 states="draft,waiting,confirmed,assigned" />
598 <button name="%(stock.move_scrap)d"
599 string="Scrap Products" type="action"
600 icon="gtk-convert" context="{'scrap': True}"
601 states="draft,waiting,confirmed,assigned"/>
605 <field colspan="2" name="move_lines2" nolabel="1" domain="[('state','in', ('done', 'cancel'))]"
606 widget="one2many_list" mode="tree,form" height="275">
607 <tree colors="red:scrapped==True;blue:state in('draft');black:state in('picking_except','confirmed','ready','in_production');gray:state in('cancel','done') " string="Consumed Products" editable="bottom">
608 <field name="product_id" readonly="1"/>
609 <field name="product_qty" readonly="1" string="Qty"/>
610 <field name="product_uom" readonly="1" string="UOM" widget="selection"/>
611 <field name="location_dest_id" readonly="1" string="Destination Loc." widget="selection"/>
612 <field name="prodlot_id" />
613 <field name="state" invisible="1"/>
614 <field name="scrapped" invisible="1"/>
616 name="%(stock.track_line)d"
617 string="Split in production lots"
618 type="action" icon="gtk-justify-fill"
619 states="done,cancel" />
621 name="%(stock.move_scrap)d"
622 string="Scrap Products" type="action"
624 states="done,cancel"/>
627 <separator colspan="4"/>
628 <group col="9" colspan="4">
629 <field name="state"/>
630 <button name="button_cancel" states="draft,ready,confirmed,in_production,picking_except" string="Cancel" icon="gtk-stop"/>
631 <button name="action_compute" states="draft" string="Compute Data" type="object" icon="terp-stock_format-scientific"/>
632 <button name="button_confirm" states="draft" string="Confirm Production" icon="gtk-apply"/>
633 <button name="button_produce" states="ready" string="Start Production" icon="terp-gtk-jump-to-ltr"/>
634 <button name="%(act_mrp_product_produce)d" states="in_production" string="Produce" icon="gtk-ok" type="action"/>
635 <button name="force_production" states="confirmed,picking_except" string="Force Reservation" type="object" icon="gtk-jump-to"/>
636 <button name="button_recreate" states="picking_except" string="Recreate Picking" icon="terp-document-new"/>
639 <page string="Finished Products">
640 <field colspan="2" name="move_created_ids" nolabel="1" widget="one2many_list"
641 mode="tree,form" height="275" domain="[('state','<>', ('done', 'cancel'))]">
642 <tree string="Products to Finish">
643 <field name="product_id" />
644 <field name="product_qty" string="Qty"/>
645 <field name="product_uom" string="UOM" widget="selection"/>
646 <field name="location_id" string="Source Loc." widget="selection"/>
647 <field name="state" invisible="1"/>
648 <button name="%(stock.move_scrap)d"
649 string="Scrap Products" type="action"
650 icon="gtk-convert" context="{'scrap': True}"
651 states="draft,waiting,confirmed,assigned" />
655 <field colspan="2" name="move_created_ids2" nolabel="1" domain="[('state','in', ('done', 'cancel'))]"
656 widget="one2many_list" mode="tree,form" height="275">
657 <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" editable="bottom">
658 <field name="product_id" readonly="1"/>
659 <field name="product_qty" readonly="1" string="Qty"/>
660 <field name="product_uom" readonly="1" string="UOM" widget="selection"/>
661 <field name="location_dest_id" readonly="1" string="Destination Loc." widget="selection"/>
662 <field name="prodlot_id" />
663 <field name="scrapped" invisible="1"/>
664 <button name="%(stock.track_line)d"
665 string="Split in production lots" type="action" icon="gtk-justify-fill" states="done,cancel"/>
666 <button name="%(stock.move_scrap)d"
667 string="Scrap Products" type="action" icon="gtk-convert"
668 states="done,cancel" />
672 <page string="Work Orders" groups="base.group_extended">
673 <field colspan="4" name="workcenter_lines" nolabel="1">
674 <form string="Production Work Centers">
675 <field colspan="4" name="name"/>
676 <field colspan="4" name="workcenter_id"/>
677 <field name="sequence"/>
678 <field name="cycle"/>
681 <tree string="Production Work Centers">
682 <field name="sequence"/>
684 <field name="workcenter_id"/>
685 <field name="cycle"/>
690 <page string="Scheduled Products">
691 <field colspan="4" name="product_lines" nolabel="1" widget="one2many_list"/>
693 <page string="Extra Information">
694 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
695 <field name="priority" groups="base.group_extended"/>
697 <field name="date_start"/>
698 <field name="date_finished"/>
699 <field name="picking_id" groups="base.group_extended"/>
700 <field name="move_prod_id" groups="base.group_extended"/>
707 <record id="view_mrp_production_filter" model="ir.ui.view">
708 <field name="name">mrp.production.select</field>
709 <field name="model">mrp.production</field>
710 <field name="type">search</field>
711 <field name="arch" type="xml">
712 <search string="Search Production">
713 <group col='9' colspan='4'>
714 <filter icon="terp-document-new" string="Draft"
715 domain="[('state','=','draft')]"
716 help="Non confirmed manufacturing orders"/>
717 <filter icon="terp-check" string="Current" name="Current"
719 domain="[('state','in',('confirmed','ready','exception'))]"
720 help="Manufacturing Orders which are waiting for raw materials"/>
721 <filter icon="terp-camera_test" string="Ready"
722 domain="[('state','=','ready')]"
723 help="Manufacturing Orders which are ready to produce" />
724 <filter icon="terp-check" string="In Production"
725 domain="[('state','=','in_production')]"
726 help="Manufacturing Orders which are in production" />
727 <separator orientation="vertical"/>
728 <filter icon="terp-gnome-cpu-frequency-applet+" string="Late"
729 domain="['&', ('date_planned::date','<', current_date), ('state', 'in', ('draft', 'confirmed', 'ready'))]"
730 help="Production started late" />
731 <separator orientation="vertical"/>
733 <field name="product_id"/>
734 <field name="routing_id" groups="base.group_extended"/>
735 <field name="origin"/>
738 <group expand="0" string="Group By..." colspan="10" col="8">
739 <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
740 <separator orientation="vertical"/>
741 <filter string="Routing" icon="terp-stock_align_left_24" domain="[]" context="{'group_by':'routing_id'}" groups="base.group_extended"/>
742 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
743 <separator orientation="vertical"/>
744 <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_planned'}" help="Scheduled Date"/>
750 <record id="mrp_production_action" model="ir.actions.act_window">
751 <field name="name">Manufacturing Orders</field>
752 <field name="type">ir.actions.act_window</field>
753 <field name="res_model">mrp.production</field>
754 <field name="view_type">form</field>
755 <field name="view_mode">tree,form,calendar,graph,gantt</field>
756 <field name="context">{'search_default_current':1}</field>
757 <field name="view_id" eval="False"/>
758 <field name="search_view_id" ref="view_mrp_production_filter"/>
759 <field name="context">{'search_default_Current':1}</field>
760 <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) 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>
762 <menuitem action="mrp_production_action" id="menu_mrp_production_action" parent="menu_mrp_manufacturing" groups="base.group_system,mrp.group_mrp_user,mrp.group_mrp_manager" sequence="1"/>
764 <record id="mrp_production_action_planning" model="ir.actions.act_window">
765 <field name="name">Manufacturing Orders Planning</field>
766 <field name="type">ir.actions.act_window</field>
767 <field name="res_model">mrp.production</field>
768 <field name="view_type">form</field>
769 <field name="view_mode">tree,form,calendar,graph</field>
770 <field name="domain">[('state','in',('ready','confirmed','in_production'))]</field>
771 <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>
774 <record id="mrp_production_action2" model="ir.actions.act_window">
775 <field name="name">Manufacturing Orders To Start</field>
776 <field name="type">ir.actions.act_window</field>
777 <field name="res_model">mrp.production</field>
778 <field name="view_type">form</field>
779 <field name="view_mode">tree,form,calendar,graph,gantt</field>
780 <field name="domain">[('state','=','ready')]</field>
781 <field name="filter" eval="True"/>
782 <field name="search_view_id" ref="view_mrp_production_filter"/>
785 <record id="mrp_production_action3" model="ir.actions.act_window">
786 <field name="name">Manufacturing Orders in Progress</field>
787 <field name="type">ir.actions.act_window</field>
788 <field name="res_model">mrp.production</field>
789 <field name="view_type">form</field>
790 <field name="view_mode">tree,form,calendar,graph,gantt</field>
791 <field name="domain">[('state','=','in_production')]</field>
792 <field name="filter" eval="True"/>
793 <field name="search_view_id" ref="view_mrp_production_filter"/>
796 <record id="mrp_production_action4" model="ir.actions.act_window">
797 <field name="name">Manufacturing Orders Waiting Products</field>
798 <field name="type">ir.actions.act_window</field>
799 <field name="res_model">mrp.production</field>
800 <field name="view_type">form</field>
801 <field name="view_mode">tree,form,calendar,graph,gantt</field>
802 <field name="domain">[('state','=','confirmed')]</field>
803 <field name="filter" eval="True"/>
804 <field name="search_view_id" ref="view_mrp_production_filter"/>
807 <record id="mrp_production_lot_form_view" model="ir.ui.view">
808 <field name="name">mrp.production.lot.line.form</field>
809 <field name="model">mrp.production.lot.line</field>
810 <field name="type">form</field>
811 <field name="arch" type="xml">
812 <form string="Production Products">
813 <field colspan="4" name="move_id" on_change="onchange_lot_line_id(lot_id)"/>
815 <field name="product_id"/>
816 <field name="product_qty"/>
817 <field name="product_uom"/>
818 <field name="product_uos_qty" groups="product.group_uos"/>
819 <field name="product_uos" groups="product.group_uos"/>
820 <field name="tracking_id"/>
824 <record id="mrp_production_lot_tree_view" model="ir.ui.view">
825 <field name="name">mrp.production.lot.line.tree</field>
826 <field name="model">mrp.production.lot.line</field>
827 <field name="type">tree</field>
828 <field name="arch" type="xml">
829 <tree string="Production Products Consommation">
830 <field name="product_id"/>
831 <field name="product_qty"/>
832 <field name="product_uom"/>
833 <field name="product_uos_qty" groups="product.group_uos"/>
834 <field name="product_uos" groups="product.group_uos"/>
835 <field name="tracking_id"/>
840 <record id="mrp_production_product_form_view" model="ir.ui.view">
841 <field name="name">mrp.production.product.line.form</field>
842 <field name="model">mrp.production.product.line</field>
843 <field name="type">form</field>
844 <field name="arch" type="xml">
845 <form string="Scheduled Products">
847 <field name="product_id"/>
848 <field name="product_qty"/>
849 <field name="product_uom"/>
850 <field name="product_uos_qty" groups="product.group_uos"/>
851 <field name="product_uos" groups="product.group_uos"/>
855 <record id="mrp_production_product_tree_view" model="ir.ui.view">
856 <field name="name">mrp.production.product.line.tree</field>
857 <field name="model">mrp.production.product.line</field>
858 <field name="type">tree</field>
859 <field name="arch" type="xml">
860 <tree 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"/>
874 <record id="view_procurement_form_inherit" model="ir.ui.view">
875 <field name="name">procurement.order.form.inherit</field>
876 <field name="model">procurement.order</field>
877 <field name="inherit_id" ref="procurement.procurement_form_view"/>
878 <field name="type">form</field>
879 <field name="arch" type="xml">
881 <xpath expr="/form/notebook/page/field[@name='move_id']" position="before">
882 <field name="bom_id" domain="[('product_id','=',product_id),('bom_id','=',False)]"/>
884 <xpath expr="/form/notebook/page/field[@name='close_move']" position="after">
885 <group colspan="4" groups="base.group_extended">
886 <separator colspan="4" string="Properties" />
887 <field colspan="4" name="property_ids" nolabel="1"/>
894 id="action_product_bom_structure"
895 name="Product BoM Structure"
896 domain="[('product_id', '=', active_id),('bom_id','=',False)]"
898 view_id="mrp_bom_tree_view"
900 src_model="product.product"
901 groups="base.group_extended"/>
904 domain="[('bom_id','=',False)]"
905 context="{'search_default_product_id': [active_id]}"
906 id="act_product_product_2_mrp_bom"
907 name="Bill of Materials"
909 src_model="product.product"/>
911 <!-- Menu for Resource for MRP-->
913 <menuitem id="menu_pm_resources_mrp" name="Resources" parent="base.menu_mrp_root"
914 groups="base.group_extended"
916 <menuitem id="menu_pm_resources_config" name="Resources" parent="menu_mrp_configuration"/>
917 <menuitem action="resource.action_resource_resource_tree" id="menu_view_resource_search_mrp" parent="menu_pm_resources_mrp" sequence="1"/>
918 <menuitem action="resource.action_resource_calendar_form" id="menu_view_resource_calendar_search_mrp" parent="menu_pm_resources_config" sequence="1"/>
919 <menuitem action="resource.action_resource_calendar_leave_tree" id="menu_view_resource_calendar_leaves_search_mrp" parent="menu_pm_resources_config" sequence="1"/>