From 2581693b5da16c3c7362e428d3fe9b8f68032df4 Mon Sep 17 00:00:00 2001 From: Jorge Pinna Puissant Date: Thu, 5 Sep 2019 11:29:33 +0000 Subject: [PATCH] [FIX] mrp: warning message in production order report MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit — create a bom which uses 5.6 units of a product; — make a production order; — reserve the materials (all materials should be available); — print the production order report. Before this commit, a warning message in the report that says : 'All components could not be reserved. Click on the "Check Availability button" to try to reserve components'. This warning message is shown despite the fact that all the components are reserved. This occurs because of a rounding error. Now, the warning message only when a component could not be reserved. opw-2058921 closes odoo/odoo#36462 Signed-off-by: Nicolas Martinelli (nim) --- addons/mrp/report/mrp_production_templates.xml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/mrp/report/mrp_production_templates.xml b/addons/mrp/report/mrp_production_templates.xml index 531b516f0da..a4df1ef7ec5 100644 --- a/addons/mrp/report/mrp_production_templates.xml +++ b/addons/mrp/report/mrp_production_templates.xml @@ -136,7 +136,8 @@ - + +

All components could not be reserved. Click on the "Check Availability button" to try to reserve components.