- Base product_contract only copies the order lines whose product is a contract product, so section and note lines are lost when a contract is generated from a sale order.
- This module propagates the sale order's section and note lines to the generated contract:
- each display line is attached to the contract(s) of the product lines placed beneath it,
- a section shared by several contracts is repeated in each of them,
- the original ordering is preserved.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0When you generate a contract from a sale order, this module keeps the section headings and notes from the order and copies them into the contract, so the contract keeps the same layout as the order.
Normally, when a contract is created from a sale order, only the product lines that are contract products are copied; section headings and notes are lost. This module fixes that.
- When you use the button that creates contracts from a sale order, the section and note lines are also recreated on the generated contract(s).
- A section heading is copied to every contract that has products under it, so if a section covers products belonging to several contracts, the heading appears in each of them.
- A note is copied to the contract of the product line just above it.
- The original order of lines is kept, so the contract looks like the sale order.
- If the contract already contains the same section or note (for example when an upsell or downsell order repeats it), it is not added again, avoiding duplicates.
The module works on sale.order and sale.order.line and creates records in contract.line. It does not add new menus or screens; it changes what happens when contracts are generated from sale orders.
Depends on
Required by other modules
Models and fields (2)
- sale.order · extends an existing model
- sale.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: 1 confirmed, 8 with no information of 9 versions.
Sources · Odoo 18.0
Confirmed on 2026-11-03 in branch 18.0 of OCA/contract.
terminal Installation and usage
OCA documentation · Odoo 18.0Usage
Source · Odoo 18.0- Create a sale order with contract products and organise its lines with sections and notes.
- Confirm the order (or use Create Contract) to generate the contract(s).
- The generated contract(s) reproduce the order's sections and notes:
- a section appears on the contract of each product it spans (up to the next section), so a section shared by several contracts is repeated in each,
- a note appears on the contract of the product line above it.
- When upselling or downselling an existing contract from a new sale order:
- a section the contract already has is not duplicated,
- a new section present on the order is added to the contract.
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.