summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Voet (ryv) <ryv@odoo.com>2020-05-28 16:55:31 +0200
committerSimon Lejeune <sle@openerp.com>2020-06-15 16:59:41 +0200
commit7e71c0f87f8704a8217bf6c299e09cbcdd4b5978 (patch)
tree74f8aacd1a7e5d943ac11418faee43bca88c413d
parent328efb085a45c517c0e5ff0602f6d7e7ab096a5c (diff)
[IMP] mrp: add a operation menu
Add menu to a operation tree. task-2241471
-rw-r--r--addons/mrp/views/mrp_routing_views.xml23
1 files changed, 23 insertions, 0 deletions
diff --git a/addons/mrp/views/mrp_routing_views.xml b/addons/mrp/views/mrp_routing_views.xml
index 0fc4230e6ca..cb004168761 100644
--- a/addons/mrp/views/mrp_routing_views.xml
+++ b/addons/mrp/views/mrp_routing_views.xml
@@ -61,5 +61,28 @@
</form>
</field>
</record>
+
+ <record id="mrp_routing_action" model="ir.actions.act_window">
+ <field name="name">Operations</field>
+ <field name="type">ir.actions.act_window</field>
+ <field name="res_model">mrp.routing.workcenter</field>
+ <field name="view_mode">tree,form</field>
+ <field name="view_id" ref="mrp_routing_workcenter_tree_view"/>
+ <field name="help" type="html">
+ <p class="o_view_nocontent_smiling_face">
+ Create a new operation
+ </p><p>
+ Operation define that need to be done to realize a Work Order.
+ Each operation is done at a specific Work Center and has a specific duration.
+ </p>
+ </field>
+ </record>
+
+ <menuitem id="menu_mrp_routing_action"
+ action="mrp_routing_action"
+ parent="menu_mrp_configuration"
+ groups="group_mrp_routings"
+ sequence="100"/>
+
</data>
</odoo>