📋 Overview
The Delete Posted Invoice module allows authorized users to delete posted/confirmed in invoices in Odoo. By default, Odoo prevents this action to maintain data integrity and accounting accuracy. This module provides controlled access to delete functionality through a security group.
Use Cases: Correcting mistakes, removing test data, or handling exceptional circumstances where cancellation is not sufficient.
🚀 Key Features
🔒 Security Controlled
Access restricted to users with "Delete Posted Invoices" permission only.
🔴 Delete Button
Prominent red delete button appears on invoice form for authorized users.
✅ Confirmation Dialog
Requires explicit confirmation before deletion to prevent accidents.
📄 All Invoice Types
Works with customer invoices, vendor bills, and credit notes.
🧹 Clean Deletion
Properly handles related records and journal entries during deletion.
⚡ Simple Integration
Easy to install and configure - no complex setup required.
📦 Installation
- Download and extract the module to your Odoo addons directory
- Restart your Odoo server or update the apps list
- Go to Apps menu and search for "Delete Posted Invoice"
- Click the "Install" button
- Configure user permissions (see Configuration section)
⚙️ Configuration
After installation, you must grant permission to specific users:
- Navigate to Settings → Users & Companies → Users
- Select a user who needs delete permission
- Click "Edit" and go to the "Access Rights" tab
- Under "Accounting" section, enable "Delete Posted Invoices"
- Save the user
- User must log out and log back in for changes to take effect
💡 Usage
Deleting a Posted Invoice
- Open the invoice you want to delete (must be an authorized user)
- You'll see a red "Delete" button in the form header
- Click the "Delete" button
- A confirmation dialog will appear: "Are you sure you want to delete this invoice? This action cannot be undone!"
- Click "OK" to confirm deletion
- The invoice and related journal entries will be permanently removed
Button Visibility
- Authorized Users: See delete button on all invoices (except cancelled)
- Unauthorized Users: Delete button is hidden
- Cancelled Invoices: Delete button hidden (can be deleted normally)
🚨 Important Warnings & Considerations
- Permanent Deletion: Deleted invoices cannot be recovered - ensure backups!
- Legal Compliance: May violate accounting regulations in some jurisdictions
- Audit Trail: Deletion removes records completely - no audit trail
- Payments & Reconciliation: Invoices with payments may need special handling
- Financial Reports: Deletion affects historical financial data
- Alternative: Consider using "Cancel" or "Reset to Draft" when possible
✔️ Best Practices
- Always maintain regular database backups before deleting posted invoices
- Document the reason for deletion for internal audit purposes
- Use cancellation instead of deletion when legally acceptable
- Restrict permission to the minimum number of trusted users
- Train authorized users on proper usage and implications
- Review your local accounting regulations before use
- Consider data retention policies and compliance requirements
🛠️ Troubleshooting
Delete Button Not Visible
- Verify user has "Delete Posted Invoices" permission assigned
- Log out and log back in to refresh permissions
- Check module is installed and up to date
Invoice with Payments Cannot Be Deleted
- Unreconcile payments from the invoice first
- Handle payment records separately
- Contact support if issues persist
🏷️ Technical Details
Dependencies: account
Version: 19.0.1.0.0
Security: Group-based access control
📞 Support
For support, customization requests, or any questions about this module, please contact us:
ERP Labz
Website: https://erplabz.com
Please log in to comment on this module