Repository
odoo/odoo · module folder
Module version
1.0
Category
Accounting/Accounting
Folder size
0.48 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
None
Last tracking update
2026-08-15 22:44:14
Authors
Odoo S.A.
Maintainers
Odoo S.A.
Committers
Odoo Translation Bot, Laurent Smet, Julien Castiaux, Tiffany Chang (tic), Gorash, Louis Wicket (wil), Dylan Kiss (dyki), Anton Romanova (roan), Krzysztof Magusiak (krma), Laurent Smet (LAS)
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
l10n_in, l10n_my, pos_account_tax_python
Description
A tax defined as python code consists of two snippets of python code which are executed in a local environment containing data such as the unit price, product or partner.

"Applicable Code" defines if the tax is to be applied.

"Python Code" defines the amount of the tax.
        

Code Analysis

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

No HTTP endpoints found for this module.

Models touched (1)

New fields (3)
  • amount_type Selection
    ondelete={'code': <expr>} selection_add=[('code', 'Custom Formula')]
  • formula Text
    default='price_unit * 0.10' help='Compute the amount of the tax.\n\n:param base: float, actual amount on which the tax is applied\n:param price_unit: float\n:param quantity: float\n:param product: A object representing the product\n' string='Formula'
  • formula_decoded_info Json
    compute='_compute_formula_decoded_info'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…