This commit is contained in:
2026-03-16 10:06:58 +01:00
parent 2183d8d5a4
commit 8e7f9648fc
2 changed files with 53 additions and 41 deletions

View File

@@ -319,7 +319,7 @@ class Sale(metaclass=PoolMeta):
if line.lots:
nb_packing += sum([l.lot_qt for l in line.lots if l.lot_type == 'physic'])
if len(line.lots)>1:
unit = line.lots[1].lot_unit_line.name
unit = line.lots[1].lot_unit.name
return str(int(nb_packing)) + unit
@property