From 3b48029022faee75b9c34f987da35e08ff500ab2 Mon Sep 17 00:00:00 2001 From: "Tiffany Chang (tic)" Date: Tue, 26 Oct 2021 09:08:44 +0000 Subject: [PATCH] [FIX] mrp: don't default additional components "To Consume" to 1 Previous PR: odoo/odoo#69483 changed the default 'product_uom_qty' from 0 to 1. This was intended for Planned Transfers that are still draft to default the demand to 1. Unfortunately this made it so new lines added to confirmed MOs would default their "To Consume" to 1 even when the MO is locked and the form says 0 (value would auto-switch to 1 after saving). This commit makes it so the added lines correctly save as 0 again. closes odoo/odoo#79041 Task: 2677212 X-original-commit: 56a05aeed64b36ca34ff6466c2b890951bdfbc61 Signed-off-by: Arnold Moyaux Signed-off-by: Tiffany Chang --- addons/mrp/views/mrp_production_views.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/mrp/views/mrp_production_views.xml b/addons/mrp/views/mrp_production_views.xml index 495ef7c0bd4..1c22111dac3 100644 --- a/addons/mrp/views/mrp_production_views.xml +++ b/addons/mrp/views/mrp_production_views.xml @@ -295,7 +295,7 @@ - +