[16.0] BUG? last date invoiced ?
Module
contract
Describe the bug
Last Date Invoiced is not correctly set on all the lines.
To Reproduce
OCA runboat: http://oca-contract-16-0-70e4ace4e291.runboat.odoo-community.org/web#id=8&cids=1&menu_id=151&action=363&model=contract.contract&view_type=form V16.0
Steps to reproduce the behavior:
- create a new contract. post-paid monthly.
- set date start = 01/01/2025 and date of next invoice 02/01/2025
- in debug mode click on "CREATE INVOICES"
Expected behavior Last Date Invoiced to be 01/31/2025 for all the lines
Additional context Add any other context about the problem here. (e.g. OS, Python version, ...)
Hi @ygol this is a known problem that you get when not using recurrency at line level, already reported in PR though :
- https://github.com/OCA/contract/pull/1124
- https://github.com/OCA/contract/pull/1080
Although the solution proposed in the second one is not ideal (see latest comments from Pedro), it seems to be working fine. Could you please test it on Runboat and report ?
Hi @remi-filament do you have any recommendations on how to resolve this issue?