summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosse Colpaert <jco@odoo.com>2016-07-20 11:41:04 +0200
committerJosse Colpaert <jco@odoo.com>2016-07-29 15:35:22 +0200
commita64deb4dd0e9bc34827408ff9fdeb6480f97100b (patch)
treebcba838e4caeee107916cbbebb1240e184579f49
parentf670b3b1df882ec6f86c1f8408489c0788f41418 (diff)
[IMP] mps: MPS module should not be an application, but a setting
-rw-r--r--addons/mrp/models/mrp_config_settings.py4
-rw-r--r--addons/mrp/views/mrp_config_settings_views.xml1
2 files changed, 5 insertions, 0 deletions
diff --git a/addons/mrp/models/mrp_config_settings.py b/addons/mrp/models/mrp_config_settings.py
index 4c54ba79a08..df7d4ac7583 100644
--- a/addons/mrp/models/mrp_config_settings.py
+++ b/addons/mrp/models/mrp_config_settings.py
@@ -20,6 +20,10 @@ class MrpConfigSettings(models.TransientModel):
'Without this module: A + B + C -> D.\n'
'With this module: A + B + C -> D + E.\n'
'-This installs the module mrp_byproduct.')
+ module_mrp_mps = fields.Selection([
+ (0, "No need for Master Production Schedule as products have short lead times"),
+ (1, "Use Master Production Schedule in order to create procurements based on forecasts"),
+ ], string="Master Production Schedule")
module_mrp_plm = fields.Selection([
(0, "No product lifecycle management"),
(1, "Manage engineering changes, versions and documents")
diff --git a/addons/mrp/views/mrp_config_settings_views.xml b/addons/mrp/views/mrp_config_settings_views.xml
index 3a61a66b531..c9e9542a5eb 100644
--- a/addons/mrp/views/mrp_config_settings_views.xml
+++ b/addons/mrp/views/mrp_config_settings_views.xml
@@ -16,6 +16,7 @@
<field name="group_mrp_routings" widget="radio"/>
</group>
<group string="Extra Features">
+ <field name="module_mrp_mps" widget="upgrade_radio"/>
<field name="module_mrp_plm" widget="upgrade_radio"/>
<field name="module_mrp_maintenance" widget="upgrade_radio"/>
<field name="module_quality_mrp" widget="upgrade_radio"/>