This commit is contained in:
2026-02-15 11:27:59 +01:00
parent 67d3ce545e
commit 29ada1899e
2 changed files with 10 additions and 3 deletions

View File

@@ -259,7 +259,6 @@ class ValuationBase(ModelSQL):
return price_lines
@classmethod
def group_fees_by_type_supplier(cls,line,fees):
grouped = defaultdict(list)
@@ -284,8 +283,11 @@ class ValuationBase(ModelSQL):
Date = Pool().get('ir.date')
Currency = Pool().get('currency.currency')
FeeLots = Pool().get('fee.lots')
for lot in line.lots or []:
#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
for lot in all_lots:
fl = FeeLots.search([('lot', '=', lot.id)])
if not fl:
continue