| .. | ||
| i18n | ||
| views | ||
| __init__.py | ||
| __manifest__.py | ||
| README.md | ||
Purchase Invoice Subtotal with Taxes
Description
This module adds two optional columns to purchase orders and invoices to display the subtotal both with and without taxes, regardless of the tax configuration in Odoo.
Problem
By default, Odoo only shows one subtotal column in purchase orders and invoices based on the tax configuration:
- If taxes are configured as "included in price", it shows the total with taxes
- If taxes are configured as "excluded from price", it shows the total without taxes
However, in some cases, users need to see both values at the same time for comparison or reporting purposes.
Solution
This module adds two new optional columns:
- Subtotal (No Tax): Always shows the line subtotal without taxes included
- Subtotal (Tax Incl.): Always shows the line subtotal with taxes included
These columns are available in:
- Purchase order lines
- Invoice lines (customer and vendor invoices)
Both columns are hidden by default (optional="hide") and can be shown by users as needed using the column visibility controls.
Installation
- Install the module from the Apps menu
- No additional configuration is required
Usage
After installation:
- Go to a purchase order or invoice
- In the lines view, click on the column selector (≡ icon)
- Enable "Subtotal (No Tax)" and/or "Subtotal (Tax Incl.)" columns
- Both values will be displayed regardless of your tax configuration
Technical Details
The module creates two computed fields on:
purchase.order.line:price_subtotal_no_taxandprice_subtotal_with_taxaccount.move.line:price_subtotal_no_taxandprice_subtotal_with_tax
These fields are based on the existing price_subtotal (without tax) and price_total (with tax) fields, ensuring consistency with Odoo's core calculations.
Bug Tracker
Bugs are tracked on GitHub Issues.
Credits
Contributors
- Criptomart
Maintainers
This module is maintained by the OCA.
Compatibility
- Odoo 16.0
- purchase
- account