Contract Layout Category Hide Detail
- Brings the section hide-detail options of sale_layout_category_hide_detail to contracts.
- On each contract section you can:
- hide the section's line details,
- show or hide the section subtotal,
- hide the individual line amounts.
- These options drive:
- what is printed on the contract report,
- what is shown on the customer portal,
- the sections and settings carried over to the invoices generated from the contract.
- When a contract is created from a sale order (through product_contract and product_contract_section), the section settings defined on the quotation are propagated to the contract.
auto_awesome What this module does
AI-generated from the code · Odoo 18.0Lets you hide the detail lines, subtotals and line amounts of sections on contracts, their printed reports, the customer portal and the invoices generated from them.
This module adds display options to each section of a contract so you can control how much information customers see. On a contract, each section line now shows small eye, envelope, plus/minus and dollar icons that let you hide the section's line details, show or hide the section subtotal, show or hide the overall subtotal, and hide the individual line amounts.
These settings are also available on contract templates, so the same presentation rules can be reused. When a contract is created from a sale order, the section settings chosen on the quotation are carried over to the contract automatically.
The choices drive three places: - the printed contract report, - the customer portal page for the contract, - the invoices generated from the contract, where the same hide/show options are applied to the invoice lines.
Business rules are automatic: if details are hidden, the product and note rows of that section are not shown, and the section subtotal can still be displayed as a collapsed summary. If details are shown, the subtotal and line amounts follow the section's own switches. The module touches contract.line, contract.template.line and sale.order.line, and adds fields to contract template lines.
Models and fields (3)
- contract.line · extends an existing model
- sale.order.line · extends an existing model
- contract.template.line · extends an existing modelshow_details, show_subtotal, show_line_amount, show_section_subtotal
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 12.0
Confirmed on 2026-11-03 in branch 12.0 of OCA/contract.
terminal Installation and usage
OCA documentation · Odoo 18.0Usage
Source · Odoo 18.0- Open a contract and add a section line to its recurring items.
- On the section row, use the icons to toggle:
- Details: hide or show the lines that belong to the section,
- Section subtotal: when the details are hidden, show or hide the section subtotal,
- Subtotal: when the details are shown, show or hide the section subtotal,
- Line amount: hide or show the unit price and subtotal of each line.
- Check the result on:
- the contract PDF report,
- the contract in the customer portal,
- the recurring invoices generated from the contract (sections and settings are copied over).
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.