Recalculate unit_price according the quantity (stock supplier)

#159326
This commit is contained in:
Raimon Esteve 2023-05-30 15:07:37 +02:00
parent 830e077a91
commit 2a7a8c29e0
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ class CreatePurchase(metaclass=PoolMeta):
purchase)
line.quantity = max([line.quantity] + [x.minimum_quantity for x in
requests if x.minimum_quantity])
line.on_change_quantity()
return line