Restrict Invoice created from SO
Restricts editing the Product, Quantity and Unit Price columns for invoice lines that originated in Sales Orders.
auto_awesome What this module does
AI-generated from the code · Odoo 15.0On customer invoices, the Product, Quantity and Unit Price columns become read-only for any invoice line that came from a Sales Order, so those values can no longer be changed by hand.
This module changes the customer invoice form so that lines created from a Sales Order are protected against manual editing.
When you open a customer invoice (the account.move form), the invoice lines list normally lets you pick a product, change the quantity and change the unit price. With this module installed, each line that is linked to a Sales Order line is shown with those three columns locked: the Product, the Quantity and the Unit Price can no longer be typed over.
- The lock applies only to lines that really come from a Sales Order; lines added manually on the invoice stay fully editable.
- The rule is applied automatically based on the link between the invoice line and the sales order line, so no user action is needed.
- It affects the invoice lines table on the customer invoice screen.
The module does not add any new menu, button, report or scheduled action. It only extends the standard invoice form and relies on the Sales Order link already stored on the invoice line. It works together with the Sales and Invoicing apps (sale_management).
Depends on
Text generated by AI (DeepSeek) from reading the Odoo 15.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: 2 confirmed, 7 with no information of 9 versions.
Sources · Odoo 15.0
Confirmed on 2026-11-03 in branch 15.0 of OCA/account-invoicing.
terminal Installation and usage
OCA documentation · Odoo 15.0Usage
Source · Odoo 15.0On a Sales Order, an Invoice can be generated.
On the Invoice generated from a Sales Orders, for the lines generated from the SO, the Product, Quantity and Unit Price fields should not be editable.
Changing these requires deleting (or cancelling) the draft invoice, correcting the data in the source Sales Order, and then redoing the Invoice creation.
Note that other columns can be edited, such as taxes or accounts, and that additional lines could be manually added and fully editable.
No verified information in OCA: Installation, Configuration.
Installation 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.