From 9565e828505763daf4120278ca84ffb3bfab4c03 Mon Sep 17 00:00:00 2001 From: laurentbarontini Date: Sun, 15 Feb 2026 11:37:46 +0100 Subject: [PATCH] 15.02.26 --- modules/purchase_trade/valuation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/purchase_trade/valuation.py b/modules/purchase_trade/valuation.py index 3ab5dda..cf18b52 100644 --- a/modules/purchase_trade/valuation.py +++ b/modules/purchase_trade/valuation.py @@ -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: