| REPOSITORY | |
|---|---|
| REPOSITORY | odoo/odoo |
| GIT | |
| GIT | https://github.com/odoo/odoo.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/odoo/odoo/tree/19.0/account_tax_python |
| VERSION | |
| VERSION | 1.0 |
| CATEGORY | |
| CATEGORY | Accounting/Accounting |
| LICENSE | |
| LICENSE | LGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo S.A. |
| MAINTAINERS | |
| MAINTAINERS | Odoo S.A. |
| COMMITTERS | |
| 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) |
| WEBSITE | |
| WEBSITE | |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 01:51:40 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - account - base_setup - base - web - onboarding - product - bus - web_tour - html_editor - uom - analytic - portal - http_routing - auth_signup - digest - resource |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| 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.
|
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_tax_form_inherited |
account.tax.form.inherited | account.tax | xpath | Inherits account.view_tax_form |
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'
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | odoo/odoo |
| GIT | |
| GIT | https://github.com/odoo/odoo.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/odoo/odoo/tree/18.0/account_tax_python |
| VERSION | |
| VERSION | 1.0 |
| CATEGORY | |
| CATEGORY | Accounting/Accounting |
| LICENSE | |
| LICENSE | LGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | |
| MAINTAINERS | |
| MAINTAINERS | |
| COMMITTERS | |
| COMMITTERS | Odoo Translation Bot, Odoo Online, Laurent Smet, Tiffany Chang (tic), Ruben Gomes, Vincent Larcin, Louis Wicket (wil), Dylan Kiss (dyki), Seif (segn), Louis (wil), Laurent Smet (LAS), Rodrigo Fernández |
| WEBSITE | |
| WEBSITE | |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 01:25:53 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - account - base_setup - base - web - onboarding - product - bus - web_tour - html_editor - uom - analytic - portal - web_editor - http_routing - auth_signup - digest - resource |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| 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.
|
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_tax_form_inherited |
account.tax.form.inherited | account.tax | xpath | Inherits account.view_tax_form |
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'
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | odoo/odoo |
| GIT | |
| GIT | https://github.com/odoo/odoo.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/odoo/odoo/tree/17.0/account_tax_python |
| VERSION | |
| VERSION | 1.0 |
| CATEGORY | |
| CATEGORY | Accounting/Accounting |
| LICENSE | |
| LICENSE | LGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | |
| MAINTAINERS | |
| MAINTAINERS | |
| COMMITTERS | |
| COMMITTERS | Odoo Translation Bot, Martin Trigaux, Xavier Morel, Odoo Online, Laurent Smet, Tiffany Chang (tic), Gorash, william-andre, Louis Wicket (wil), althaf shaik, Claire Bretton (clbr), Levi Siuzdak (sile), Dylan Kiss (dyki), Louis (wil) |
| WEBSITE | |
| WEBSITE | |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 01:02:04 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - account - base_setup - base - web - onboarding - product - bus - web_tour - uom - analytic - portal - web_editor - http_routing - auth_signup - digest - resource |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| 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.
|
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_tax_form_inherited |
account.tax.form.inherited | account.tax | xpath | Inherits account.view_tax_form |
amount_type
Selection
ondelete={'code': <expr>}
selection_add=[('code', 'Python Code')]
python_applicable
Text
default='result = True'
help="Determine if the tax will be applied by setting the variable 'result' to True or False.\n\n:param price_unit: float\n:param quantity: float\n:param company: res.company recordset singleton\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Applicable Code'
python_compute
Text
default='result = price_unit * 0.10'
help="Compute the amount of the tax by setting the variable 'result'.\n\n:param base_amount: float, actual amount on which the tax is applied\n:param price_unit: float\n:param quantity: float\n:param company: res.company recordset singleton\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Python Code'
compute_all(self, price_unit, currency=None, quantity=1.0, product=None, partner=None, is_refund=False, handle_price_include=True, include_caba_tags=False, fixed_multiplicator=1)
| REPOSITORY | |
|---|---|
| REPOSITORY | odoo/odoo |
| GIT | |
| GIT | https://github.com/odoo/odoo.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/odoo/odoo/tree/16.0/account_tax_python |
| VERSION | |
| VERSION | 1.0 |
| CATEGORY | |
| CATEGORY | Accounting/Accounting |
| LICENSE | |
| LICENSE | LGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | |
| MAINTAINERS | |
| MAINTAINERS | |
| COMMITTERS | |
| COMMITTERS | Odoo Translation Bot, Martin Trigaux, Laurent Smet, Tiffany Chang (tic), william-andre, althaf shaik |
| WEBSITE | |
| WEBSITE | |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:40:46 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - account - base_setup - base - web - product - bus - web_tour - uom - analytic - portal - web_editor - http_routing - auth_signup - digest - resource |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| 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.
|
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_tax_form_inherited |
account.tax.form.inherited | account.tax | xpath | Inherits account.view_tax_form |
amount_type
Selection
ondelete={'code': <expr>}
selection_add=[('code', 'Python Code')]
python_applicable
Text
default='result = True'
help="Determine if the tax will be applied by setting the variable 'result' to True or False.\n\n:param price_unit: float\n:param quantity: float\n:param company: res.company recordset singleton\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Applicable Code'
python_compute
Text
default='result = price_unit * 0.10'
help="Compute the amount of the tax by setting the variable 'result'.\n\n:param base_amount: float, actual amount on which the tax is applied\n:param price_unit: float\n:param quantity: float\n:param company: res.company recordset singleton\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Python Code'
compute_all(self, price_unit, currency=None, quantity=1.0, product=None, partner=None, is_refund=False, handle_price_include=True, include_caba_tags=False, fixed_multiplicator=1)
amount_type
Selection
ondelete={'code': 'cascade'}
selection_add=[('code', 'Python Code')]
python_applicable
Text
default='result = True'
help="Determine if the tax will be applied by setting the variable 'result' to True or False.\n\n:param price_unit: float\n:param quantity: float\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Applicable Code'
python_compute
Text
default='result = price_unit * 0.10'
help="Compute the amount of the tax by setting the variable 'result'.\n\n:param base_amount: float, actual amount on which the tax is applied\n:param price_unit: float\n:param quantity: float\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Python Code'
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | odoo/odoo |
| GIT | |
| GIT | https://github.com/odoo/odoo.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/odoo/odoo/tree/15.0/account_tax_python |
| VERSION | |
| VERSION | 1.0 |
| CATEGORY | |
| CATEGORY | Accounting/Accounting |
| LICENSE | |
| LICENSE | LGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | |
| MAINTAINERS | |
| MAINTAINERS | |
| COMMITTERS | |
| COMMITTERS | Odoo Translation Bot, Martin Trigaux, Xavier-Do, oco-odoo, althaf shaik, ilru-odoo |
| WEBSITE | |
| WEBSITE | |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:25:26 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - account - base_setup - base - web - product - bus - web_tour - uom - analytic - portal - web_editor - http_routing - auth_signup - digest - resource |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| 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.
|
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_tax_form_inherited |
account.tax.form.inherited | account.tax | xpath | Inherits account.view_tax_form |
amount_type
Selection
ondelete={'code': <expr>}
selection_add=[('code', 'Python Code')]
python_applicable
Text
default='result = True'
help="Determine if the tax will be applied by setting the variable 'result' to True or False.\n\n:param price_unit: float\n:param quantity: float\n:param company: res.company recordset singleton\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Applicable Code'
python_compute
Text
default='result = price_unit * 0.10'
help="Compute the amount of the tax by setting the variable 'result'.\n\n:param base_amount: float, actual amount on which the tax is applied\n:param price_unit: float\n:param quantity: float\n:param company: res.company recordset singleton\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Python Code'
compute_all(self, price_unit, currency=None, quantity=1.0, product=None, partner=None, is_refund=False, handle_price_include=True, include_caba_tags=False)
amount_type
Selection
ondelete={'code': 'cascade'}
selection_add=[('code', 'Python Code')]
python_applicable
Text
default='result = True'
help="Determine if the tax will be applied by setting the variable 'result' to True or False.\n\n:param price_unit: float\n:param quantity: float\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Applicable Code'
python_compute
Text
default='result = price_unit * 0.10'
help="Compute the amount of the tax by setting the variable 'result'.\n\n:param base_amount: float, actual amount on which the tax is applied\n:param price_unit: float\n:param quantity: float\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Python Code'
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | odoo/odoo |
| GIT | |
| GIT | https://github.com/odoo/odoo.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/odoo/odoo/tree/14.0/account_tax_python |
| VERSION | |
| VERSION | 1.0 |
| CATEGORY | |
| CATEGORY | Accounting/Accounting |
| LICENSE | |
| LICENSE | LGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | |
| MAINTAINERS | |
| MAINTAINERS | |
| COMMITTERS | |
| COMMITTERS | Raphael Collet, Odoo Translation Bot, Martin Trigaux, Olivier Dony, Christophe Simonis, Yannick Tivisse, Laurent Smet, Xavier-Do, Victor Feyens, althaf shaik |
| WEBSITE | |
| WEBSITE | |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:14:27 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - account - base_setup - base - web - product - bus - web_tour - uom - analytic - portal - web_editor - http_routing - auth_signup - digest - resource |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| 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.
|
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_tax_form_inherited |
account.tax.form.inherited | account.tax | xpath | Inherits account.view_tax_form |
amount_type
Selection
ondelete={'code': <expr>}
selection_add=[('code', 'Python Code')]
python_applicable
Text
default='result = True'
help="Determine if the tax will be applied by setting the variable 'result' to True or False.\n\n:param price_unit: float\n:param quantity: float\n:param company: res.company recordset singleton\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Applicable Code'
python_compute
Text
default='result = price_unit * 0.10'
help="Compute the amount of the tax by setting the variable 'result'.\n\n:param base_amount: float, actual amount on which the tax is applied\n:param price_unit: float\n:param quantity: float\n:param company: res.company recordset singleton\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Python Code'
compute_all(self, price_unit, currency=None, quantity=1.0, product=None, partner=None, is_refund=False, handle_price_include=True)
amount_type
Selection
ondelete={'code': 'cascade'}
selection_add=[('code', 'Python Code')]
python_applicable
Text
default='result = True'
help="Determine if the tax will be applied by setting the variable 'result' to True or False.\n\n:param price_unit: float\n:param quantity: float\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Applicable Code'
python_compute
Text
default='result = price_unit * 0.10'
help="Compute the amount of the tax by setting the variable 'result'.\n\n:param base_amount: float, actual amount on which the tax is applied\n:param price_unit: float\n:param quantity: float\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Python Code'
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | odoo/odoo |
| GIT | |
| GIT | https://github.com/odoo/odoo.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/odoo/odoo/tree/13.0/account_tax_python |
| VERSION | |
| VERSION | 1.0 |
| CATEGORY | |
| CATEGORY | Accounting/Accounting |
| LICENSE | |
| LICENSE | LGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | |
| MAINTAINERS | |
| MAINTAINERS | |
| COMMITTERS | |
| COMMITTERS | Odoo Translation Bot, Martin Trigaux, Christophe Simonis, qdp-odoo, Damien Bouvy, Olivier Colson, Yannick Tivisse, Odoo Online, Jorge Pinna Puissant, Adrian Torres, Xavier-Do, Victor Feyens |
| WEBSITE | |
| WEBSITE | |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:06:41 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - account - base_setup - base - web - product - bus - web_tour - uom - analytic - portal - web_editor - http_routing - auth_signup - digest - resource |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| 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.
|
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_tax_form_inherited |
account.tax.form.inherited | account.tax | xpath | Inherits account.view_tax_form |
amount_type
Selection
selection_add=[('code', 'Python Code')]
python_applicable
Text
default='result = True'
help="Determine if the tax will be applied by setting the variable 'result' to True or False.\n\n:param price_unit: float\n:param quantity: float\n:param company: res.company recordset singleton\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Applicable Code'
python_compute
Text
default='result = price_unit * 0.10'
help="Compute the amount of the tax by setting the variable 'result'.\n\n:param base_amount: float, actual amount on which the tax is applied\n:param price_unit: float\n:param quantity: float\n:param company: res.company recordset singleton\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Python Code'
compute_all(self, price_unit, currency=None, quantity=1.0, product=None, partner=None, is_refund=False, handle_price_include=True)
amount_type
Selection
selection_add=[('code', 'Python Code')]
python_applicable
Text
default='result = True'
help="Determine if the tax will be applied by setting the variable 'result' to True or False.\n\n:param price_unit: float\n:param quantity: float\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Applicable Code'
python_compute
Text
default='result = price_unit * 0.10'
help="Compute the amount of the tax by setting the variable 'result'.\n\n:param base_amount: float, actual amount on which the tax is applied\n:param price_unit: float\n:param quantity: float\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Python Code'
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | odoo/odoo |
| GIT | |
| GIT | https://github.com/odoo/odoo.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/odoo/odoo/tree/12.0/account_tax_python |
| VERSION | |
| VERSION | 1.0 |
| CATEGORY | |
| CATEGORY | Accounting |
| LICENSE | |
| LICENSE | LGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | |
| MAINTAINERS | |
| MAINTAINERS | |
| COMMITTERS | |
| COMMITTERS | Odoo Translation Bot, Martin Trigaux, Christophe Simonis, Nicolas Martinelli, qdp-odoo, Xavier-Do, Victor Feyens |
| WEBSITE | |
| WEBSITE | |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-05 23:57:00 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - account - base_setup - base - web - product - decimal_precision - bus - web_tour - uom - analytic - portal - http_routing - digest |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION |
A tax defined as python code consists in 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.
|
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_tax_form_inherited |
account.tax.form.inherited | account.tax | xpath | Inherits account.view_tax_form |
amount_type
Selection
selection_add=[('code', 'Python Code')]
python_applicable
Text
default='result = True'
help="Determine if the tax will be applied by setting the variable 'result' to True or False.\n\n:param price_unit: float\n:param quantity: float\n:param company: res.company recordset singleton\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Applicable Code'
python_compute
Text
default='result = price_unit * 0.10'
help="Compute the amount of the tax by setting the variable 'result'.\n\n:param base_amount: float, actual amount on which the tax is applied\n:param price_unit: float\n:param quantity: float\n:param company: res.company recordset singleton\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Python Code'
compute_all(self, price_unit, currency=None, quantity=1.0, product=None, partner=None)
amount_type
Selection
selection_add=[('code', 'Python Code')]
python_applicable
Text
default='result = True'
help="Determine if the tax will be applied by setting the variable 'result' to True or False.\n\n:param price_unit: float\n:param quantity: float\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Applicable Code'
python_compute
Text
default='result = price_unit * 0.10'
help="Compute the amount of the tax by setting the variable 'result'.\n\n:param base_amount: float, actual amount on which the tax is applied\n:param price_unit: float\n:param quantity: float\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Python Code'
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | odoo/odoo |
| GIT | |
| GIT | https://github.com/odoo/odoo.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/odoo/odoo/tree/11.0/account_tax_python |
| VERSION | |
| VERSION | 1.0 |
| CATEGORY | |
| CATEGORY | Accounting |
| LICENSE | |
| LICENSE | LGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | |
| MAINTAINERS | |
| MAINTAINERS | |
| COMMITTERS | |
| COMMITTERS | Odoo Translation Bot, Martin Trigaux, Christophe Simonis, qdp-odoo, GitHub, Odoo Online, Victor Feyens |
| WEBSITE | |
| WEBSITE | |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-05 23:53:42 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - account - base_setup - base - web - product - decimal_precision - bus - web_tour - analytic - web_planner - portal - http_routing |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION |
A tax defined as python code consists in 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.
|
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_tax_form_inherited |
account.tax.form.inherited | account.tax | xpath | Inherits account.view_tax_form |
amount_type
Selection
selection_add=[('code', 'Python Code')]
python_applicable
Text
default='result = True'
help="Determine if the tax will be applied by setting the variable 'result' to True or False.\n\n:param price_unit: float\n:param quantity: float\n:param company: res.company recordset singleton\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Applicable Code'
python_compute
Text
default='result = price_unit * 0.10'
help="Compute the amount of the tax by setting the variable 'result'.\n\n:param base_amount: float, actual amount on which the tax is applied\n:param price_unit: float\n:param quantity: float\n:param company: res.company recordset singleton\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Python Code'
compute_all(self, price_unit, currency=None, quantity=1.0, product=None, partner=None)
amount_type
Selection
selection_add=[('code', 'Python Code')]
python_applicable
Text
default='result = True'
help="Determine if the tax will be applied by setting the variable 'result' to True or False.\n\n:param price_unit: float\n:param quantity: float\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Applicable Code'
python_compute
Text
default='result = price_unit * 0.10'
help="Compute the amount of the tax by setting the variable 'result'.\n\n:param base_amount: float, actual amount on which the tax is applied\n:param price_unit: float\n:param quantity: float\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Python Code'
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | odoo/odoo |
| GIT | |
| GIT | https://github.com/odoo/odoo.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/odoo/odoo/tree/10.0/account_tax_python |
| VERSION | |
| VERSION | 1.0 |
| CATEGORY | |
| CATEGORY | Accounting |
| LICENSE | |
| LICENSE | LGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | |
| MAINTAINERS | |
| MAINTAINERS | |
| COMMITTERS | |
| COMMITTERS | Odoo Translation Bot, Martin Trigaux, Olivier Dony, Thibault Delavallée, Denis Ledoux, Christophe Simonis, Julien Legros, qdp-odoo, Yannick Tivisse |
| WEBSITE | |
| WEBSITE | |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-05 23:50:47 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - account - base_setup - base - web_kanban - web - product - decimal_precision - bus - web_tour - report - analytic - web_planner |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION |
A tax defined as python code consists in 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.
|
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_tax_form_inherited |
account.tax.form.inherited | account.tax | xpath | Inherits account.view_tax_form |
amount_type
Selection
selection_add=[('code', 'Python Code')]
python_applicable
Text
default='result = True'
help="Determine if the tax will be applied by setting the variable 'result' to True or False.\n\n:param price_unit: float\n:param quantity: float\n:param company: res.company recordset singleton\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Applicable Code'
python_compute
Text
default='result = price_unit * 0.10'
help="Compute the amount of the tax by setting the variable 'result'.\n\n:param base_amount: float, actual amount on which the tax is applied\n:param price_unit: float\n:param quantity: float\n:param company: res.company recordset singleton\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Python Code'
compute_all(self, price_unit, currency=None, quantity=1.0, product=None, partner=None)
amount_type
Selection
selection_add=[('code', 'Python Code')]
python_applicable
Text
default='result = True'
help="Determine if the tax will be applied by setting the variable 'result' to True or False.\n\n:param price_unit: float\n:param quantity: float\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Applicable Code'
python_compute
Text
default='result = price_unit * 0.10'
help="Compute the amount of the tax by setting the variable 'result'.\n\n:param base_amount: float, actual amount on which the tax is applied\n:param price_unit: float\n:param quantity: float\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Python Code'
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | odoo/odoo |
| GIT | |
| GIT | https://github.com/odoo/odoo.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/odoo/odoo/tree/9.0/account_tax_python |
| VERSION | |
| VERSION | 1.0 |
| CATEGORY | |
| CATEGORY | Accounting |
| LICENSE | |
| LICENSE | LGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | |
| MAINTAINERS | |
| MAINTAINERS | |
| COMMITTERS | |
| COMMITTERS | Raphael Collet, Odoo Translation Bot, Martin Trigaux, Cedric Snauwaert, Nicolas Martinelli, qdp-odoo, Yannick Tivisse |
| WEBSITE | |
| WEBSITE | |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-05 23:48:29 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - account - base_setup - base - web_kanban - web - product - decimal_precision - bus - report - analytic - web_tip - web_planner |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION |
A tax defined as python code consists in 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.
|
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_tax_form_inherited |
account.tax.form.inherited | account.tax | xpath | Inherits account.view_tax_form |
amount_type
Selection
selection_add=[('code', 'Python Code')]
python_applicable
Text
default='result = True'
help="Determine if the tax will be applied by setting the variable 'result' to True or False.\n\n:param price_unit: float\n:param quantity: float\n:param company: res.company recordset singleton\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Applicable Code'
python_compute
Text
default='result = price_unit * 0.10'
help="Compute the amount of the tax by setting the variable 'result'.\n\n:param base_amount: float, actual amount on which the tax is applied\n:param price_unit: float\n:param quantity: float\n:param company: res.company recordset singleton\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Python Code'
compute_all(self, price_unit, currency=None, quantity=1.0, product=None, partner=None)
compute_all(self, cr, uid, ids, price_unit, currency_id=None, quantity=1.0, product_id=None, partner_id=None, context=None)
amount_type
Selection
selection_add=[('code', 'Python Code')]
python_applicable
Text
default='result = True'
help="Determine if the tax will be applied by setting the variable 'result' to True or False.\n\n:param price_unit: float\n:param quantity: float\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Applicable Code'
python_compute
Text
default='result = price_unit * 0.10'
help="Compute the amount of the tax by setting the variable 'result'.\n\n:param base_amount: float, actual amount on which the tax is applied\n:param price_unit: float\n:param quantity: float\n:param product: product.product recordset singleton or None\n:param partner: res.partner recordset singleton or None"
string='Python Code'
No public methods.