[IMP] commission_simple: allow use of lambda in inherit of commission result lines

This commit is contained in:
Alexis de Lattre
2025-09-02 10:50:08 +00:00
parent dfdd09260d
commit 00ca8789de
2 changed files with 5 additions and 4 deletions

View File

@@ -75,3 +75,7 @@ class CommissionResult(models.Model):
'salesman_period_company_unique',
'unique(company_id, partner_id, date_range_id)',
'A commission result already exists for this salesman/agent for the same period.')]
def _prepare_xlsx_lines(self):
self.ensure_one()
return self.line_ids.sorted(key=lambda x: x.move_id.invoice_date)