This commit is contained in:
2026-03-25 18:45:54 +01:00
parent d38d0324d5
commit 1f49c00cff
5 changed files with 131 additions and 13 deletions

View File

@@ -1225,7 +1225,6 @@ class Line(metaclass=PoolMeta):
old_values = {}
for records, values in zip(args[::2], args[1::2]):
logger.info("***WRITE***:%s",values)
if 'quantity_theorical' in values:
for record in records:
old_values[record.id] = record.quantity_theorical
@@ -1238,7 +1237,6 @@ class Line(metaclass=PoolMeta):
old = Decimal(old_values[line.id] or 0)
new = Decimal(line.quantity_theorical or 0)
delta = new - old
logger.info("***WRITE_DELTA***:%s",delta)
if delta > 0:
virtual_lots = [lot for lot in (line.lots or []) if lot.lot_type == 'virtual']
if not virtual_lots: