From 75bd9baf68de039cf052e2705d56b15b6b2f7df6 Mon Sep 17 00:00:00 2001 From: "Denis Roussel (ACSONE)" Date: Tue, 2 Apr 2019 13:02:21 +0200 Subject: [PATCH] [IMP] stock_demand_estimate: use of first() Co-Authored-By: mreficent --- stock_demand_estimate/wizards/stock_demand_estimate_wizard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock_demand_estimate/wizards/stock_demand_estimate_wizard.py b/stock_demand_estimate/wizards/stock_demand_estimate_wizard.py index cd317b005..ff5b7e554 100644 --- a/stock_demand_estimate/wizards/stock_demand_estimate_wizard.py +++ b/stock_demand_estimate/wizards/stock_demand_estimate_wizard.py @@ -63,7 +63,7 @@ class StockDemandEstimateSheet(models.TransientModel): x.product_id == product) ) if estimate: - uom_id = estimate[0].product_uom.id + uom_id = fields.first(estimate).product_uom.id uom_qty = estimate[0].product_uom_qty estimate_id = estimate[0].id else: