Syntax Error generates when the user gives invalid python code in 'account_tax' module and uses that tax while creating invoice. Steps to produce: * Install 'account_tax_python' module * Go to configuration/taxes and create a new tax. * Select Tax Computation as 'python code' and give some special characters to python code field and save it. * Now create an invoice, add a product and add the above created tax in taxes. * At this moment traceback raises. By applying these changes will resolve this issue. closes odoo/odoo#127919 Sentry: 4060222060 X-original-commit: f42bd9c9fbd9a5e4c3eb127453a38d0c21a9d4fb Signed-off-by: Olivier Colson (oco) <oco@odoo.com>
89 lines
3.0 KiB
Gettext
89 lines
3.0 KiB
Gettext
# Translation of Odoo Server.
|
|
# This file contains the translation of the following modules:
|
|
# * account_tax_python
|
|
#
|
|
msgid ""
|
|
msgstr ""
|
|
"Project-Id-Version: Odoo Server saas~16.2\n"
|
|
"Report-Msgid-Bugs-To: \n"
|
|
"POT-Creation-Date: 2023-05-26 06:30+0000\n"
|
|
"PO-Revision-Date: 2023-05-26 06:30+0000\n"
|
|
"Last-Translator: \n"
|
|
"Language-Team: \n"
|
|
"MIME-Version: 1.0\n"
|
|
"Content-Type: text/plain; charset=UTF-8\n"
|
|
"Content-Transfer-Encoding: \n"
|
|
"Plural-Forms: \n"
|
|
|
|
#. module: account_tax_python
|
|
#: model:ir.model.fields,help:account_tax_python.field_account_tax__amount_type
|
|
msgid ""
|
|
"\n"
|
|
" - Group of Taxes: The tax is a set of sub taxes.\n"
|
|
" - Fixed: The tax amount stays the same whatever the price.\n"
|
|
" - Percentage of Price: The tax amount is a % of the price:\n"
|
|
" e.g 100 * (1 + 10%) = 110 (not price included)\n"
|
|
" e.g 110 / (1 + 10%) = 100 (price included)\n"
|
|
" - Percentage of Price Tax Included: The tax amount is a division of the price:\n"
|
|
" e.g 180 / (1 - 10%) = 200 (not price included)\n"
|
|
" e.g 200 * (1 - 10%) = 180 (price included)\n"
|
|
" "
|
|
msgstr ""
|
|
|
|
#. module: account_tax_python
|
|
#: model:ir.model.fields,field_description:account_tax_python.field_account_tax__python_applicable
|
|
msgid "Applicable Code"
|
|
msgstr ""
|
|
|
|
#. module: account_tax_python
|
|
#: model:ir.model.fields,help:account_tax_python.field_account_tax__python_compute
|
|
msgid ""
|
|
"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"
|
|
msgstr ""
|
|
|
|
#. module: account_tax_python
|
|
#: model:ir.model.fields,help:account_tax_python.field_account_tax__python_applicable
|
|
msgid ""
|
|
"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"
|
|
msgstr ""
|
|
|
|
#. module: account_tax_python
|
|
#: model:ir.model.fields,field_description:account_tax_python.field_account_tax__python_compute
|
|
#: model:ir.model.fields.selection,name:account_tax_python.selection__account_tax__amount_type__code
|
|
msgid "Python Code"
|
|
msgstr ""
|
|
|
|
#. module: account_tax_python
|
|
#: model:ir.model,name:account_tax_python.model_account_tax
|
|
msgid "Tax"
|
|
msgstr ""
|
|
|
|
#. module: account_tax_python
|
|
#: model:ir.model.fields,field_description:account_tax_python.field_account_tax__amount_type
|
|
msgid "Tax Computation"
|
|
msgstr ""
|
|
|
|
#. module: account_tax_python
|
|
#. odoo-python
|
|
#: code:addons/account_tax_python/models/account_tax.py:0
|
|
#: code:addons/account_tax_python/models/account_tax.py:0
|
|
#, python-format
|
|
msgid ""
|
|
"You entered invalid code %r in %r taxes\n"
|
|
"\n"
|
|
"Error : %s"
|
|
msgstr ""
|