Skip to content

Commit

Permalink
T1985 : Correct missing analytic lines in new sponsorships
Browse files Browse the repository at this point in the history
  • Loading branch information
EliasGajo committed Nov 27, 2024
1 parent 037a0d6 commit 2fbefec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions recurring_contract/models/contract_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,9 @@ def _process_invoice_generation(self, invoicer, invoicing_date, contract=None):
"payment_mode_id": self.payment_mode_id.id,
}
)
open_invoice.mapped('invoice_line_ids').filtered(
lambda line : line.contract_id in self.active_contract_ids
).create_analytic_lines()
else:
# Building invoices data
contracts = self.active_contract_ids
Expand Down

0 comments on commit 2fbefec

Please sign in to comment.