contract icon indicating copy to clipboard operation
contract copied to clipboard

[16.0] BUG? last date invoiced ?

Open ygol opened this issue 8 months ago • 2 comments

Module

contract

Describe the bug

Last Date Invoiced is not correctly set on all the lines. Image

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:

  1. create a new contract. post-paid monthly.
  2. set date start = 01/01/2025 and date of next invoice 02/01/2025
  3. 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, ...)

ygol avatar Apr 04 '25 08:04 ygol

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 ?

remi-filament avatar Apr 07 '25 15:04 remi-filament

Hi @remi-filament do you have any recommendations on how to resolve this issue?

juherr avatar Jun 20 '25 08:06 juherr