From 18dddc20278bf078bdede196ce89049f71f3a6d0 Mon Sep 17 00:00:00 2001 From: William Henrotin Date: Wed, 5 Aug 2020 12:34:40 +0000 Subject: [PATCH] [FIX] mrp: force default value to 0 Commit 47e40e7f6a3f6da929245779b7b8a886da57a6ce set a default value for the stock moves initial demand (default_product_uom_qty). The issue is the stock_move_line models also have a product_uom_qty field. This field on the line is also st to 1 in the default get. Which is non desired side effect. This commit adds another default_product_uom_qty equals to 0 for the stock move lines. Task : 2278147 --- 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 1f4d8850a9b..cdecb5081bf 100644 --- a/addons/mrp/views/mrp_production_views.xml +++ b/addons/mrp/views/mrp_production_views.xml @@ -267,7 +267,7 @@ attrs="{'column_invisible': [('parent.state', '=', 'draft')], 'readonly': [('show_details_visible', '=', True)]}"/> -