OCA/contract

[15.0] You can't have the end date before the date of last invoice for the contract line

Closed this issue · 2 comments

Module

contract

Describe the bug

when trying to stop a contract line in odoo 15.0 I get the following error:
You can't have the end date before the date of last invoice for the contract line 'product name'

To Reproduce

Affected versions: 15.0

Steps to reproduce the behavior:

  1. Create new customer contract with multiple products with recurrance at line level selected.
  2. Try to stop a line in the contract
  3. Receive error message.

Expected behavior
Line should show as stopped and not be included on next invoice.

Additional context
OS: Fedora 36
Python Version: 3.10.11
Odoo Version: 15

iTecan commented

Hello,

this error you are indicating is not a bug as such, it is correct that you cannot finalise a contract at a date prior to an invoice already issued.

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.