From bc7aa43a269f585e0701e01acaa1886434a9c7f6 Mon Sep 17 00:00:00 2001 From: Jamin Shah Date: Tue, 12 Aug 2014 11:07:52 +0530 Subject: [PATCH] [IMP] mrp: hide some fields on BOM, add groups to handle the displayed fields --- addons/mrp/mrp_view.xml | 28 +++++----------------------- addons/mrp/res_config.py | 6 ++++++ addons/mrp/res_config_view.xml | 13 +++++++++++++ addons/mrp/security/mrp_security.xml | 10 ++++++++++ 4 files changed, 34 insertions(+), 23 deletions(-) diff --git a/addons/mrp/mrp_view.xml b/addons/mrp/mrp_view.xml index 2f1c4990871..46fea66f473 100644 --- a/addons/mrp/mrp_view.xml +++ b/addons/mrp/mrp_view.xml @@ -391,14 +391,14 @@ - + - - + + - + @@ -491,7 +491,7 @@ - + mrp.bom.component.tree mrp.bom.line @@ -534,24 +534,6 @@ - - Bill of Material Components - ir.actions.act_window - mrp.bom.line - tree - tree - - -

- Click to add a component to a bill of material. -

- Bills of materials components are components and by-products - used to create master bills of materials. Use this menu to - search in which BoM a specific component is used. -

-
-
- product.template.search.bom product.template diff --git a/addons/mrp/res_config.py b/addons/mrp/res_config.py index 39140820886..49ca914f0a9 100644 --- a/addons/mrp/res_config.py +++ b/addons/mrp/res_config.py @@ -52,6 +52,12 @@ class mrp_config_settings(osv.osv_memory): 'group_mrp_properties': fields.boolean("Allow several bill of materials per products using properties", implied_group='product.group_mrp_properties', help="""The selection of the right Bill of Material to use will depend on the properties specified on the sales order and the Bill of Material."""), + 'group_route_line_type': fields.boolean("Manage multi level Bill of Materials", + implied_group='mrp.group_route_line_type', + help="""Allow to manage multi level bill of material"""), + 'group_rounding_efficiency': fields.boolean("Manage rounding and efficiency of BoM components", + implied_group='mrp.group_rounding_efficiency', + help="""Allow to manage product rounding on quantity and product efficiency during production process"""), } # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/mrp/res_config_view.xml b/addons/mrp/res_config_view.xml index bd717e754d9..13264b77f20 100644 --- a/addons/mrp/res_config_view.xml +++ b/addons/mrp/res_config_view.xml @@ -60,6 +60,19 @@ + + diff --git a/addons/mrp/security/mrp_security.xml b/addons/mrp/security/mrp_security.xml index 1320ea26906..f0d21c0e20d 100644 --- a/addons/mrp/security/mrp_security.xml +++ b/addons/mrp/security/mrp_security.xml @@ -19,6 +19,16 @@
+ + Manage multi level BOM + + + + + Manage rounding and efficiency of BoM components + + +