From 432f7d4e9dfd1e0fd8f01aeba7987285d5df283a Mon Sep 17 00:00:00 2001 From: "Touati Djamel (otd)" Date: Fri, 19 May 2023 11:58:24 +0000 Subject: [PATCH] [FIX] mrp: allow overviewing of bom with decimal quantity Steps to reproduce the bug: - Create a storable product with BoM: - add any product as component - save - Click on the BoM overview widget - Change the quantity of a BOM with a number that has a decimal value. Problem: The quantity is converted to an integer because this input does not accept a decimal value. opw-3288403 closes odoo/odoo#123024 X-original-commit: de5087df501bffdaa14ca6a8b7a19da802f4e016 Signed-off-by: Djamel Touati (otd) Signed-off-by: William Henrotin (whe) --- .../src/components/bom_overview/mrp_bom_overview.xml | 4 +++- .../mrp_bom_overview_control_panel.js | 8 +++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/addons/mrp/static/src/components/bom_overview/mrp_bom_overview.xml b/addons/mrp/static/src/components/bom_overview/mrp_bom_overview.xml index a96c9637d14..b3def15b803 100644 --- a/addons/mrp/static/src/components/bom_overview/mrp_bom_overview.xml +++ b/addons/mrp/static/src/components/bom_overview/mrp_bom_overview.xml @@ -15,7 +15,9 @@ changeWarehouse.bind="onChangeWarehouse" changeVariant.bind="onChangeVariant" changeBomQuantity.bind="onChangeBomQuantity" - changeDisplay.bind="onChangeDisplay"/> + changeDisplay.bind="onChangeDisplay" + precision="state.precision" + />