| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 25 |
| Technical Name |
account_delete_all_invoice_lines |
| License | OPL-1 |
| Website | https://www.2bit.ch/ |
| Versions | 18.0 |
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 25 |
| Technical Name |
account_delete_all_invoice_lines |
| License | OPL-1 |
| Website | https://www.2bit.ch/ |
| Versions | 18.0 |
Delete All Invoice Lines
Remove all lines from a draft invoice with one action.
Developed by 2BIT Digital GmbH — your Swiss Odoo partner for payroll, accounting, eCommerce, manufacturing and custom business solutions.
Overview
Accounting users can clear all invoice lines from a draft invoice or vendor bill in one step instead of removing each line individually.
The module adds a dedicated Delete all lines button on draft account moves. The invoice header with customer, date, and journal information is preserved. On confirmed invoices the action is blocked to protect posted entries.
Business Impact
Why You Need This Module
Draft invoices sometimes need to be rebuilt from scratch — for example when the wrong lines were imported or when the document needs to be repurposed for a different order. Removing many lines one by one is slow and error-prone.
Which Problems It Solves
- Time-consuming manual deletion of many invoice lines
- Risk of leaving unwanted draft lines behind
- Unnecessary rework when a draft invoice needs a complete line reset
Key Benefits For Billing Teams
- One click to clear all invoice lines on a draft document
- Invoice header preserved after lines are removed
- Action blocked on confirmed invoices — no risk of deleting posted entries
How It Works
- Open a draft customer invoice or vendor bill.
- Click the Delete all lines button in the action menu.
- A confirmation dialog appears — confirm to proceed.
- All invoice lines are removed. The document header remains intact.
- On confirmed (posted) invoices the action is blocked with a clear error message.
Screenshots
Invoice Form with “Delete all lines” Button
The invoice form shows the Delete all lines button in the action menu on draft invoices.
Invoice After Lines Are Deleted
After confirming the action all invoice lines are removed. The document header with customer, date, and journal is preserved.
Confirmation Dialog
Before deleting, Odoo shows a confirmation dialog to prevent accidental line removal.
Action Blocked on Confirmed Invoices
Attempting to delete lines from a confirmed (posted) invoice triggers a clear error message. Posted entries are never affected.
Installation
- Mount this module as an Odoo custom addon.
- Update the apps list in Odoo.
- Install the module from the Apps menu.
Dependencies
- Odoo modules:
base_setup,account - Python dependencies: none
Need Swiss Odoo Experts?
Whether it's payroll, accounting, or custom development — 2BIT Digital GmbH helps Swiss companies get the most out of Odoo.
Have questions or need customization? Just reach out — we’re happy to help.
Contact 2BIT Digital GmbHOdoo 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