summaryrefslogtreecommitdiff
path: root/addons/account/models/__init__.py
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/models/__init__.py
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/models/__init__.py')
-rw-r--r--addons/account/models/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/account/models/__init__.py b/addons/account/models/__init__.py
index ada7f4d2d52..ff544440e12 100644
--- a/addons/account/models/__init__.py
+++ b/addons/account/models/__init__.py
@@ -21,3 +21,4 @@ from . import account_incoterms
from . import digest
from . import res_users
from . import ir_actions_report
+from . import res_currency