OdooWiki OCA HUB

Contract Last Date Update

contract_update_last_date_invoiced folder_open OCA/contract open_in_new
Uncategorised License: AGPL-3

This module allows users to update the last date invoiced (e.g.: deletion of invoices).

auto_awesome What this module does

AI-generated from the code · Odoo 19.0

Lets authorized users manually correct the last invoiced date and the next invoice date on a contract line, for example after invoices were deleted. A refresh button on the contract line opens a small pop-up to set both dates.

When invoices are deleted, the invoicing dates stored on a contract line can become wrong. This module adds a way to fix them by hand.

On the contract line form, the 'Last Date Invoiced' field is now visible to all users (the original restriction is removed) and a small refresh icon button appears next to it. Pressing that button opens a pop-up window titled 'Update Invoice Dates'.

In the pop-up you see the contract line, the last date invoiced and the date of the next invoice, pre-filled with the current values. You can change them and confirm with the 'Update Invoice Dates' button, or cancel. Confirming writes both dates back onto the contract line.

Access is controlled by a dedicated group, 'Contract: Can update last date invoiced'; only members of that group see the refresh button and can use the wizard. The administrator is added to this group by default.

The module also makes the list of fixed contract lines on the contract form directly editable, so dates can be adjusted in place. It touches the contract line and contract models and adds a new wizard model for the pop-up.

Depends on

Models and fields (2)
  • contract.line · extends an existing model
  • contract.update.last.date.invoiced · new modelcontract_line_id (Contract Line), last_date_invoiced, recurring_next_date (Date of Next Invoice)

Text generated by AI (DeepSeek) from reading the Odoo 19.0 code on GitHub; it may contain mistakes, so check the code before deciding. View the code on GitHub

Availability by version

Reviewed: 2026-11-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

Confirmation status: 5 confirmed, 4 with no information of 9 versions.

terminal Installation and usage

OCA documentation · Odoo 19.0
  • Go to Invoicing \> Customers \> Customer Contracts
  • Select a contract and click on contract line, in the pop-up is a button Update Last Date Invoiced
  • Fill in the last date invoiced with the desired value

Note: Make sure the user has the permissions "Contract: Can update last date invoiced".

No verified information in OCA: Installation, Configuration.

info

Data imported from GitHub: this sheet reflects the latest catalog review, not a live lookup. Always check the module documentation and staging before installing in production.