From 425ff940daecddd7b9bd43c2906e0d2b8f01ffe6 Mon Sep 17 00:00:00 2001 From: Florian Damhaut Date: Mon, 18 Oct 2021 07:46:21 +0000 Subject: [PATCH] [FIX] mrp : Remove operations from production template when the module is disabled Current Behaviour : 1. Enable Work Orders 2. Add an operation to a BOM 3. Disable Work Orders 4. Create a manufacturing order for this product and finish the manufacturing. 5. Print the production order What is the current behavior that you observe? The production order has the operations in it even though the work order option has been disabled. This is because disabling the work order option just hides the operations and does not remove it from the BOM. What would be your expected behavior in this case? The printed production should not show the operation. opw-2660545 closes odoo/odoo#78544 X-original-commit: d73752c5fe983ce6a9147721e732396394a77cc4 Signed-off-by: William Henrotin --- addons/mrp/report/mrp_production_templates.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mrp/report/mrp_production_templates.xml b/addons/mrp/report/mrp_production_templates.xml index cfeb3cc8eb7..941c899960d 100644 --- a/addons/mrp/report/mrp_production_templates.xml +++ b/addons/mrp/report/mrp_production_templates.xml @@ -43,7 +43,7 @@ -
+

Operations Done Operations Planned