1 <?xml version="1.0" encoding="utf-8"?>
5 <menuitem icon="terp-mrp" id="base.menu_mrp_root" name="Manufacturing"
6 groups="group_mrp_user,group_mrp_manager" sequence="3"/>
7 <menuitem id="menu_mrp_reordering" name="Automatic Procurements" parent="stock.menu_stock_root" sequence="4"/>
8 <menuitem id="menu_mrp_manufacturing" name="Manufacturing" parent="base.menu_mrp_root" sequence="1"/>
10 <!-- <menuitem name="Control" id="menu_mrp_control" parent="base.menu_mrp_root" sequence="3" />-->
11 <menuitem name="Master Data"
13 parent="base.menu_mrp_root"
17 Property / Property Group
20 <record id="mrp_property_group_form_view" model="ir.ui.view">
21 <field name="name">mrp.property.group.form</field>
22 <field name="model">mrp.property.group</field>
23 <field name="type">form</field>
24 <field name="arch" type="xml">
25 <form string="Properties categories">
26 <separator colspan="4" string="Property Group"/>
27 <field colspan="4" name="name" select="1" nolabel="1"/>
28 <separator colspan="4" string="Description"/>
29 <field colspan="4" name="description" nolabel="1"/>
33 <record id="mrp_property_group_action" model="ir.actions.act_window">
34 <field name="name">Property Categories</field>
35 <field name="type">ir.actions.act_window</field>
36 <field name="res_model">mrp.property.group</field>
37 <field name="view_type">form</field>
38 <field name="view_mode">tree,form</field>
41 id="menu_mrp_configuration"
43 parent="base.menu_mrp_root"
44 groups="base.group_extended"
47 <record id="mrp_property_tree_view" model="ir.ui.view">
48 <field name="name">mrp.property.tree</field>
49 <field name="model">mrp.property</field>
50 <field name="type">tree</field>
51 <field name="arch" type="xml">
52 <tree string="Properties">
54 <field name="composition"/>
55 <field name="group_id"/>
59 <record id="mrp_property_form_view" model="ir.ui.view">
60 <field name="name">mrp.property.form</field>
61 <field name="model">mrp.property</field>
62 <field name="type">form</field>
63 <field name="arch" type="xml">
64 <form string="Properties">
65 <separator colspan="4" string="General Information"/>
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"/>
74 <record id="mrp_property_action" model="ir.actions.act_window">
75 <field name="name">Properties</field>
76 <field name="type">ir.actions.act_window</field>
77 <field name="res_model">mrp.property</field>
78 <field name="view_type">form</field>
79 <field name="view_mode">tree,form</field>
81 <menuitem name="Properties"
82 id="menu_mrp_property"
83 parent="menu_mrp_configuration"
84 groups="base.group_extended"
87 action="mrp_property_action"
88 id="menu_mrp_property_action"
89 parent="menu_mrp_property"
90 groups="base.group_extended" />
92 action="mrp_property_group_action"
93 id="menu_mrp_property_group_action"
94 parent="menu_mrp_property"/>
100 <record id="mrp_workcenter_tree_view" model="ir.ui.view">
101 <field name="name">mrp.workcenter.tree</field>
102 <field name="model">mrp.workcenter</field>
103 <field name="type">tree</field>
104 <field name="arch" type="xml">
105 <tree string="Work Center">
111 <record id="mrp_workcenter_view" model="ir.ui.view">
112 <field name="name">mrp.workcenter.form</field>
113 <field name="model">mrp.workcenter</field>
114 <field name="type">form</field>
115 <field name="arch" type="xml">
116 <form string="Work Center">
117 <group col="6" colspan="4">
118 <field name="name" select="1"/>
119 <field name="code" select="1"/>
120 <field name="active"/>
121 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
123 <notebook colspan="4">
124 <page string="Work Center">
125 <field name="resource_type"/>
126 <field name="calendar_id" widget="selection"/>
127 <separator colspan="4" string="Description"/>
128 <field colspan="4" name="note" nolabel="1"/>
129 <separator colspan="4" string="Capacity Information"/>
130 <group col="4" colspan="4">
131 <field name="capacity_per_cycle"/>
133 <field name="time_cycle"/>
134 <field name="time_efficiency"/>
135 <field name="time_start"/>
136 <field name="time_stop"/>
139 <page string="Analytic Accounting" groups="base.group_extended">
140 <field name="costs_hour"/>
141 <field name="costs_hour_account_id"/>
142 <field name="costs_cycle"/>
143 <field name="costs_cycle_account_id"/>
144 <field name="costs_journal_id"/>
145 <field name="costs_general_account_id"/>
151 <record id="mrp_workcenter_action" model="ir.actions.act_window">
152 <field name="name">Work Centers</field>
153 <field name="type">ir.actions.act_window</field>
154 <field name="res_model">mrp.workcenter</field>
155 <field name="view_type">form</field>
156 <field name="view_id" ref="mrp_workcenter_tree_view"/>
163 <record id="mrp_routing_workcenter_tree_view" model="ir.ui.view">
164 <field name="name">mrp.routing.workcenter.tree</field>
165 <field name="model">mrp.routing.workcenter</field>
166 <field name="type">tree</field>
167 <field name="arch" type="xml">
168 <tree string="Routing Work Centers">
169 <field name="sequence"/>
170 <field name="workcenter_id"/>
171 <field name="cycle_nbr"/>
172 <field name="hour_nbr"/>
177 <record id="mrp_routing_workcenter_form_view" model="ir.ui.view">
178 <field name="name">mrp.routing.workcenter.form</field>
179 <field name="model">mrp.routing.workcenter</field>
180 <field name="type">form</field>
181 <field name="arch" type="xml">
182 <form string="Routing Work Centers">
183 <separator colspan="4" string="General Information"/>
184 <field colspan="4" name="name" select="1"/>
185 <field name="sequence" select="1"/>
186 <field name="workcenter_id" select="1"/>
187 <field name="cycle_nbr"/>
188 <field name="hour_nbr"/>
189 <field colspan="4" name="note"/>
194 <record id="mrp_routing_form_view" model="ir.ui.view">
195 <field name="name">mrp.routing.form</field>
196 <field name="model">mrp.routing</field>
197 <field name="type">form</field>
198 <field name="arch" type="xml">
199 <form string="Routing">
200 <separator colspan="4" string="General Information"/>
201 <field name="name" select="1"/>
202 <field name="active" select="1" groups="base.group_extended"/>
203 <field name="code" select="1"/>
204 <field name="location_id"/>
205 <separator colspan="4" string="Description"/>
206 <field colspan="4" name="note" nolabel="1"/>
207 <separator colspan="4" string="Work Center Operations"/>
208 <field colspan="4" name="workcenter_lines" nolabel="1" widget="one2many_list"/>
212 <record id="mrp_routing_tree_view" model="ir.ui.view">
213 <field name="name">mrp.routing.tree</field>
214 <field name="model">mrp.routing</field>
215 <field name="type">tree</field>
216 <field name="arch" type="xml">
217 <tree string="Routing">
220 <field name="location_id"/>
224 <record id="mrp_routing_action" model="ir.actions.act_window">
225 <field name="name">Routings</field>
226 <field name="type">ir.actions.act_window</field>
227 <field name="res_model">mrp.routing</field>
228 <field name="view_type">form</field>
229 <field name="view_id" ref="mrp_routing_tree_view"/>
231 <!-- <menuitem name="Routings" id="menu_mrp_routing_and_workcenters" parent="mrp.menu_mrp_bom" groups="base.group_extended"
233 <menuitem action="mrp_workcenter_action" id="menu_mrp_workcenter_action" parent="mrp.menu_mrp_bom" groups="base.group_extended" sequence="40" />
234 <menuitem action="mrp_routing_action" id="menu_mrp_routing_action" parent="mrp.menu_mrp_bom" groups="base.group_extended" sequence="30"/>
240 <record id="mrp_bom_form_view" model="ir.ui.view">
241 <field name="name">mrp.bom.form</field>
242 <field name="model">mrp.bom</field>
243 <field name="type">form</field>
244 <field name="arch" type="xml">
245 <form string="Bill of Material">
246 <group colspan="4" col="6">
247 <field name="product_id" on_change="onchange_product_id(product_id, name)" select="1"/>
248 <field name="name" select="1"/>
249 <field name="code" select="1" string="Reference" groups="base.group_extended"/>
251 <field name="product_uom"/>
252 <field name="product_qty"/>
253 <field name="routing_id" groups="base.group_extended"/>
255 <field name="product_uos" groups="product.group_uos,base.group_extended" widget="selection"/>
256 <field name="product_uos_qty" groups="product.group_uos,base.group_extended" />
258 <field name="multi_level_bom"/>
259 <field name="type" groups="base.group_extended"/>
260 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
262 <notebook colspan="4" >
263 <page string="Components" attrs="{'invisible': [('multi_level_bom','=',False)]}">
264 <field colspan="4" name="bom_lines" nolabel="1" widget="one2many_list" />
266 <page string="Revisions" groups="base.group_extended" attrs="{'invisible': [('bom_id','!=',False),('multi_level_bom','=',False)]}">
267 <field colspan="4" name="revision_ids" nolabel="1" widget="one2many_list"/>
269 <page string="Properties" groups="base.group_extended" attrs="{'invisible': [('bom_id','!=',False),('multi_level_bom','=',False)]}">
270 <field name="position"/>
271 <field name="active"/>
272 <field name="sequence"/>
273 <field name="bom_id"/>
275 <field name="date_start"/>
276 <field name="date_stop"/>
277 <field name="product_rounding"/>
278 <field name="product_efficiency" groups="base.group_extended"/>
279 <field colspan="4" name="property_ids" nolabel="2" groups="base.group_extended"/>
286 <record id="view_mrp_bom_filter" model="ir.ui.view">
287 <field name="name">mrp.bom.select</field>
288 <field name="model">mrp.bom</field>
289 <field name="type">search</field>
290 <field name="arch" type="xml">
291 <search string="Search Bill Of Material">
292 <group col='4' colspan='4'>
294 <field name="code" string="Reference"/>
295 <field name="product_id"/>
296 <field name="company_id" groups="base.group_multi_company"/>
299 <group expand="0" string="Group By" colspan="4" col="8" groups="base.group_extended">
300 <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
301 <filter string="Routing" icon="terp-stock_align_left_24" domain="[]" context="{'group_by':'routing_id'}"/>
307 <record id="mrp_bom_tree_view" model="ir.ui.view">
308 <field name="name">mrp.bom.tree</field>
309 <field name="model">mrp.bom</field>
310 <field name="type">tree</field>
311 <field name="field_parent">child_complete_ids</field>
312 <field name="arch" type="xml">
313 <tree string="BoM Structure" colors="blue:method">
314 <field name="sequence" invisible="1"/>
317 <field name="product_id"/>
318 <field name="product_qty"/>
319 <field name="product_uom"/>
320 <field name="method"/>
321 <field name="routing_id" groups="base.group_extended"/>
322 <field name="date_start"/>
323 <field name="date_stop"/>
327 <record id="mrp_bom_form_action" model="ir.actions.act_window">
328 <field name="name">Master Bill of Materials</field>
329 <field name="type">ir.actions.act_window</field>
330 <field name="res_model">mrp.bom</field>
331 <field name="view_type">form</field>
332 <field name="domain">[('bom_id','=',False)]</field>
333 <field name="search_view_id" ref="view_mrp_bom_filter"/>
335 <record id="mrp_bom_form_action2" model="ir.actions.act_window">
336 <field name="name">Bill of Material Components</field>
337 <field name="type">ir.actions.act_window</field>
338 <field name="res_model">mrp.bom</field>
339 <field name="view_type">form</field>
340 <field name="domain">[('bom_id','!=',False)]</field>
345 <!-- <menuitem name="Bill of Materials"
347 parent="menu_mrp_bom"
350 action="mrp_bom_form_action"
351 id="menu_mrp_bom_form_action"
352 parent="menu_mrp_bom"
355 action="mrp_bom_form_action2"
356 id="menu_mrp_bom_form_action2"
357 groups="base.group_extended"
358 parent="menu_mrp_bom"
361 <record id="action2" model="ir.actions.act_window">
362 <field name="name">Bill of Materials Structure</field>
363 <field name="type">ir.actions.act_window</field>
364 <field name="res_model">mrp.bom</field>
365 <field name="domain">[('id','=',active_id)]</field>
366 <field name="view_type">tree</field>
367 <field name="view_id" ref="mrp_bom_tree_view"/>
369 <record id="ir_BOM_structure" model="ir.values">
370 <field eval="'client_action_multi'" name="key2"/>
371 <field eval="'mrp.bom'" name="model"/>
372 <field name="name">Bill of Materials Structure</field>
373 <field eval="'ir.actions.act_window,'+str(action2)" name="value"/>
374 <field eval="True" name="object"/>
377 <record id="mrp_bom_revision_tree" model="ir.ui.view">
378 <field name="name">mrp.bom.revision</field>
379 <field name="model">mrp.bom.revision</field>
380 <field name="type">tree</field>
381 <field name="arch" type="xml">
382 <tree string="BoM Revisions">
383 <field name="indice"/>
384 <field name="author_id"/>
386 <field colspan="4" name="name"/>
390 <record id="mrp_bom_revision_form" model="ir.ui.view">
391 <field name="name">mrp.bom.revision</field>
392 <field name="model">mrp.bom.revision</field>
393 <field name="type">form</field>
394 <field name="arch" type="xml">
395 <form string="BoM Revisions">
396 <field colspan="4" name="name"/>
397 <field colspan="1" name="indice"/>
398 <field colspan="1" name="date"/>
399 <field name="author_id" readonly="1"/>
400 <field colspan="4" name="description"/>
409 <menuitem action="procurement.procurement_action" id="menu_mrp_procurement_action"
410 parent="mrp.menu_mrp_manufacturing" sequence="2" />
411 <!-- <menuitem action="procurement.procurement_action5" id="menu_mrp_procurement_exception_action"-->
412 <!-- parent="mrp.menu_mrp_control" sequence="1" />-->
414 <menuitem id="menu_mrp_scheduler" name="Schedulers" parent="base.menu_mrp_root" sequence="4"/>
415 <menuitem action="procurement.action_compute_schedulers" id="mrp_Sched_all" parent="mrp.menu_mrp_scheduler" sequence="90"/>
420 <menuitem action="procurement.action_orderpoint_form" id="menu_action_orderpoint_form" parent="mrp.menu_mrp_reordering"/>
423 Production Management
426 <record id="mrp_production_tree_view" model="ir.ui.view">
427 <field name="name">mrp.production.tree</field>
428 <field name="model">mrp.production</field>
429 <field name="type">tree</field>
430 <field name="arch" type="xml">
431 <tree colors="blue:state in ('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">
433 <field name="product_id"/>
434 <field name="product_qty" sum="Total Qty"/>
435 <field name="product_uom"/>
436 <field name="date_planned"/>
437 <field name="routing_id" groups="base.group_extended"/>
438 <field name="hour_total" sum="Total Hours" groups="base.group_extended"/>
439 <field name="cycle_total" sum="Total Cycles" groups="base.group_extended"/>
440 <field name="origin"/>
441 <field name="state"/>
446 <record id="view_production_calendar" model="ir.ui.view">
447 <field name="name">mrp.production.calendar</field>
448 <field name="model">mrp.production</field>
449 <field name="type">calendar</field>
450 <field eval="2" name="priority"/>
451 <field name="arch" type="xml">
452 <calendar color="routing_id" date_start="date_planned" string="Manufacturing Orders">
453 <field name="origin"/>
454 <field name="product_id"/>
455 <field name="product_qty"/>
461 <record id="view_production_gantt" model="ir.ui.view">
462 <field name="name">mrp.production.gantt</field>
463 <field name="model">mrp.production</field>
464 <field name="type">gantt</field>
465 <field name="arch" type="xml">
466 <gantt color="product_id" date_stop="date_finnished" date_start="date_start" string="Productions">
467 <level object="mrp.routing" link="routing_id" domain="[]">
469 <field name="origin"/>
476 <record model="ir.ui.view" id="view_production_graph">
477 <field name="name">mrp.production.graph</field>
478 <field name="model">mrp.production</field>
479 <field name="type">graph</field>
480 <field name="arch" type="xml">
481 <graph string="Manufacturing Orders" type="bar">
482 <field name="date_planned_date"/>
483 <field name="hour_total" operator="+"/>
484 <field name="cycle_total" operator="+"/>
489 <record id="mrp_production_form_view" model="ir.ui.view">
490 <field name="name">mrp.production.form</field>
491 <field name="model">mrp.production</field>
492 <field name="type">form</field>
493 <field name="arch" type="xml">
494 <form string="Manufacturing Orders">
495 <group colspan="4" col="6">
496 <field name="name" string="Reference"/>
497 <field name="date_planned"/>
498 <field name="origin"/>
499 <field name="product_id" on_change="product_id_change(product_id)"/>
500 <field name="product_qty"/>
501 <group colspan="2" col="3">
502 <field name="product_uom" widget="selection"/>
503 <button type="action"
504 name="%(mrp.action_change_production_qty)d"
505 string="Change Qty" states="ready,confirmed" />
507 <label string="" colspan="2"/>
508 <field name="product_uos_qty" groups="product.group_uos,base.group_extended"/>
509 <group colspan="2" col="3" groups="product.group_uos,base.group_extended">
510 <field name="product_uos" widget="selection"/>
515 <notebook colspan="4">
516 <page string="Consumed Products">
517 <field name="bom_id" domain="[('product_id','=',product_id),('bom_id','=',False)]" on_change="bom_id_change(bom_id)" />
518 <field name="routing_id" groups="base.group_extended" select="1"/>
519 <field name="location_src_id" domain="[('usage','=','internal')]" on_change="location_id_change(location_src_id,location_dest_id)"/>
520 <field name="location_dest_id" domain="[('usage','=','internal')]"/>
521 <separator string="" colspan="4"/>
523 <field colspan="2" name="move_lines" nolabel="1" widget="one2many_list"
524 mode="tree,form" height="275" domain="[('state','<>', ('done', 'cancel'))]">
525 <tree string="Products to Consume">
526 <field name="product_id" />
527 <field name="product_qty" string="Qty"/>
528 <field name="product_uom" string="UOM"/>
529 <field name="location_id" string="Source Loc."/>
530 <field name="state" invisible="1"/>
531 <button name="%(stock.move_consume)d"
532 string="Consume Products" type="action"
533 icon="gtk-go-forward" context="{'consume': True}"
534 states="draft,waiting,confirmed,assigned" />
535 <button name="%(stock.move_scrap)d"
536 string="Scrap Products" type="action"
537 icon="gtk-convert" context="{'scrap': True}"
538 states="draft,waiting,confirmed,assigned"/>
542 <field colspan="2" name="move_lines2" nolabel="1" domain="[('state','in', ('done', 'cancel'))]"
543 widget="one2many_list" mode="tree,form" height="275">
544 <tree string="Consumed Products" editable="bottom" colors="red:scraped==True">
545 <field name="product_id" readonly="1"/>
546 <field name="product_qty" readonly="1" string="Qty"/>
547 <field name="product_uom" readonly="1" string="UOM"/>
548 <field name="location_dest_id" readonly="1" string="Destination Loc."/>
549 <field name="prodlot_id" />
550 <field name="state" invisible="1"/>
551 <field name="scraped" invisible="1"/>
553 name="%(stock.track_line)d"
554 string="Split in production lots"
555 type="action" icon="gtk-justify-fill"
556 states="done,cancel" />
558 name="%(stock.move_scrap)d"
559 string="Scrap Products" type="action"
561 states="done,cancel"/>
565 <group col="9" colspan="4">
566 <field name="state"/>
567 <button name="action_compute" states="draft" string="Compute Data" type="object" icon="gtk-execute"/>
568 <button name="button_confirm" states="draft" string="Confirm Production" icon="gtk-apply"/>
569 <button name="button_produce" states="ready" string="Mark as Started" icon="gtk-execute"/>
570 <button name="%(act_mrp_product_produce)d" states="in_production" string="Produce" icon="gtk-ok" type="action"/>
571 <button name="force_production" states="confirmed,picking_except" string="Force Reservation" type="object" icon="gtk-jump-to"/>
572 <button name="button_cancel" states="draft,ready,confirmed,in_production,picking_except" string="Cancel" icon="gtk-cancel"/>
573 <button name="button_recreate" states="picking_except" string="Recreate Picking" icon="gtk-convert"/>
576 <page string="Finished Products">
577 <field colspan="2" name="move_created_ids" nolabel="1" widget="one2many_list"
578 mode="tree,form" height="275" domain="[('state','<>', ('done', 'cancel'))]">
579 <tree string="Products to Finish">
580 <field name="product_id" />
581 <field name="product_qty" string="Qty"/>
582 <field name="product_uom" string="UOM"/>
583 <field name="location_id" string="Source Loc."/>
584 <field name="state" invisible="1"/>
585 <button name="%(stock.move_consume)d"
586 string="Consume Products" type="action"
587 icon="gtk-go-forward" context="{'consume': True}"
588 states="draft,waiting,confirmed,assigned" />
589 <button name="%(stock.move_scrap)d"
590 string="Scrap Products" type="action"
591 icon="gtk-convert" context="{'scrap': True}"
592 states="draft,waiting,confirmed,assigned" />
596 <field colspan="2" name="move_created_ids2" nolabel="1" domain="[('state','in', ('done', 'cancel'))]"
597 widget="one2many_list" mode="tree,form" height="275">
598 <tree string="Finished Products" editable="bottom" colors="red:scraped==True">
599 <field name="product_id" readonly="1"/>
600 <field name="product_qty" readonly="1" string="Qty"/>
601 <field name="product_uom" readonly="1" string="UOM"/>
602 <field name="location_dest_id" readonly="1" string="Destination Loc."/>
603 <field name="prodlot_id" />
604 <field name="state" invisible="1"/>
605 <field name="scraped" invisible="1"/>
606 <button name="%(stock.track_line)d"
607 string="Split in production lots" type="action" icon="gtk-justify-fill" states="done,cancel"/>
608 <button name="%(stock.move_scrap)d"
609 string="Scrap Products" type="action" icon="gtk-convert"
610 states="done,cancel" />
614 <page string="Work Orders" groups="base.group_extended">
615 <field colspan="4" name="workcenter_lines" nolabel="1">
616 <form string="Production Work Centers">
617 <field colspan="4" name="name"/>
618 <field colspan="4" name="workcenter_id"/>
619 <field name="sequence"/>
620 <field name="cycle"/>
623 <tree string="Production Work Centers">
624 <field name="sequence"/>
626 <field name="workcenter_id"/>
627 <field name="cycle"/>
632 <page string="Scheduled Products">
633 <field colspan="4" name="product_lines" nolabel="1" widget="one2many_list"/>
635 <page string="Extra Information">
636 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
637 <field name="priority" groups="base.group_extended"/>
639 <field name="date_start"/>
640 <field name="date_finnished"/>
641 <field name="picking_id" groups="base.group_extended"/>
642 <field name="move_prod_id" groups="base.group_extended"/>
649 <record id="view_mrp_production_filter" model="ir.ui.view">
650 <field name="name">mrp.production.select</field>
651 <field name="model">mrp.production</field>
652 <field name="type">search</field>
653 <field name="arch" type="xml">
654 <search string="Search Production">
655 <group col='9' colspan='4'>
656 <filter icon="terp-document-new" string="Draft"
657 domain="[('state','=','draft')]"
658 help="Non confirmed manufacturing orders"/>
659 <filter icon="terp-check" string="Current" name="Current"
661 domain="[('state','in',('confirmed','ready','exception'))]"
662 help="Manufacturing Orders which are waiting for raw materials"/>
663 <filter icon="terp-camera_test" string="Ready"
664 domain="[('state','=','ready')]"
665 help="Manufacturing Orders which are ready to produce" />
666 <filter icon="terp-check" string="In Production"
667 domain="[('state','=','in_production')]"
668 help="Manufacturing Orders which are in production" />
669 <separator orientation="vertical"/>
670 <filter icon="terp-gnome-cpu-frequency-applet+" string="Late"
671 domain="['&', ('date_planned::date','<', current_date), ('state', 'in', ('draft', 'confirmed', 'ready'))]"
672 help="Production started late" />
673 <separator orientation="vertical"/>
675 <field name="product_id"/>
676 <field name="routing_id" groups="base.group_extended"/>
677 <field name="origin"/>
680 <group expand="0" string="Group By" colspan="10" col="8">
681 <filter string="Product" icon="terp-accessories-archiver" domain="[]" context="{'group_by':'product_id'}"/>
682 <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/>
683 <filter string="Routing" icon="terp-stock_align_left_24" domain="[]" context="{'group_by':'routing_id'}" groups="base.group_extended"/>
684 <separator orientation="vertical"/>
685 <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_planned'}"/>
691 <record id="mrp_production_action" model="ir.actions.act_window">
692 <field name="name">Manufacturing Orders</field>
693 <field name="type">ir.actions.act_window</field>
694 <field name="res_model">mrp.production</field>
695 <field name="view_type">form</field>
696 <field name="view_mode">tree,form,calendar,graph,gantt</field>
697 <field name="context">{'search_default_current':1}</field>
698 <field name="view_id" eval="False"/>
699 <field name="search_view_id" ref="view_mrp_production_filter"/>
700 <field name="context">{'search_default_Current':1}</field>
702 <menuitem action="mrp_production_action" id="menu_mrp_production_action" parent="menu_mrp_manufacturing" sequence="1"/>
704 <record id="mrp_production_action2_gantt" model="ir.actions.act_window">
705 <field name="name">Manufacturing Orders Planning</field>
706 <field name="type">ir.actions.act_window</field>
707 <field name="res_model">mrp.production</field>
708 <field name="view_type">form</field>
709 <field name="view_mode">gantt,tree,form,calendar,graph</field>
710 <field name="domain">[('state','in',('ready','confirmed','in_production'))]</field>
713 <record id="mrp_production_action2" model="ir.actions.act_window">
714 <field name="name">Manufacturing Orders To Start</field>
715 <field name="type">ir.actions.act_window</field>
716 <field name="res_model">mrp.production</field>
717 <field name="view_type">form</field>
718 <field name="view_mode">tree,form,calendar,graph,gantt</field>
719 <field name="domain">[('state','=','ready')]</field>
720 <field name="filter" eval="True"/>
721 <field name="search_view_id" ref="view_mrp_production_filter"/>
724 <record id="mrp_production_action3" model="ir.actions.act_window">
725 <field name="name">Manufacturing Orders in Progress</field>
726 <field name="type">ir.actions.act_window</field>
727 <field name="res_model">mrp.production</field>
728 <field name="view_type">form</field>
729 <field name="view_mode">tree,form,calendar,graph,gantt</field>
730 <field name="domain">[('state','=','in_production')]</field>
731 <field name="filter" eval="True"/>
732 <field name="search_view_id" ref="view_mrp_production_filter"/>
735 <record id="mrp_production_action4" model="ir.actions.act_window">
736 <field name="name">Manufacturing Orders Waiting Products</field>
737 <field name="type">ir.actions.act_window</field>
738 <field name="res_model">mrp.production</field>
739 <field name="view_type">form</field>
740 <field name="view_mode">tree,form,calendar,graph,gantt</field>
741 <field name="domain">[('state','=','confirmed')]</field>
742 <field name="filter" eval="True"/>
743 <field name="search_view_id" ref="view_mrp_production_filter"/>
746 <record id="mrp_production_lot_form_view" model="ir.ui.view">
747 <field name="name">mrp.production.lot.line.form</field>
748 <field name="model">mrp.production.lot.line</field>
749 <field name="type">form</field>
750 <field name="arch" type="xml">
751 <form string="Production Products">
752 <field colspan="4" name="move_id" on_change="onchange_lot_line_id(lot_id)"/>
754 <field name="product_id"/>
755 <field name="product_qty"/>
756 <field name="product_uom"/>
757 <field name="product_uos_qty" groups="product.group_uos"/>
758 <field name="product_uos" groups="product.group_uos"/>
759 <field name="tracking_id"/>
763 <record id="mrp_production_lot_tree_view" model="ir.ui.view">
764 <field name="name">mrp.production.lot.line.tree</field>
765 <field name="model">mrp.production.lot.line</field>
766 <field name="type">tree</field>
767 <field name="arch" type="xml">
768 <tree string="Production Products Consommation">
769 <field name="product_id"/>
770 <field name="product_qty"/>
771 <field name="product_uom"/>
772 <field name="product_uos_qty" groups="product.group_uos"/>
773 <field name="product_uos" groups="product.group_uos"/>
774 <field name="tracking_id"/>
779 <record id="mrp_production_product_form_view" model="ir.ui.view">
780 <field name="name">mrp.production.product.line.form</field>
781 <field name="model">mrp.production.product.line</field>
782 <field name="type">form</field>
783 <field name="arch" type="xml">
784 <form string="Scheduled Products">
786 <field name="product_id"/>
787 <field name="product_qty"/>
788 <field name="product_uom"/>
789 <field name="product_uos_qty" groups="product.group_uos"/>
790 <field name="product_uos" groups="product.group_uos"/>
794 <record id="mrp_production_product_tree_view" model="ir.ui.view">
795 <field name="name">mrp.production.product.line.tree</field>
796 <field name="model">mrp.production.product.line</field>
797 <field name="type">tree</field>
798 <field name="arch" type="xml">
799 <tree string="Scheduled Products">
800 <field name="product_id"/>
801 <field name="product_qty"/>
802 <field name="product_uom"/>
803 <field name="product_uos_qty" groups="product.group_uos,base.group_extended"/>
804 <field name="product_uos" groups="product.group_uos,base.group_extended"/>
813 <record id="view_procurement_form_inherit" model="ir.ui.view">
814 <field name="name">procurement.order.form.inherit</field>
815 <field name="model">procurement.order</field>
816 <field name="inherit_id" ref="procurement.procurement_form_view"/>
817 <field name="type">form</field>
818 <field name="arch" type="xml">
819 <xpath expr="/form/notebook/page/field[@name='move_id']" position="before">
820 <field name="bom_id" domain="[('product_id','=',product_id),('bom_id','=',False)]"/>
826 id="action_product_bom_structure"
827 name="Product BoM Structure"
828 domain="[('product_id', '=', active_id),('bom_id','=',False)]"
830 view_id="mrp_bom_tree_view"
832 src_model="product.product"/>
835 domain="[('product_id', '=', active_id),('bom_id','=',False)]"
836 id="act_product_product_2_mrp_bom"
837 name="Bill of Materials"
839 src_model="product.product"/>
841 <!-- Menu for Resource for MRP-->
842 <menuitem icon="terp-mrp" id="base.menu_mrp_root" name="Manufacturing" sequence="3"/>
844 <menuitem id="menu_pm_resources_mrp" name="Resources" parent="base.menu_mrp_root"
845 groups="base.group_extended"
847 <menuitem action="resource.action_resource_resource_tree" id="menu_view_resource_search_mrp" parent="menu_pm_resources_mrp" sequence="1"/>
848 <menuitem action="resource.action_resource_calendar_form" id="menu_view_resource_calendar_search_mrp" parent="menu_mrp_configuration" sequence="1"/>
849 <menuitem action="resource.action_resource_calendar_leave_tree" id="menu_view_resource_calendar_leaves_search_mrp" parent="menu_pm_resources_mrp" sequence="1"/>