diff --git a/stock.py b/stock.py index 4e53710ede..5f88f79f9a 100644 --- a/stock.py +++ b/stock.py @@ -131,7 +131,7 @@ class Move: if consumed_qty >= quantity: break - if type_.startswith('in_'): + if type_ == 'in_supplier': with Transaction().set_context(date=move.effective_date): unit_price = Currency.compute(move.currency, move.unit_price, move.company.currency, round=False)