diff options
| author | oco-odoo <oco@odoo.com> | 2019-12-17 11:55:41 +0000 |
|---|---|---|
| committer | Laurent Smet <las@odoo.com> | 2020-02-05 11:53:45 +0000 |
| commit | 31e1322b40ab33bf81d4c000f2b2a3f3eb8d0958 (patch) | |
| tree | 1766dffcffe5e05d0f52a070bb21c28a3aaab120 /addons/account_tax_python/tests/test_tax.py | |
| parent | 4da64b3f3c8dff88d8e0e01c65374590cc0bf4f7 (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/test_tax.py')
| -rw-r--r-- | addons/account_tax_python/tests/test_tax.py | 2 |
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, |
