Define Taxes as Python Code
account_tax_python · odoo/odoo
Health
95/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 2 months ago
-
Required by20/254 modules depend on it
-
Maturity25/25In 12 Odoo series since 9.0
Heuristic over the facts below, not an audit · How it's computed
Required by
4
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.34 MB
Module directory on disk
Code analysis
0 migration notes
1 model
1 view
0 HTTP endpoints
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.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_typeSelectionondelete={'code': <expr>}selection_add=[('code', 'Custom Formula')] -
formulaTextdefault='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_infoJsoncompute='_compute_formula_decoded_info'
No public methods.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…