Module
contract
Describe the bug
When I create a contract with recurring_invoicing_type = 'post-paid' with multiple lines, last_date_invoiced is miscalculated except on the first line.
To Reproduce
Affected versions:
Steps to reproduce the behavior:
- Create a
contract
- Set
recurring_rule_type = 'quaterly'
- Set
recurring_invoicing_type = 'post-paid'
- Set
date_start = 2026-06-09
- Create 3
contract.line
- Set
reccuring_next_date = 2026-06-30
- Save the contract
- Click on
Create invoices button
Expected behavior
The last_date_invoiced on the first contrcat.line = 2026-06-29 while on the second and third is 2026-09-29.
I expected the last_date_invoiced = 2026-06-29 on the three lines.
Additional context
Linux
Python 3.12
Module
contractDescribe the bug
When I create a contract with
recurring_invoicing_type= 'post-paid' with multiple lines,last_date_invoicedis miscalculated except on the first line.To Reproduce
Affected versions:
Steps to reproduce the behavior:
contractrecurring_rule_type= 'quaterly'recurring_invoicing_type= 'post-paid'date_start= 2026-06-09contract.linereccuring_next_date= 2026-06-30Create invoicesbuttonExpected behavior
The
last_date_invoicedon the first contrcat.line = 2026-06-29 while on the second and third is 2026-09-29.I expected the
last_date_invoiced= 2026-06-29 on the three lines.Additional context
Linux
Python 3.12