| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Invoicing (account)
• Discuss (mail) |
| Lines of code | 83 |
| Technical Name |
discount_amt_total |
| License | AGPL-3 |
Total Discount Amount
This module enhances Odoo 18 accounting, Sales, Purchase documents by clearly displaying the Total Discount Amount directly in the Totals section.
By default, Odoo applies discounts silently at the line level. This customization improves transparency by explicitly showing how much discount has been applied on Sales, Purchase, invoices, bills, and credit notes.
How It Works (Simple Explanation)
- The system reads all line items.
- Total amount before discount is calculated.
- Total amount after discount is calculated.
- The difference is computed as Total Discount Amount.
- The discount value is added to Odoo’s tax totals data.
- The value is displayed automatically in the UI.
Usage – How to Use It
- Install the Total Discount Amount module.
- Open any Sale, Purchase, Customer Invoice, Vendor Bill, or Credit Note.
- Add products with line-level discounts.
- Scroll to the Tax Totals section.
- View the automatically calculated Discount Amount.
- If document currency differs, company currency discount is also shown.
Key Benefits
- Clear visibility of total discount
- Improves Amount transparency
- Multi-currency discount support
- No impact on accounting entries
- Works with all tax configurations
- Upgrade-safe implementation
Complete Flow Steps (Behind the Scenes)
- User opens an accounting document.
- Odoo prepares tax totals using invoice base lines.
- Total before discount is calculated.
- Total after discount is calculated.
- Discount amount is derived.
- Currency conversion is applied if needed.
- QWeb template renders the discount in the UI.
🔐 Security & Control
- No New fields
- No sensitive data stored
- No external API calls
- No database structure changes
- Uses standard Odoo inheritance
- Safe for production environments
Screenshots
How It Works (Simple Explanation)
Usage – How to Use It
Key Benefits
Please log in to comment on this module