diff --git a/purchase_landed_cost/models/purchase_cost_distribution.py b/purchase_landed_cost/models/purchase_cost_distribution.py index 4667028d..3c24bda7 100644 --- a/purchase_landed_cost/models/purchase_cost_distribution.py +++ b/purchase_landed_cost/models/purchase_cost_distribution.py @@ -243,7 +243,7 @@ def _product_price_update(self, move, new_price): product.product_tmpl_id.product_variant_ids.ids), ('id', 'not in', move.quant_ids.ids)] quants = self.env['stock.quant'].read_group( - domain_quant, ['product_id', 'qty', 'cost'], [])[0] + domain_quant, ['product_id', 'qty', 'cost'], ['cost'])[0] # Get the standard price new_std_price = ((quants['cost'] * quants['qty'] + new_price * move.product_qty) /