Account Invoice - Check Updates
Natively, in odoo, it is possible to write on account invoice lines, even if the invoices are validated. It is possible via ORM, or via extra UI tools.
This module implement a check when writing on account invoice lines, to avoid such possibility.
The implementation is similar to the update_check function implemented in native odoo, for the account.move.line models.
auto_awesome What this module does
AI-generated from the code · Odoo 12.0Prevents users from changing key fields on invoice lines once the invoice is no longer in draft state. It blocks modifications to product, account, description, quantity, price, taxes, discount, and subtotal on validated invoices.
This module adds a safety check to invoice lines in Odoo. Normally, it is possible to modify invoice lines even after the invoice has been validated, either through the interface or programmatically. This module stops that.
When someone tries to change any of these fields on an invoice line: product, account, description, quantity, unit price, taxes, discount, or subtotal, the system checks whether the related invoice is still in draft state. If the invoice is not in draft (for example, it is open or paid), Odoo raises an error and refuses the change.
The check applies to the account.invoice.line model. It does not add new menus or screens; it only enforces a restriction on existing invoice lines. The error message says: 'You cannot do this modification on non draft invoice lines.'
This helps keep accounting data consistent and prevents accidental or unauthorized changes to already validated invoices. It works automatically whenever those specific fields are updated, whether from the user interface or from other parts of Odoo.
Depends on
Models and fields (1)
- account.invoice.line · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 12.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-03Confirmation status: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 12.0
Confirmed on 2026-11-03 in branch 12.0 of OCA/account-invoicing.
terminal Installation and usage
No verified informationInstallation instructions, the distribution package, dependencies and configuration steps are not shown because they have not yet been verified in the module documentation for any version.
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.