This commit is contained in:
2026-02-14 08:52:31 +01:00
parent b0ebc02434
commit 3db2f8c96e

View File

@@ -339,7 +339,7 @@ class Sale(metaclass=PoolMeta):
for sale in sales: for sale in sales:
for line in sale.lines: for line in sale.lines:
if not line.quantity_theorical and line.quantity > 0: if not line.quantity_theorical and line.quantity > 0:
line.quantity_theorical = line.quantity line.quantity_theorical = Decimal(str(line.quantity)).quantize(Decimal("0.00001"))
Line.save([line]) Line.save([line])
if line.lots: if line.lots: