summaryrefslogtreecommitdiff
path: root/addons/account_tax_python/tests
diff options
context:
space:
mode:
authoroco-odoo <oco@odoo.com>2019-12-17 11:55:41 +0000
committerLaurent Smet <las@odoo.com>2020-02-05 11:53:45 +0000
commit31e1322b40ab33bf81d4c000f2b2a3f3eb8d0958 (patch)
tree1766dffcffe5e05d0f52a070bb21c28a3aaab120 /addons/account_tax_python/tests
parent4da64b3f3c8dff88d8e0e01c65374590cc0bf4f7 (diff)
[IMP] account: don't always allow modifying the decimal places of a currency
If accounting entries have already been generated by this currency, we now forbid setting it a lesser number of decimal places (so, higher rounding factor). We also display a warning when increasing the number of decimal places, to make sure the user is aware of the impact it'll have. closes odoo/odoo#42017 Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
Diffstat (limited to 'addons/account_tax_python/tests')
-rw-r--r--addons/account_tax_python/tests/test_tax.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account_tax_python/tests/test_tax.py b/addons/account_tax_python/tests/test_tax.py
index 25c1d1929a0..0ce37033a4a 100644
--- a/addons/account_tax_python/tests/test_tax.py
+++ b/addons/account_tax_python/tests/test_tax.py
@@ -9,7 +9,7 @@ class TestTaxPython(TestTaxCommon):
@classmethod
def setUpClass(cls):
super(TestTaxPython, cls).setUpClass()
- cls.python_tax = cls.tax_model.create({
+ cls.python_tax = cls.env['account.tax'].create({
'name': 'Python TAx',
'amount_type': 'code',
'amount': 0.0,