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"
16 Property / Property Group
19 <record id="mrp_property_group_form_view" model="ir.ui.view">
20 <field name="name">mrp.property.group.form</field>
21 <field name="model">mrp.property.group</field>
22 <field name="type">form</field>
23 <field name="arch" type="xml">
24 <form string="Properties categories">
25 <separator colspan="4" string="General Information"/>
26 <field colspan="4" name="name" select="1"/>
27 <field colspan="4" name="description"/>
31 <record id="mrp_property_group_action" model="ir.actions.act_window">
32 <field name="name">Property Categories</field>
33 <field name="type">ir.actions.act_window</field>
34 <field name="res_model">mrp.property.group</field>
35 <field name="view_type">form</field>
36 <field name="view_mode">tree,form</field>
39 id="menu_mrp_configuration"
41 parent="base.menu_mrp_root"
42 groups="group_mrp_manager"
45 <record id="mrp_property_tree_view" model="ir.ui.view">
46 <field name="name">mrp.property.tree</field>
47 <field name="model">mrp.property</field>
48 <field name="type">tree</field>
49 <field name="arch" type="xml">
50 <tree string="Properties">
52 <field name="composition"/>
53 <field name="group_id"/>
57 <record id="mrp_property_form_view" model="ir.ui.view">
58 <field name="name">mrp.property.form</field>
59 <field name="model">mrp.property</field>
60 <field name="type">form</field>
61 <field name="arch" type="xml">
62 <form string="Properties">
63 <separator colspan="4" string="General Information"/>
64 <field colspan="4" name="name" select="1"/>
65 <field name="group_id" select="1"/>
66 <field name="composition" select="1"/>
67 <separator colspan="4" string="Description"/>
68 <field colspan="4" name="description"/>
72 <record id="mrp_property_action" model="ir.actions.act_window">
73 <field name="name">Properties</field>
74 <field name="type">ir.actions.act_window</field>
75 <field name="res_model">mrp.property</field>
76 <field name="view_type">form</field>
77 <field name="view_mode">tree,form</field>
79 <menuitem name="Properties"
80 id="menu_mrp_property"
81 parent="menu_mrp_configuration"
82 groups="base.group_extended"
85 action="mrp_property_action"
86 id="menu_mrp_property_action"
87 parent="menu_mrp_property"
88 groups="base.group_extended" />
90 action="mrp_property_group_action"
91 id="menu_mrp_property_group_action"
92 parent="menu_mrp_property"/>
98 <record id="mrp_workcenter_tree_view" model="ir.ui.view">
99 <field name="name">mrp.workcenter.tree</field>
100 <field name="model">mrp.workcenter</field>
101 <field name="type">tree</field>
102 <field name="arch" type="xml">
103 <tree string="Work Center">
109 <record id="mrp_workcenter_view" model="ir.ui.view">
110 <field name="name">mrp.workcenter.form</field>
111 <field name="model">mrp.workcenter</field>
112 <field name="type">form</field>
113 <field name="arch" type="xml">
114 <form string="Work Center">
115 <group col="6" colspan="4">
116 <field name="name" select="1"/>
117 <field name="code" select="1"/>
118 <field name="active" select="2"/>
119 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
121 <notebook colspan="4">
122 <page string="Work Center">
123 <field name="resource_type"/>
124 <field name="calendar_id"/>
125 <separator colspan="4" string="Description"/>
126 <field colspan="4" name="note" nolabel="1"/>
127 <separator colspan="4" string="Capacity Information"/>
128 <group col="4" colspan="4">
129 <field name="capacity_per_cycle"/>
131 <field name="time_cycle"/>
132 <field name="time_efficiency"/>
133 <field name="time_start"/>
134 <field name="time_stop"/>
137 <page string="Analytic Accounting">
138 <field name="costs_hour"/>
139 <field name="costs_hour_account_id"/>
140 <field name="costs_cycle"/>
141 <field name="costs_cycle_account_id"/>
142 <field name="costs_journal_id"/>
143 <field name="costs_general_account_id"/>
149 <record id="mrp_workcenter_action" model="ir.actions.act_window">
150 <field name="name">Work Centers</field>
151 <field name="type">ir.actions.act_window</field>
152 <field name="res_model">mrp.workcenter</field>
153 <field name="view_type">form</field>
154 <field name="view_id" ref="mrp_workcenter_tree_view"/>
161 <record id="mrp_routing_workcenter_tree_view" model="ir.ui.view">
162 <field name="name">mrp.routing.workcenter.tree</field>
163 <field name="model">mrp.routing.workcenter</field>
164 <field name="type">tree</field>
165 <field name="arch" type="xml">
166 <tree string="Routing Work Centers">
167 <field name="sequence"/>
168 <field name="workcenter_id" select="1"/>
169 <field name="cycle_nbr"/>
170 <field name="hour_nbr"/>
175 <record id="mrp_routing_workcenter_form_view" model="ir.ui.view">
176 <field name="name">mrp.routing.workcenter.form</field>
177 <field name="model">mrp.routing.workcenter</field>
178 <field name="type">form</field>
179 <field name="arch" type="xml">
180 <form string="Routing Work Centers">
181 <separator colspan="4" string="General Information"/>
182 <field colspan="4" name="name" select="1"/>
183 <field name="sequence" select="1"/>
184 <field name="workcenter_id" select="1"/>
185 <field name="cycle_nbr"/>
186 <field name="hour_nbr"/>
187 <field colspan="4" name="note"/>
192 <record id="mrp_routing_form_view" model="ir.ui.view">
193 <field name="name">mrp.routing.form</field>
194 <field name="model">mrp.routing</field>
195 <field name="type">form</field>
196 <field name="arch" type="xml">
197 <form string="Routing">
198 <separator colspan="4" string="General Information"/>
199 <field name="name" select="1"/>
200 <field name="active" select="1"/>
201 <field name="code" select="1"/>
202 <field name="location_id"/>
203 <separator colspan="4" string="Description"/>
204 <field colspan="4" name="note" nolabel="1"/>
205 <separator colspan="4" string="Work Center Operations"/>
206 <field colspan="4" name="workcenter_lines" nolabel="1" widget="one2many_list"/>
210 <record id="mrp_routing_tree_view" model="ir.ui.view">
211 <field name="name">mrp.routing.tree</field>
212 <field name="model">mrp.routing</field>
213 <field name="type">tree</field>
214 <field name="arch" type="xml">
215 <tree string="Routing">
218 <field name="location_id"/>
222 <record id="mrp_routing_action" model="ir.actions.act_window">
223 <field name="name">Routings</field>
224 <field name="type">ir.actions.act_window</field>
225 <field name="res_model">mrp.routing</field>
226 <field name="view_type">form</field>
227 <field name="view_id" ref="mrp_routing_tree_view"/>
229 <!-- <menuitem name="Routings" id="menu_mrp_routing_and_workcenters" parent="mrp.menu_mrp_bom" groups="base.group_extended"
231 <menuitem action="mrp_workcenter_action" id="menu_mrp_workcenter_action" parent="mrp.menu_mrp_bom" groups="base.group_extended" sequence="40" />
232 <menuitem action="mrp_routing_action" id="menu_mrp_routing_action" parent="mrp.menu_mrp_bom" groups="base.group_extended" sequence="30"/>
238 <record id="mrp_bom_form_view" model="ir.ui.view">
239 <field name="name">mrp.bom.form</field>
240 <field name="model">mrp.bom</field>
241 <field name="type">form</field>
242 <field name="arch" type="xml">
243 <form string="Bill of Material">
244 <group colspan="4" col="6">
245 <field name="product_id" on_change="onchange_product_id(product_id, name)" select="1"/>
246 <field name="name" select="1"/>
247 <field name="code" select="1"/>
248 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
251 <field name="product_uos" groups="product.group_uos"/>
252 <field name="product_uos_qty" groups="product.group_uos"/>
253 <field name="routing_id" select="2" groups="base.group_extended"/>
254 <field name="type" groups="base.group_extended"/>
255 <group colspan="4" col="6">
256 <field name="product_uom"/>
257 <field name="product_qty"/>
258 <field name="multi_level_bom"/>
260 <notebook colspan="4">
261 <page string="General Information">
262 <field colspan="4" name="bom_lines" nolabel="1" widget="one2many_list"/>
264 <page string="Revisions" groups="base.group_extended">
265 <field colspan="4" name="revision_ids" nolabel="1" widget="one2many_list"/>
267 <page string="Properties">
268 <field name="position" select="2"/>
269 <field name="active" select="2"/>
270 <field name="sequence"/>
271 <field name="bom_id"/>
273 <field name="date_start" select="2"/>
274 <field name="date_stop" select="2"/>
275 <field name="product_rounding"/>
276 <field name="product_efficiency"/>
277 <field colspan="4" name="property_ids" nolabel="2" groups="base.group_extended"/>
279 <page string="Multi-Level BoM" attrs="{'invisible':[('multi_level_bom','=',False)]}">
280 <field colspan="4" name="child_ids" nolabel="1" string="BoM Hierarchy"/>
287 <record id="mrp_bom_tree_view" model="ir.ui.view">
288 <field name="name">mrp.bom.tree</field>
289 <field name="model">mrp.bom</field>
290 <field name="type">tree</field>
291 <field name="field_parent">child_complete_ids</field>
292 <field name="arch" type="xml">
293 <tree string="BoM Structure" colors="blue:method">
294 <field name="sequence" invisible="1"/>
297 <field name="product_id"/>
298 <field name="product_qty"/>
299 <field name="product_uom"/>
300 <field name="method"/>
301 <field name="routing_id" groups="base.group_extended"/>
302 <field name="date_start"/>
303 <field name="date_stop"/>
307 <record id="mrp_bom_form_action" model="ir.actions.act_window">
308 <field name="name">Master Bill of Materials</field>
309 <field name="type">ir.actions.act_window</field>
310 <field name="res_model">mrp.bom</field>
311 <field name="view_type">form</field>
312 <field name="domain">[('bom_id','=',False)]</field>
313 <field name="view_id" ref="mrp_bom_tree_view"/>
315 <record id="mrp_bom_form_action2" model="ir.actions.act_window">
316 <field name="name">Bill of Material Components</field>
317 <field name="type">ir.actions.act_window</field>
318 <field name="res_model">mrp.bom</field>
319 <field name="view_type">form</field>
320 <field name="domain">[('bom_id','!=',False)]</field>
325 <!-- <menuitem name="Bill of Materials"
327 parent="menu_mrp_bom"
329 <menuitem action="mrp_bom_form_action"
330 id="menu_mrp_bom_form_action"
331 parent="menu_mrp_bom"
333 <menuitem action="mrp_bom_form_action2"
334 id="menu_mrp_bom_form_action2"
335 parent="menu_mrp_bom"
338 <record id="action2" model="ir.actions.act_window">
339 <field name="name">Bill of Materials Structure</field>
340 <field name="type">ir.actions.act_window</field>
341 <field name="res_model">mrp.bom</field>
342 <field name="domain">[('id','=',active_id)]</field>
343 <field name="view_type">tree</field>
344 <field name="view_id" ref="mrp_bom_tree_view"/>
346 <record id="ir_BOM_structure" model="ir.values">
347 <field eval="'client_action_multi'" name="key2"/>
348 <field eval="'mrp.bom'" name="model"/>
349 <field name="name">Bill of Materials Structure</field>
350 <field eval="'ir.actions.act_window,'+str(action2)" name="value"/>
351 <field eval="True" name="object"/>
354 <record id="mrp_bom_revision_tree" model="ir.ui.view">
355 <field name="name">mrp.bom.revision</field>
356 <field name="model">mrp.bom.revision</field>
357 <field name="type">tree</field>
358 <field name="arch" type="xml">
359 <tree string="BoM Revisions">
360 <field name="indice"/>
361 <field name="author_id"/>
363 <field colspan="4" name="name"/>
367 <record id="mrp_bom_revision_form" model="ir.ui.view">
368 <field name="name">mrp.bom.revision</field>
369 <field name="model">mrp.bom.revision</field>
370 <field name="type">form</field>
371 <field name="arch" type="xml">
372 <form string="BoM Revisions">
373 <field colspan="4" name="name"/>
374 <field colspan="1" name="indice"/>
375 <field colspan="1" name="date"/>
376 <field name="author_id" readonly="1"/>
377 <field colspan="4" name="description"/>
383 Production Management
386 <record id="mrp_production_tree_view" model="ir.ui.view">
387 <field name="name">mrp.production.tree</field>
388 <field name="model">mrp.production</field>
389 <field name="type">tree</field>
390 <field name="arch" type="xml">
391 <tree colors="red:date_planned<current_date and state not in ('done','cancel');black:date_planned>=current_date and state in ('done','cancel') " string="Manufacturing Orders">
393 <field name="product_id"/>
394 <field name="product_qty" sum="Total Qty"/>
395 <field name="product_uom"/>
396 <field name="date_planned"/>
397 <field name="routing_id" groups="base.group_extended"/>
398 <field name="hour_total" sum="Total Hours" groups="base.group_extended"/>
399 <field name="cycle_total" sum="Total Cycles" groups="base.group_extended"/>
400 <field name="origin"/>
401 <field name="state"/>
406 <record id="view_production_calendar" model="ir.ui.view">
407 <field name="name">mrp.production.calendar</field>
408 <field name="model">mrp.production</field>
409 <field name="type">calendar</field>
410 <field eval="2" name="priority"/>
411 <field name="arch" type="xml">
412 <calendar color="routing_id" date_start="date_planned" string="Manufacturing Orders">
413 <field name="origin"/>
414 <field name="product_id"/>
415 <field name="product_qty"/>
421 <record id="view_production_gantt" model="ir.ui.view">
422 <field name="name">mrp.production.gantt</field>
423 <field name="model">mrp.production</field>
424 <field name="type">gantt</field>
425 <field name="arch" type="xml">
426 <gantt color="product_id" date_stop="date_finnished" date_start="date_start" string="Productions">
427 <level object="mrp.routing" link="routing_id" domain="[]">
429 <field name="origin"/>
436 <record model="ir.ui.view" id="view_production_graph">
437 <field name="name">mrp.production.graph</field>
438 <field name="model">mrp.production</field>
439 <field name="type">graph</field>
440 <field name="arch" type="xml">
441 <graph string="Manufacturing Orders" type="bar">
442 <field name="date_planned_date"/>
443 <field name="hour_total" operator="+"/>
444 <field name="cycle_total" operator="+"/>
449 <record id="mrp_production_form_view" model="ir.ui.view">
450 <field name="name">mrp.production.form</field>
451 <field name="model">mrp.production</field>
452 <field name="type">form</field>
453 <field name="arch" type="xml">
454 <form string="Manufacturing Orders">
455 <group colspan="4" col="6">
456 <field name="name" select="1" string="Reference"/>
457 <field name="date_planned" select="1"/>
458 <field name="origin" select="1"/>
459 <field name="product_id" on_change="product_id_change(product_id)" select="1"/>
460 <field name="product_qty"/>
461 <group colspan="2" col="3">
462 <field name="product_uom"/>
463 <button type="action"
464 name="%(mrp.action_change_production_qty)d"
465 string="Change Qty" states="ready,confirmed" />
467 <label string="" colspan="2"/>
468 <field name="product_uos_qty" groups="product.group_uos"/>
469 <group colspan="2" col="3" groups="product.group_uos">
470 <field name="product_uos"/>
475 <notebook colspan="4">
476 <page string="Consumed Products">
477 <field name="bom_id" select="2" domain="[('product_id','=',product_id),('bom_id','=',False)]" on_change="bom_id_change(bom_id)"/>
478 <field name="routing_id" groups="base.group_extended" select="1"/>
479 <field name="location_src_id" select="2" domain="[('usage','=','internal')]" on_change="location_id_change(location_src_id,location_dest_id)"/>
480 <field name="location_dest_id" domain="[('usage','=','internal')]"/>
481 <separator string="" colspan="4"/>
483 <field colspan="2" name="move_lines" nolabel="1" widget="one2many_list"
484 mode="tree,form" height="275" domain="[('state','<>', ('done', 'cancel'))]">
485 <tree string="Products to Consume">
486 <field name="product_id" />
487 <field name="product_qty" string="Qty"/>
488 <field name="product_uom" string="UOM"/>
489 <field name="location_id" string="Source Loc."/>
491 <field name="state" invisible="1"/>
492 <button name="%(stock.move_consume)d"
493 string="Consume Products" type="action"
494 icon="gtk-go-forward" context="{'consume': True}"
495 states="draft,waiting,confirmed,assigned" />
496 <button name="%(stock.move_scrap)d"
497 string="Scrap Products" type="action"
498 icon="gtk-convert" context="{'scrap': True}"
499 states="draft,waiting,confirmed,assigned" />
503 <field colspan="2" name="move_lines2" nolabel="1" domain="[('state','in', ('done', 'cancel'))]"
504 widget="one2many_list" mode="tree,form" height="275">
505 <tree string="Consumed Products" editable="bottom" colors="red:scraped==True">
506 <field name="product_id" readonly="1"/>
507 <field name="product_qty" readonly="1" string="Qty"/>
508 <field name="product_uom" readonly="1" string="UOM"/>
509 <field name="location_dest_id" readonly="1" string="Destination Loc."/>
510 <field name="prodlot_id" />
511 <field name="state" invisible="1"/>
512 <field name="scraped" invisible="1"/>
514 name="%(stock.track_line)d"
515 string="Split in production lots"
516 type="action" icon="gtk-justify-fill"
517 states="done,cancel" />
519 name="%(stock.move_scrap)d"
520 string="Scrap Products" type="action"
522 states="done,cancel" />
527 <group col="9" colspan="4">
528 <field name="state" select="2"/>
529 <button name="action_compute" states="draft" string="Compute Data" type="object" icon="gtk-execute"/>
530 <button name="button_confirm" states="draft" string="Confirm Production" icon="gtk-apply"/>
531 <button name="button_produce" states="ready" string="Mark as Started" icon="gtk-execute"/>
532 <button name="%(act_mrp_product_produce)d" states="in_production" string="Produce" icon="gtk-ok" type="action"/>
533 <button name="force_production" states="confirmed,picking_except" string="Force Reservation" type="object" icon="gtk-jump-to"/>
534 <button name="button_cancel" states="draft,ready,confirmed,in_production,picking_except" string="Cancel" icon="gtk-cancel"/>
535 <button name="button_recreate" states="picking_except" string="Recreate Picking" icon="gtk-convert"/>
538 <page string="Finished Products">
539 <field colspan="2" name="move_created_ids" nolabel="1" widget="one2many_list"
540 mode="tree,form" height="275" domain="[('state','<>', ('done', 'cancel'))]">
541 <tree string="Products to Finish">
542 <field name="product_id" />
543 <field name="product_qty" string="Qty"/>
544 <field name="product_uom" string="UOM"/>
545 <field name="location_id" string="Source Loc."/>
546 <field name="state" invisible="1"/>
547 <button name="%(stock.move_consume)d"
548 string="Consume Products" type="action"
549 icon="gtk-go-forward" context="{'consume': True}"
550 states="draft,waiting,confirmed,assigned" />
551 <button name="%(stock.move_scrap)d"
552 string="Scrap Products" type="action"
553 icon="gtk-convert" context="{'scrap': True}"
554 states="draft,waiting,confirmed,assigned" />
558 <field colspan="2" name="move_created_ids2" nolabel="1" domain="[('state','in', ('done', 'cancel'))]"
559 widget="one2many_list" mode="tree,form" height="275">
560 <tree string="Finished Products" editable="bottom" colors="red:scraped==True">
561 <field name="product_id" readonly="1"/>
562 <field name="product_qty" readonly="1" string="Qty"/>
563 <field name="product_uom" readonly="1" string="UOM"/>
564 <field name="location_dest_id" readonly="1" string="Destination Loc."/>
565 <field name="prodlot_id" />
566 <field name="state" invisible="1"/>
567 <field name="scraped" invisible="1"/>
568 <button name="%(stock.track_line)d"
569 string="Split in production lots" type="action" icon="gtk-justify-fill" states="done,cancel"/>
570 <button name="%(stock.move_scrap)d"
571 string="Scrap Products" type="action" icon="gtk-convert"
572 states="done,cancel" />
576 <page string="Work Orders">
577 <field colspan="4" name="workcenter_lines" nolabel="1">
578 <form string="Production Work Centers">
579 <field colspan="4" name="name" select="1"/>
580 <field colspan="4" name="workcenter_id" select="1"/>
581 <field name="sequence"/>
582 <field name="cycle"/>
585 <tree string="Production Work Centers">
586 <field name="sequence"/>
588 <field name="workcenter_id"/>
589 <field name="cycle"/>
595 <page string="Scheduled Products">
596 <field colspan="4" name="product_lines" nolabel="1" widget="one2many_list"/>
598 <page string="Extra Information">
599 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
600 <field name="priority" groups="base.group_extended"/>
602 <field name="date_start" select="2"/>
603 <field name="date_finnished"/>
604 <field name="picking_id"/>
605 <field name="move_prod_id"/>
606 <field name="sale_name"/>
607 <field name="sale_ref"/>
614 <record id="view_mrp_production_filter" model="ir.ui.view">
615 <field name="name">mrp.production.select</field>
616 <field name="model">mrp.production</field>
617 <field name="type">search</field>
618 <field name="arch" type="xml">
619 <search string="Search Production">
620 <group col='9' colspan='4'>
621 <filter icon="terp-mrp" string="Draft"
622 domain="[('state','=','draft')]"
623 help="Non confirmed manufacturing orders"/>
624 <filter icon="terp-mrp" string="Current"
626 domain="[('state','in',('confirmed','ready'))]"
627 help="Manufacturing Orders which are waiting for raw materials"/>
628 <filter icon="terp-mrp" string="Ready"
629 domain="[('state','=','ready')]"
630 help="Manufacturing Orders which are ready to produce" />
631 <filter icon="terp-mrp" string="In Production"
632 domain="[('state','=','in_production')]"
633 help="Manufacturing Orders which are in production" />
634 <separator orientation="vertical"/>
635 <filter icon="terp-mrp" string="Late"
636 domain="['&', ('date_planned::date','<', current_date), ('state', 'in', ('draft', 'confirmed', 'ready'))]"
637 help="Production started late" />
638 <separator orientation="vertical"/>
640 <field name="product_id"/>
641 <field name="routing_id"/>
642 <field name="origin"/>
645 <group expand="1" string="Group By" colspan="10" col="8">
646 <filter string="Product" icon="terp-mrp" domain="[]" context="{'group_by':'product_id'}"/>
647 <filter string="State" icon="terp-mrp" domain="[]" context="{'group_by':'state'}"/>
648 <filter string="Routing" icon="terp-mrp" domain="[]" context="{'group_by':'routing_id'}"/>
649 <separator orientation="vertical"/>
650 <filter string="Date" icon="terp-mrp" domain="[]" context="{'group_by':'date_planned'}"/>
656 <record id="mrp_production_action" model="ir.actions.act_window">
657 <field name="name">Manufacturing Orders</field>
658 <field name="type">ir.actions.act_window</field>
659 <field name="res_model">mrp.production</field>
660 <field name="view_type">form</field>
661 <field name="view_mode">tree,form,calendar,graph,gantt</field>
662 <field name="view_id" eval="False"/>
663 <field name="search_view_id" ref="view_mrp_production_filter"/>
665 <menuitem action="mrp_production_action" id="menu_mrp_production_action" parent="menu_mrp_manufacturing" sequence="1"/>
667 <record id="mrp_production_action2_gantt" model="ir.actions.act_window">
668 <field name="name">Manufacturing Orders Planning</field>
669 <field name="type">ir.actions.act_window</field>
670 <field name="res_model">mrp.production</field>
671 <field name="view_type">form</field>
672 <field name="view_mode">gantt,tree,form,calendar,graph</field>
673 <field name="domain">[('state','in',('ready','confirmed','in_production'))]</field>
676 <record id="mrp_production_action2" model="ir.actions.act_window">
677 <field name="name">Manufacturing Orders To Start</field>
678 <field name="type">ir.actions.act_window</field>
679 <field name="res_model">mrp.production</field>
680 <field name="view_type">form</field>
681 <field name="view_mode">tree,form,calendar,graph,gantt</field>
682 <field name="domain">[('state','=','ready')]</field>
683 <field name="filter" eval="True"/>
684 <field name="search_view_id" ref="view_mrp_production_filter"/>
687 <record id="mrp_production_action3" model="ir.actions.act_window">
688 <field name="name">Manufacturing Orders in Progress</field>
689 <field name="type">ir.actions.act_window</field>
690 <field name="res_model">mrp.production</field>
691 <field name="view_type">form</field>
692 <field name="view_mode">tree,form,calendar,graph,gantt</field>
693 <field name="domain">[('state','=','in_production')]</field>
694 <field name="filter" eval="True"/>
695 <field name="search_view_id" ref="view_mrp_production_filter"/>
698 <record id="mrp_production_action4" model="ir.actions.act_window">
699 <field name="name">Manufacturing Orders Waiting Products</field>
700 <field name="type">ir.actions.act_window</field>
701 <field name="res_model">mrp.production</field>
702 <field name="view_type">form</field>
703 <field name="view_mode">tree,form,calendar,graph,gantt</field>
704 <field name="domain">[('state','=','confirmed')]</field>
705 <field name="filter" eval="True"/>
706 <field name="search_view_id" ref="view_mrp_production_filter"/>
709 <record id="mrp_production_lot_form_view" model="ir.ui.view">
710 <field name="name">mrp.production.lot.line.form</field>
711 <field name="model">mrp.production.lot.line</field>
712 <field name="type">form</field>
713 <field name="arch" type="xml">
714 <form string="Production Products">
715 <field colspan="4" name="move_id" on_change="onchange_lot_line_id(lot_id)"/>
717 <field name="product_id"/>
718 <field name="product_qty"/>
719 <field name="product_uom"/>
720 <field name="product_uos_qty"/>
721 <field name="product_uos"/>
722 <field name="tracking_id"/>
726 <record id="mrp_production_lot_tree_view" model="ir.ui.view">
727 <field name="name">mrp.production.lot.line.tree</field>
728 <field name="model">mrp.production.lot.line</field>
729 <field name="type">tree</field>
730 <field name="arch" type="xml">
731 <tree string="Production Products Consommation">
732 <field name="product_id"/>
733 <field name="product_qty"/>
734 <field name="product_uom"/>
735 <field name="product_uos_qty"/>
736 <field name="product_uos"/>
737 <field name="tracking_id"/>
742 <record id="mrp_production_product_form_view" model="ir.ui.view">
743 <field name="name">mrp.production.product.line.form</field>
744 <field name="model">mrp.production.product.line</field>
745 <field name="type">form</field>
746 <field name="arch" type="xml">
747 <form string="Scheduled Products">
749 <field name="product_id"/>
750 <field name="product_qty"/>
751 <field name="product_uom"/>
752 <field name="product_uos_qty"/>
753 <field name="product_uos"/>
757 <record id="mrp_production_product_tree_view" model="ir.ui.view">
758 <field name="name">mrp.production.product.line.tree</field>
759 <field name="model">mrp.production.product.line</field>
760 <field name="type">tree</field>
761 <field name="arch" type="xml">
762 <tree string="Scheduled Products">
763 <field name="product_id"/>
764 <field name="product_qty"/>
765 <field name="product_uom"/>
766 <field name="product_uos_qty"/>
767 <field name="product_uos"/>
776 <record id="mrp_procurement_tree_view" model="ir.ui.view">
777 <field name="name">mrp.procurement.tree</field>
778 <field name="model">mrp.procurement</field>
779 <field name="type">tree</field>
780 <field name="arch" type="xml">
781 <tree string="Procurement Lines" colors="red:state=='draft';black:state=='running';green:state=='confirmed';gray:state in ['done','cancel']">
782 <field name="date_planned" widget="date"/>
783 <field name="origin"/>
784 <field name="product_id"/>
785 <field name="product_qty"/>
786 <field name="product_uom" string="UOM"/>
787 <field name="procure_method"/>
788 <field name="state"/>
792 <record id="mrp_procurement_form_view" model="ir.ui.view">
793 <field name="name">mrp.procurement.form</field>
794 <field name="model">mrp.procurement</field>
795 <field name="type">form</field>
796 <field name="arch" type="xml">
797 <form string="Procurement">
798 <group col="2" colspan="2">
799 <separator colspan="2" string="References"/>
800 <field name="name" select="1" string="Procurement Reason"/>
801 <field name="origin" select="2"/>
802 <field name="company_id" select="1" groups="base.group_multi_company" widget="selection"/>
804 <group col="2" colspan="2">
805 <separator colspan="2" string="Planification"/>
806 <field name="date_planned" select="1"/>
807 <field name="procure_method" select="2"/>
808 <field name="priority" groups="base.group_extended"/>
810 <notebook colspan="4">
811 <page string="Procurement Details">
812 <separator colspan="4" string="Product & Location"/>
813 <field name="product_id" select="1" on_change="onchange_product_id(product_id)"/>
814 <field name="location_id" select="2"/>
815 <field name="product_qty"/>
816 <field name="product_uom"/>
818 <field name="product_uos_qty" groups="product.group_uos"/>
819 <field name="product_uos" groups="product.group_uos"/>
821 <separator colspan="4" string="Status"/>
822 <field colspan="4" name="message" readonly="1"/>
823 <field name="state" readonly="1" select="2"/>
824 <group col="7" colspan="2">
825 <button name="button_confirm" states="draft" string="Confirm" icon="gtk-apply"/>
826 <button name="button_restart" states="exception" string="Retry" icon="gtk-convert"/>
827 <button name="button_cancel" states="draft,exception,waiting" string="Cancel" icon="gtk-cancel"/>
828 <button name="button_check" states="confirmed" string="Run Procurement" icon="gtk-media-play"/>
831 <page string="Extra Information">
832 <separator colspan="4" string="Details"/>
833 <field name="bom_id" select="2" domain="[('product_id','=',product_id),('bom_id','=',False)]"/>
834 <field name="move_id" groups="base.group_extended"/>
835 <field name="date_close" select="2"/>
836 <field name="close_move" groups="base.group_extended"/>
837 <field name="purchase_id"/>
838 <group colspan="4" groups="base.group_extended">
839 <separator colspan="4" string="Properties" />
840 <field colspan="4" name="property_ids" nolabel="1"/>
843 <page string="Notes">
844 <separator colspan="4" string="Note" />
845 <field name="note" colspan="4" nolabel="1"/>
851 <record id="view_mrp_procurement_filter" model="ir.ui.view">
852 <field name="name">mrp.procurement.select</field>
853 <field name="model">mrp.procurement</field>
854 <field name="type">search</field>
855 <field name="arch" type="xml">
856 <search string="Search Procurement">
857 <group col='10' colspan='4'>
858 <filter icon="terp-mrp" string="Current" domain="[('state','in',('draft','confirmed'))]" default="1" help="Procurement Orders in draft or open state."/>
859 <filter icon="terp-mrp" string="Exceptions" domain="[('state','=','exception')]" help="Procurement Orders with exceptions"/>
860 <filter icon="terp-mrp" string="Late"
861 domain="['&', ('date_planned::date','<', current_date), ('state', 'in', ('draft', 'confirmed'))]"
862 help="Procurement started late" />
863 <separator orientation="vertical"/>
865 <field name="origin"/>
866 <field name="product_id" />
867 <field name="date_planned" widget="date"/>
868 <field name="state" />
870 <group expand="1" string="Group By" colspan="4" col="8">
871 <filter string="Product" icon="terp-mrp" domain="[]" context="{'group_by':'product_id'}"/>
872 <filter string="Reason" icon="terp-mrp" domain="[]" context="{'group_by':'name'}"/>
873 <filter string="Scheduled Date" icon="terp-mrp" domain="[]" context="{'group_by':'date_planned'}"/>
878 <record id="mrp_procurement_action" model="ir.actions.act_window">
879 <field name="name">Procurement Orders</field>
880 <field name="type">ir.actions.act_window</field>
881 <field name="res_model">mrp.procurement</field>
882 <field name="view_type">form</field>
883 <field name="view_id" eval="False"/>
884 <field name="search_view_id" ref="view_mrp_procurement_filter"/>
886 <menuitem action="mrp_procurement_action" id="menu_mrp_procurement_action" parent="mrp.menu_mrp_manufacturing"
889 <record id="mrp_procurement_action3" model="ir.actions.act_window">
890 <field name="name">Requisitions</field>
891 <field name="type">ir.actions.act_window</field>
892 <field name="res_model">mrp.procurement</field>
893 <field name="view_type">form</field>
894 <field name="view_mode">tree,form</field>
895 <field name="search_view_id" ref="view_mrp_procurement_filter"/>
896 <field name="domain">[]</field>
897 <field name="context">{}</field>
900 <menuitem action="mrp_procurement_action3" id="menu_procurement_requisitions" parent="purchase.menu_procurement_management"
901 name="Requisitions" sequence="5" />
903 <record id="mrp_procurement_action5" model="ir.actions.act_window">
904 <field name="name">Procurement Exceptions</field>
905 <field name="type">ir.actions.act_window</field>
906 <field name="res_model">mrp.procurement</field>
907 <field name="view_type">form</field>
908 <field name="view_mode">tree,form</field>
909 <field name="domain">[('state','=','exception')]</field>
912 <menuitem action="mrp_procurement_action5" id="menu_mrp_procurement_exception_action" parent="mrp.menu_mrp_control"
914 <record id="mrp_procurement_action4" model="ir.actions.act_window">
915 <field name="name">Procurement Exceptions to Fix</field>
916 <field name="type">ir.actions.act_window</field>
917 <field name="res_model">mrp.procurement</field>
918 <field name="view_type">form</field>
919 <field name="view_mode">tree,form</field>
920 <field name="domain">[('state','=','exception'), ('message', '<>', '')]</field>
921 <field name="filter" eval="True"/>
924 <record id="mrp_procurement_action11" model="ir.actions.act_window">
925 <field name="name">Temporary Procurement Exceptions</field>
926 <field name="type">ir.actions.act_window</field>
927 <field name="res_model">mrp.procurement</field>
928 <field name="view_type">form</field>
929 <field name="view_mode">tree,form</field>
930 <field name="domain">[('state','=','exception'), ('message', '=', '')]</field>
934 <record id="view_warehouse_orderpoint_tree" model="ir.ui.view">
935 <field name="name">stock.warehouse.orderpoint.tree</field>
936 <field name="model">stock.warehouse.orderpoint</field>
937 <field name="type">tree</field>
938 <field name="arch" type="xml">
939 <tree string="Minimum Stock Rules">
941 <field name="warehouse_id"/>
942 <field name="location_id"/>
943 <field name="product_id"/>
944 <field name="product_uom"/>
945 <field name="product_min_qty"/>
946 <field name="product_max_qty"/>
951 <record model="ir.ui.view" id="warehouse_orderpoint_search">
952 <field name="name">stock.warehouse.orderpoint.search</field>
953 <field name="model">stock.warehouse.orderpoint</field>
954 <field name="type">search</field>
955 <field name="arch" type="xml">
956 <search string="Minimum Stock Rules Search">
957 <group col="10" colspan="4">
958 <field name="name" select="1" />
959 <field name="warehouse_id" select="1" widget="selection"/>
960 <field name="location_id" select="1" />
961 <field name="company_id" select="1" widget="selection"/>
962 <field name="product_id" select="1"/>
965 <group expand="1" string="Group By..." colspan="4" col="10">
966 <filter string="Warehouse" icon="terp-stock" domain="[]" context="{'group_by':'warehouse_id'}"/>
967 <filter string="Location" icon="terp-stock" domain="[]" context="{'group_by':'location_id'}"/>
973 <record id="view_warehouse_orderpoint_form" model="ir.ui.view">
974 <field name="name">stock.warehouse.orderpoint.form</field>
975 <field name="model">stock.warehouse.orderpoint</field>
976 <field name="type">form</field>
977 <field name="arch" type="xml">
978 <form string="Minimum Stock Rules">
979 <group col="2" colspan="2">
980 <separator string="General Information" colspan="2" />
981 <field name="name" />
982 <field name="product_id" on_change="onchange_product_id(product_id)" />
983 <field name="product_uom"/>
985 <group col="2" colspan="2">
986 <separator string="Locations" colspan="2" />
987 <field name="warehouse_id" on_change="onchange_warehouse_id(warehouse_id)" widget="selection"/>
988 <field name="location_id"/>
989 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
991 <group col="2" colspan="2">
992 <separator string="Quantity Rules" colspan="2" />
993 <field name="product_min_qty"/>
994 <field name="product_max_qty"/>
995 <field name="qty_multiple"/>
997 <group col="2" colspan="2">
998 <separator string="Misc" colspan="2" />
999 <field name="procurement_id" readonly="1"/>
1000 <field name="active" />
1005 <record id="action_orderpoint_form" model="ir.actions.act_window">
1006 <field name="name">Minimum Stock Rules</field>
1007 <field name="res_model">stock.warehouse.orderpoint</field>
1008 <field name="type">ir.actions.act_window</field>
1009 <field name="view_type">form</field>
1010 <field name="view_id" ref="view_warehouse_orderpoint_tree"/>
1011 <field name="search_view_id" ref="warehouse_orderpoint_search" />
1013 <menuitem action="action_orderpoint_form" id="menu_action_orderpoint_form" parent="menu_mrp_reordering"/>
1015 <act_window domain="[('warehouse_id', '=', active_id)]" id="act_stock_warehouse_2_stock_warehouse_orderpoint" name="Minimum Stock Rules" res_model="stock.warehouse.orderpoint" src_model="stock.warehouse"/>
1017 <!-- add product_uom to context to be the default value when adding new orderpoints -->
1019 context="{'product_uom': locals().has_key('uom_id') and uom_id}"
1020 domain="[('product_id', '=', active_id)]"
1021 id="act_product_product_2_stock_warehouse_orderpoint"
1022 name="Minimum Stock Rules"
1023 res_model="stock.warehouse.orderpoint"
1024 src_model="product.product"/>
1027 id="action_product_bom_structure"
1028 name="Product BoM Structure"
1029 domain="[('product_id', '=', active_id),('bom_id','=',False)]"
1031 view_id="mrp_bom_tree_view"
1033 src_model="product.product"/>
1036 domain="[('product_id', '=', active_id),('bom_id','=',False)]"
1037 id="act_product_product_2_mrp_bom"
1038 name="Bill of Materials"
1040 src_model="product.product"/>
1042 <!-- Menu for Resource for MRP-->
1043 <menuitem icon="terp-mrp" id="base.menu_mrp_root" name="Manufacturing" sequence="3"/>
1044 <menuitem id="menu_pm_resources_mrp" name="Resources" parent="base.menu_mrp_root" sequence="2"/>
1045 <menuitem action="resource.action_resource_resource_tree" id="menu_view_resource_search_mrp" parent="menu_pm_resources_mrp" sequence="1"/>
1046 <menuitem action="resource.action_resource_calendar_form" id="menu_view_resource_calendar_search_mrp" parent="menu_pm_resources_mrp" sequence="1"/>
1047 <menuitem action="resource.action_resource_calendar_leave_tree" id="menu_view_resource_calendar_leaves_search_mrp" parent="menu_pm_resources_mrp" sequence="1"/>