Repository
OCA/account-invoicing · module folder · Try on Runboat
Module version
1.0.0
Category
Accounting/Accounting
Folder size
0.07 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/account-invoicing
Last tracking update
2026-08-07 09:06:23
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
Maksym Yankin, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
None
Description
This module adds a multiplier option to fixed-amount taxes, controlling how
the line quantity is used in the tax computation.

By default, Odoo computes fixed taxes as `line quantity × amount`. This
module allows choosing between four multiplier modes:

- **No Multiplier**: the amount is applied once per line, regardless of
  quantity. Useful for per-document fees (e.g., stamp duties).
- **Quantity (default)**: standard behavior, equivalent to
  `line quantity × amount`.
- **Product Quantity**: the line quantity is first converted to the
  product's unit of measure before multiplying. This is useful when the tax
  is defined per unit of the product, but the line may use a different UoM
  (e.g., selling in dozens while the product is defined in units).
- **Product Weight**: multiplied by the total weight of the products on the
  line (product quantity × product weight). Useful for weight-based fees
  such as environmental levies.

This module is compatible with `account_tax_fixed_amount_currency` without
depending on it. When both modules are installed, the selected multiplier
changes the fixed-tax quantity first, and the currency module can then convert
the resulting fixed amount to the document currency through the normal tax
computation chain.

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_tax_form account.tax form Inherits account.view_tax_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (1)
  • fixed_amount_multiplier Selection
    default='quantity' help="Controls how the quantity is used for fixed-amount taxes:\n- No Multiplier: the amount is applied once per line.\n- Quantity (default): multiplied by the line quantity, regardless of the unit of measure.\n- Product Quantity: the line quantity is converted to the product's unit of measure before multiplying.\n- Product Weight: multiplied by the total weight (product quantity × product weight)." required=True string='Multiplier' args: [('none', 'No Multiplier'), ('quantity', 'Quantity (default)'), ('product_quantity', 'Product Quantity'), ('product_weight', 'Product Weight')]
Public methods (0)

No public methods.

New fields (1)
  • uom_factor Float
    related='uom_id.factor'
Public methods (0)

No public methods.