OdooWiki OCA HUB

Contract Invoicing of Pending Sales Orders

contract_sale_invoicing folder_open OCA/contract open_in_new
Contract Management License: AGPL-3

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.0

Lets 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

contractsale_management
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-03
Confirmed (verified in repository and branch) Estimated (unverified) No information

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

terminal Installation and usage

OCA documentation · Odoo 18.0

To 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.

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.