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: