Contract Invoicing of Pending Sales Orders
This modules allows to include on the same invoice than the recurring invoice contract, all the pending to invoice sales orders that you have with the same analytic account.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Lets you add pending sales orders to a recurring contract invoice when they share the same analytic account, either merged into the contract invoice or as separate invoices.
When a contract is set to generate invoices, two new options appear on the contract form: "Invoice Pending Sales Orders" and, once that is ticked, "Include the sales order lines in the contract invoice instead of creating separate invoices". These options are only shown for sale-type contracts that generate invoices.
When the contract's recurring invoice is created, Odoo looks for sales orders that are still waiting to be invoiced, belong to the same commercial partner, use the contract's analytic account, and were ordered on or before the contract's next invoice date. Only order lines that are actually invoiceable and fully assigned to that analytic account are taken into account.
- If the merge option is ticked and the contract invoice already exists, the sales order lines are added directly to that invoice.
- Otherwise, separate invoices are created for those sales orders.
The module touches contract.contract and sale.order, and adds fields to the contract form view. It does not add menus or reports.
Depends on
Models and fields (2)
- sale.order · extends an existing model
- contract.contract · extends an existing modelinvoicing_sales (Invoice Pending Sales Orders), invoicing_sales_into_contract
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: 4 confirmed, 5 with no information of 9 versions.
Sources · Odoo 17.0
Confirmed on 2026-11-03 in branch 17.0 of OCA/contract.
terminal Installation and usage
OCA documentation · Odoo 18.0Usage
Source · Odoo 18.0To use this module, you need to:
- Go to Invoicing \> Customers \> Customers Contracts and select or create a new contract.
- Check Generate recurring invoices automatically.
- Mark the check "Invoice Pending Sales Orders".
- On each invoicing, the system will check if there are any pending Sales Orders with the same Analytic Account on the lines and will append it to the invoice being generated.
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.