Collapse Sections - Expand Collapse Section Lines, Section Subtotal, Copy Paste Lines
by Modvanta https://modvantaapps.tech/odoo-apps/section-collapse/
Odoo
$ 11.97
Collapse Sections, Expand Collapse Section Lines, Section Subtotal and Copy Paste Lines for Odoo 19
Long quotations, orders, invoices and bills become easy to read and to build. Collapse a section or collapse all, see the line count and subtotal of every section, insert a line exactly where it belongs, duplicate a line, and copy lines from one document into another - even from a quotation into a purchase order - with Ctrl+C and Ctrl+V.
Collapse SectionExpand Collapse SectionsExpand All / Collapse AllSection SubtotalLine CountFold Long NotesInsert Line Above or BelowDuplicate LineCopy Paste LinesCtrl+C / Ctrl+VQuotation to Purchase OrderInvoices and BillsRemembered per User5 document types |
1 module, no add-ons |
68 automated tests |
$12 one-time price |
A 60-line quotation is a wall of rows
Odoo lets you organise lines in sections, but in the form every line stays open, new lines are added at the bottom, and the only way to reuse lines from another document is to type them again. This module folds sections away, inserts lines where you need them and copies lines between documents.
Key Features
Collapse, insert and copy paste on every line list with sections.
COLLAPSE AND EXPAND SECTIONS A caret on every section and subsection of quotations, sales orders, purchase orders, customer invoices and vendor bills folds its lines away. Collapsing a section also folds its subsections. | EXPAND ALL / COLLAPSE ALL A small toolbar above the lines opens or folds every section at once and tells you how many lines, sections and collapsed sections the document has. | REMEMBERED PER USER Each user finds every section as they left it, also after a reload or on another computer. Or open every document fully expanded or fully collapsed - per company, with a personal choice in My Preferences. |
SECTION SUBTOTAL AND LINE COUNT A badge on every section shows how many lines it holds. Section subtotals, which Odoo shows on quotations and invoices, are added to purchase orders and RFQs too. | INSERT A LINE ANYWHERE The line menu inserts a product line above or below any line, a section above it or a note below it - no more adding at the bottom and dragging up. | DUPLICATE A SINGLE LINE Copy one line in place with its product, quantity, description and price. Odoo only duplicates whole sections. |
COPY LINES Copy one line, a whole section from the section menu, or tick any lines with Select lines and press Copy or Ctrl+C. Works on confirmed orders and posted invoices too. | PASTE INTO ANY DOCUMENT Open another quotation, order, invoice or bill and paste at the end, below a line or at the top of a section (Ctrl+V). The clipboard is kept on the server, so a reload or another tab does not lose it. | SMART PRICES ON PASTE Between documents of the same side prices are kept; a sales line pasted into a purchase order is priced by the purchase order, like a line added by hand. Taxes always come from the target document. |
FOLD LONG NOTES Long notes show their first line until you unfold them, so terms and remarks do not push the lines off the screen. | WORKS ON CONFIRMED AND POSTED DOCUMENTS Collapse and copy work on confirmed orders and posted invoices; insert and paste only where the document can be edited. | MULTI-COMPANY Settings are per company; states and clipboards are per user. |
How it compares
Section collapse and copy paste modules on the Odoo Apps Store vs this module.
| Feature | Typical modules | This module |
| Collapse and expand sections in the form | Yes | Yes |
| Subsections fold with their section | Some | Yes |
| Expand all / collapse all | Rare | Yes |
| State remembered per user, across reloads and devices | Rare | Yes |
| Line count on sections | Some | Yes |
| Section subtotals on purchase orders | Rare | Yes |
| Insert a line above or below any line | Some | Yes |
| Duplicate a single line | Rare | Yes |
| Copy paste lines between documents, Ctrl+C / Ctrl+V | Some | Yes |
| Paste from a quotation into a purchase order or bill, priced by the target | Rare | Yes |
| Sales, purchases, invoices and bills in one module | Rare | Yes |
| Price | Typically more | $12 one-time |
How it works
1 | Install Install the module. Every line list with sections gets the caret, the line count and the toolbar; nothing else changes. |
2 | Fold what you do not need Click a caret, or Collapse all. Next time you open the document, each section is as you left it. |
3 | Insert, duplicate, copy Hover a line and open its menu, or use the section menu. Tick lines with Select lines to copy several at once. |
4 | Paste anywhere Open the target document and press Paste (or Ctrl+V). Choose how prices are pasted in Settings -> Section Lines. |
Screenshots
Sections with line counts
A quotation with sections and subsections. Every section shows its line count; the toolbar sums up the document.

One section collapsed
The Furniture section and its two subsections are folded into one row with its subtotal.

Collapse all
The whole quotation folded to its sections and subtotals - and it opens like this again for this user.

Line tools
Insert a line above or below, a section above, a note below, duplicate or copy the line.

Section menu
Collapse, insert a section above and copy the whole section, next to the Odoo section actions.

Select lines and copy
Two sections ticked and copied. The Paste button shows what is on the clipboard.

Pasted into a purchase order
The quotation sections pasted into an RFQ: products, quantities and notes kept, prices taken from the purchase side.

Section subtotals on purchase orders
Every purchase section shows its line count and subtotal.

Settings
How documents open, line counts, folded notes, line tools and how prices are pasted - per company.

My Preferences
Each user chooses how documents open and can forget the remembered sections.

| Odoo 19 Community | Sales, Purchase, Invoicing | Odoo.sh and On Premise | Multi-Company |
Frequently asked questions
Does Odoo 19 not already collapse sections?
Odoo 19 has sections and subsections with subtotals on quotations and invoices, and Hide Prices / Hide Composition that fold a section on the printed PDF and the customer portal. It does not fold sections in the backend form, has no line count, no subtotals on purchase orders, no insert-anywhere and no copy paste of lines. This module adds exactly that and keeps the Odoo features as they are.
Which documents are supported?
Quotations and sales orders, purchase orders and RFQs, customer invoices, credit notes and vendor bills - every line list that uses Odoo sections and notes.
What is copied, and what happens to taxes?
Sections, subsections, notes, products, quantities, units, descriptions, analytic distributions and (by setting) unit prices and discounts. Taxes are always set by the target document, so sales taxes never end up on a bill. Combo items and down payments are not copied; products that cannot be bought or sold on the target side are skipped with a message.
Is the collapsed state shared with my colleagues?
No. Each user has their own state. The printed PDF is not affected: it still follows the Odoo Hide Prices / Hide Composition options.
What does it need?
Sales and Purchase (with Invoicing). Built and tested on Odoo 19 Community with 68 automated tests, including browser tests of every button.
Long documents, easy to read and quick to build
One-time price, free updates for Odoo 19, support by email.
Buy Now - $12
Hire Us for Odoo Work
EMAIL modvantaapps@gmail.com |
AUTHOR Modvanta |
INCLUDED Updates and email support |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Purchase (purchase)
• Invoicing (account) • Discuss (mail) |
| Lines of code | 1430 |
| Technical Name |
mdv_section_collapse |
| License | OPL-1 |
| Website | https://modvantaapps.tech/odoo-apps/section-collapse/ |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module