Original definition from
- model odoo.addons.account.models.account_tax.AccountTax(env, ids, prefetch_ids)¶
- _name = account.tax¶
- type_tax_use: str¶
Determines where the tax is selectable. Note: ‘None’ means a tax can’t be used by itself, however it can still be used in a group. ‘adjustment’ is used to perform tax adjustment.
- tax_scope: str¶
Restrict the use of taxes to a type of product.
- amount_type: str¶
group: Group of Taxes
percent: Percentage of Price
division: Percentage of Price Tax Included
- Group of Taxes: The tax is a set of sub taxes.
Fixed: The tax amount stays the same whatever the price.
- Percentage of Price: The tax amount is a % of the price:
e.g 100 * (1 + 10%) = 110 (not price included) e.g 110 / (1 + 10%) = 100 (price included)
- Percentage of Price Tax Included: The tax amount is a division of the price:
e.g 180 / (1 - 10%) = 200 (not price included) e.g 200 * (1 - 10%) = 180 (price included)
- sequence: int¶
The sequence field is used to define order in which the tax lines are applied.
- price_include: bool¶
Included in Price
Check this if the price you use on the product and invoices includes this tax.
- include_base_amount: bool¶
Affect Base of Subsequent Taxes
If set, taxes with a higher sequence than this one will be affected by it, provided they accept it.
- is_base_affected: bool¶
Base Affected by Previous Taxes
If set, taxes with a lower sequence might affect this one, provided they try to do it.
- analytic: bool¶
Include in Analytic Cost
If set, the amount computed by this tax will be assigned to the same analytic account as the invoice line (if any)
- invoice_repartition_line_ids: Sequence[odoo.fields.Command]¶
Distribution for Invoices
Distribution when the tax is used on an invoice
- refund_repartition_line_ids: Sequence[odoo.fields.Command]¶
Distribution for Refund Invoices
Distribution when the tax is used on a refund
- tax_exigibility: str¶
on_invoice: Based on Invoice
on_payment: Based on Payment
Based on Invoice: the tax is due as soon as the invoice is validated. Based on Payment: the tax is due as soon as the payment of the invoice is received.
- cash_basis_transition_account_id: int¶
Cash Basis Transition Account
Account used to transition the tax amount for cash basis taxes. It will contain the tax amount as long as the original invoice has not been reconciled ; at reconciliation, this amount cancelled on this account and put on the regular tax account.