| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Purchase (purchase) • Discuss (mail) |
| Lines of code | 19 |
| Technical Name |
nz_section_delete_only |
| License | LGPL-3 |
| Website | https://www.nezam.co |
NZ Solutions Apps for Odoo
Delete Section Only — Odoo 19
Delete section or subsection lines without removing their child items on sale order lines, invoice lines, and purchase order lines. This module adds a **Delete Section Only** option that removes only the section header while keeping all product lines, notes, and nested subsections intact.
What does this module provide?
By default in Odoo 19, deleting a section or subsection on a sale order line, invoice line, or purchase order line also deletes all items under it. This module adds a Delete Section Only option to the section menu. With this option, only the section or subsection header is removed; product lines, notes, and nested subsections remain in place.
KEY HIGHLIGHTS
Delete Section Only
Adds a new 'Delete Section Only' option that removes only the section header while preserving all child items, product lines, and nested subsections.
Preserves Child Items
When using 'Delete Section Only', all product lines, notes, and nested subsections under the section remain intact and are not deleted.
Works on All Line Types
The feature works seamlessly on sale order lines, invoice lines, and purchase order lines, providing consistent behavior across all document types.
Handles Nested Sections
Supports nested subsections — deleting a parent section keeps all nested subsections and their contents in place with proper hierarchy.
Zero Configuration
Install the module and the 'Delete Section Only' option appears immediately. No settings or configuration required — works out of the box.
Compatible with All Editions
The module is compatible with Odoo 19 Community and Enterprise on all deployment modes: On-Premise, Odoo Online, and Odoo.sh.
1) Standard Delete Behavior
The standard Delete option removes the entire section along with all its child items, product lines, and nested subsections.

2) Result of Standard Delete
After using the standard Delete, the section and all its contents are completely removed from the document.

3) Module Installation
Simply install the module from the Apps menu. No additional configuration or settings are required — the 'Delete Section Only' option will appear automatically.

4) Delete Section Only Option
The new 'Delete Section Only' option appears in the section menu, allowing you to remove just the section header without affecting its contents.

5) Result of Delete Section Only
After using 'Delete Section Only', the section header is removed while all child items, product lines, and nested subsections remain in place.

How does Delete Section Only work?
After installing the module, a new 'Delete Section Only' option appears in the section menu. When selected, it removes only the section header while keeping all child items, product lines, and nested subsections intact.
What happens to the child items when I use Delete Section Only?
All child items, product lines, notes, and nested subsections remain in place. Only the section header is removed, and the child items are promoted to the parent level.
Does this work on nested subsections?
Yes. The module fully supports nested subsections. Deleting a parent section keeps all nested subsections and their contents in place with proper hierarchy.
On which document types does this feature work?
The 'Delete Section Only' feature works on sale order lines, invoice lines, and purchase order lines, providing consistent behavior across all these document types.
Do I need to configure anything?
No. The module works out of the box. Just install it and the 'Delete Section Only' option will appear immediately in the section menus.
Will this affect the standard Delete behavior?
No. The standard Delete option continues to work as before, removing the entire section with all its contents. The new option is an additional feature.
Is this module compatible with custom modules?
Yes. The module works with all standard and custom modules in your Odoo system that use standard line structures for sections and subsections.
Which Odoo editions and deployment modes are supported?
The module is compatible with Odoo 19 Community and Enterprise on On-Premise, Odoo Online, and Odoo.sh. It depends on the Sale, Purchase, and Account modules.
Version 19.0.1.0.0
Initial Release- Adds 'Delete Section Only' option to section menus
- Preserves all child items when deleting section header
- Works on sale order lines, invoice lines, and purchase order lines
- Supports nested subsections with proper hierarchy
- Zero configuration — works out of the box
- Lightweight with minimal performance impact
- Compatible with standard and custom modules
- Consistent behavior across all supported document types
- Odoo 19 Community & Enterprise support
- Works on On-Premise, Odoo Online, and Odoo.sh
Please log in to comment on this module