From 31e1322b40ab33bf81d4c000f2b2a3f3eb8d0958 Mon Sep 17 00:00:00 2001 From: oco-odoo Date: Tue, 17 Dec 2019 11:55:41 +0000 Subject: [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 --- addons/account_tax_python/tests/test_tax.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/account_tax_python/tests') 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, -- cgit v1.2.3