This commit is contained in:
2026-02-15 11:37:46 +01:00
parent 29ada1899e
commit 9565e82850

View File

@@ -284,9 +284,9 @@ class ValuationBase(ModelSQL):
Currency = Pool().get('currency.currency')
FeeLots = Pool().get('fee.lots')
#if line is matched with sale_line we should add the open sale side
sale_lines = line.get_matched_lines()
sale_open_lots = [s.lot_s for s in sale_lines]
all_lots = (line.lots or []) + sale_open_lots
sale_lines = line.get_matched_lines() or []
sale_open_lots = tuple(s.lot_s for s in sale_lines if s.lot_s)
all_lots = (line.lots or ()) + sale_open_lots
for lot in all_lots:
fl = FeeLots.search([('lot', '=', lot.id)])
if not fl: