Purchase Uninvoiced Amount Force Invoiced Line
Glue module that sets uninvoiced amount to 0 when force invoiced is enabled on purchase order lines.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0When a purchase order line is marked as force invoiced or already fully invoiced, its uninvoiced amount is automatically set to zero. This keeps the uninvoiced amount column consistent with the invoice status.
This module is a small glue module that connects two other modules: one that adds an uninvoiced amount field to purchase order lines, and one that adds a force invoiced option on purchase order lines.
- On each purchase order line, the uninvoiced amount is recalculated automatically whenever the ordered quantity, received quantity, invoiced quantity, subtotal, force invoiced flag, or invoice status changes.
- If the line is marked as force invoiced, or if its invoice status is already 'invoiced', the uninvoiced amount is set to zero.
- Otherwise, the uninvoiced amount is computed as the remaining quantity (ordered minus invoiced) multiplied by the unit price, never going below zero, and rounded to the line's currency.
This affects the purchase.order.line model. There are no new menus, screens, or reports; the change is visible directly in the purchase order line list and form views where the uninvoiced amount field is displayed. The module ensures that the uninvoiced amount shown to users matches the actual invoicing situation, avoiding confusion when a line is manually forced to be considered fully invoiced.
Models and fields (1)
- purchase.order.line · extends an existing model
Text generated by AI (DeepSeek) from reading the Odoo 18.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: 3 confirmed, 6 with no information of 9 versions.
Sources · Odoo 15.0
Confirmed on 2026-11-03 in branch 15.0 of OCA/purchase-workflow.
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.