An office fit-out quotation: four sections, two subsections, some forty lines. To correct the last section, you scroll through everything else. Many people then look for a way to collapse sections in Odoo, find “Hide Composition” in the menu of the section, and tick it. Bad idea: this option folds nothing on screen, and it changes the quotation the customer receives. Here is what the standard options really do, and the free module we wrote to fold sections on screen only.
1. What “Hide Composition” and “Hide Prices” really do
In an Odoo 19 and 20 quotation or invoice, the menu of a section row (the three dots at the end of the row) offers Hide Composition and Hide Prices (“Masquer la structure” and “Masquer les prix” in French). We read what they do in the code of Odoo:
- they are two fields saved on the section row
(
collapse_compositionandcollapse_prices): they are part of the document; - “Hide Composition” removes the lines of the section from the PDF and the customer portal: the customer only sees a summary row there, the title of the section and its amount;
- “Hide Prices” keeps the lines on the PDF and the portal, but without their prices;
- both options are carried from the quotation to the invoice created from the order;
- in the form, they hide nothing: the lines concerned are simply greyed out.
💡 Key takeaway
“Hide Composition” and “Hide Prices” decide what the customer sees. They are good options to present a package price, not to get a clearer view on screen.
2. What is really missing: folding on screen
Odoo can group lines in sections and subsections and show a subtotal for each of them. But on screen, every section always stays open. The standard has no button to fold a section in the form, nor to fold everything at once.
Misusing “Hide Composition” therefore has a price: you think you are tidying your screen, and you send the customer a quotation without the detail of the lines. The mistake only shows on the PDF.
💡 Key takeaway
What is needed is a fold that belongs only to the screen of the person working on the quotation, without changing anything in the document.
3. The solution: Collapse Line Sections
With the Collapse Line Sections module, every section and subsection row carries a chevron at the start of its title. One click folds the section, a second one unfolds it. A button in the header of the lines folds all the sections, or unfolds them all: the quotation becomes its own table of contents.
- a folded section hides its subsections too; unfolded, each subsection gets its own state back;
- the subtotal of the section and the totals of the document stay displayed;
- adding or editing a line in a folded section unfolds it by itself;
- the state is kept in your browser, document by document: reopen the quotation the next day, it is still folded;
- it works on quotations and sales orders, invoices and vendor bills, and on the other lists of lines with sections built on the same Odoo component (purchase orders, quotation templates);
- locked and posted documents can be folded too.
Above all, nothing is saved: no field, no write, no server call to fold. The PDF, the portal and the e-mails do not change, and each user folds what they like without disturbing their colleagues. The module and the standard options can therefore be used together.
💡 Key takeaway
The cost does not depend on the size of the quotation: when the lines do not fit on one page, they are loaded once before folding, so that a section never stays half open.
4. The limits, stated
A folded section can no longer be dragged with the mouse. Moving it alone would leave its hidden lines behind. “Move Up” and “Move Down” in its menu move the section with all its lines; drag and drop comes back as soon as it is unfolded.
Document not saved yet. The state is kept per document: as long as the quotation has not been saved once, there is nothing to find it back by, and the fold is lost when you leave the screen.
Lines added from the catalog. Products added from the catalog into a folded section stay hidden there: unfold the section to see them.
💡 Key takeaway
8 Python tests and 16 interface tests, green on Odoo 19 and 20 Community; rendering checked on Odoo 19 and 20 Enterprise.
⚔️ The Match: standard options vs Collapse Line Sections
| Criterion | “Hide Composition” / “Hide Prices” | With Collapse Line Sections |
|---|---|---|
| Folds the lines on screen | No, greys them out | Yes, in one click |
| Changes the PDF and the portal | Yes, that is their purpose | Never |
| Saved on the document | Yes, for everyone | No, specific to each user |
| Fold everything at once | No | Yes |
Checked in the code of Odoo 19 and 20, Community and Enterprise, and on a demo quotation with four sections and two subsections.
The Verdict: fold for yourself, present for the customer
The module is free, under the LGPL-3 licence, for Odoo 19 and 20:
Collapse Line Sections,
also on
the Odoo Apps Store.
Are your quotations long to build or to review? We look with you at how they are split during
an
audit of your Odoo,
and we train your sales team to put them together quickly during an
Odoo training.
An office fit-out quotation: four sections, two subsections, some forty lines. To correct the last section, you scroll through everything else. Many people then look for a way to collapse sections in Odoo, find “Hide Composition” in the menu of the section, and tick it. Bad idea: this option folds nothing on screen, and it changes the quotation the customer receives. Here is what the standard options really do, and the free module we wrote to fold sections on screen only.
1. What “Hide Composition” and “Hide Prices” really do
In an Odoo 19 and 20 quotation or invoice, the menu of a section row (the three dots at the end of the row) offers Hide Composition and Hide Prices (“Masquer la structure” and “Masquer les prix” in French). We read what they do in the code of Odoo:
- they are two fields saved on the section row
(
collapse_compositionandcollapse_prices): they are part of the document; - “Hide Composition” removes the lines of the section from the PDF and the customer portal: the customer only sees a summary row there, the title of the section and its amount;
- “Hide Prices” keeps the lines on the PDF and the portal, but without their prices;
- both options are carried from the quotation to the invoice created from the order;
- in the form, they hide nothing: the lines concerned are simply greyed out.
💡 Key takeaway
“Hide Composition” and “Hide Prices” decide what the customer sees. They are good options to present a package price, not to get a clearer view on screen.
2. What is really missing: folding on screen
Odoo can group lines in sections and subsections and show a subtotal for each of them. But on screen, every section always stays open. The standard has no button to fold a section in the form, nor to fold everything at once.
Misusing “Hide Composition” therefore has a price: you think you are tidying your screen, and you send the customer a quotation without the detail of the lines. The mistake only shows on the PDF.
💡 Key takeaway
What is needed is a fold that belongs only to the screen of the person working on the quotation, without changing anything in the document.
3. The solution: Collapse Line Sections
With the Collapse Line Sections module, every section and subsection row carries a chevron at the start of its title. One click folds the section, a second one unfolds it. A button in the header of the lines folds all the sections, or unfolds them all: the quotation becomes its own table of contents.
- a folded section hides its subsections too; unfolded, each subsection gets its own state back;
- the subtotal of the section and the totals of the document stay displayed;
- adding or editing a line in a folded section unfolds it by itself;
- the state is kept in your browser, document by document: reopen the quotation the next day, it is still folded;
- it works on quotations and sales orders, invoices and vendor bills, and on the other lists of lines with sections built on the same Odoo component (purchase orders, quotation templates);
- locked and posted documents can be folded too.
Above all, nothing is saved: no field, no write, no server call to fold. The PDF, the portal and the e-mails do not change, and each user folds what they like without disturbing their colleagues. The module and the standard options can therefore be used together.
💡 Key takeaway
The cost does not depend on the size of the quotation: when the lines do not fit on one page, they are loaded once before folding, so that a section never stays half open.
4. The limits, stated
A folded section can no longer be dragged with the mouse. Moving it alone would leave its hidden lines behind. “Move Up” and “Move Down” in its menu move the section with all its lines; drag and drop comes back as soon as it is unfolded.
Document not saved yet. The state is kept per document: as long as the quotation has not been saved once, there is nothing to find it back by, and the fold is lost when you leave the screen.
Lines added from the catalog. Products added from the catalog into a folded section stay hidden there: unfold the section to see them.
💡 Key takeaway
8 Python tests and 16 interface tests, green on Odoo 19 and 20 Community; rendering checked on Odoo 19 and 20 Enterprise.
⚔️ The Match: standard options vs Collapse Line Sections
| Criterion | “Hide Composition” / “Hide Prices” | With Collapse Line Sections |
|---|---|---|
| Folds the lines on screen | No, greys them out | Yes, in one click |
| Changes the PDF and the portal | Yes, that is their purpose | Never |
| Saved on the document | Yes, for everyone | No, specific to each user |
| Fold everything at once | No | Yes |
Checked in the code of Odoo 19 and 20, Community and Enterprise, and on a demo quotation with four sections and two subsections.
The Verdict: fold for yourself, present for the customer
The module is free, under the LGPL-3 licence, for Odoo 19 and 20:
Collapse Line Sections,
also on
the Odoo Apps Store.
Are your quotations long to build or to review? We look with you at how they are split during
an
audit of your Odoo,
and we train your sales team to put them together quickly during an
Odoo training.