diff options
| author | bve <bve@odoo.com> | 2021-01-11 14:52:19 +0000 |
|---|---|---|
| committer | BVE <bve@odoo.com> | 2021-01-19 13:31:40 +0000 |
| commit | 66533ebd88ed89c3baae6fdb1d0a28a458fa0cb9 (patch) | |
| tree | 8866f966a073abbd6cdc0b74689fbabdaa817fdc /odoo/addons | |
| parent | 3ef5e63f62f0f84d6e92cb55eb112ab2f2924faa (diff) | |
[IMP] account: warn msg decimal accuracy on modification
commit 31e1322b40ab33bf81d4c000f2b2a3f3eb8d0958 is allowing the
customer to increase is decimal accuracy for currency without
consequences but triggering issue upon lowering it if entries
already exist.
+ Remove the redirection to the support.
Let's ensure that the behavior is consistent and the users are
warned on first modification. To do so, adding an alert msg
in addition of the blocking message in case of lowering the decimal
accuracy after already creating accounting entries.
opw-2428857
closes odoo/odoo#64344
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Diffstat (limited to 'odoo/addons')
| -rw-r--r-- | odoo/addons/base/i18n/base.pot | 7 | ||||
| -rw-r--r-- | odoo/addons/base/views/res_currency_views.xml | 4 |
2 files changed, 11 insertions, 0 deletions
diff --git a/odoo/addons/base/i18n/base.pot b/odoo/addons/base/i18n/base.pot index d52ad9bec96..c53143ee864 100644 --- a/odoo/addons/base/i18n/base.pot +++ b/odoo/addons/base/i18n/base.pot @@ -26056,6 +26056,13 @@ msgid "" msgstr "" #. module: base +#: model_terms:ir.ui.view,arch_db:base.view_currency_form +msgid "" +"You won't be able to reduce the number of decimal places of a currency which" +" has already been used to make accounting entries." +msgstr "" + +#. module: base #: code:addons/base/models/ir_mail_server.py:0 #, python-format msgid "" diff --git a/odoo/addons/base/views/res_currency_views.xml b/odoo/addons/base/views/res_currency_views.xml index b646e028f28..1be52955800 100644 --- a/odoo/addons/base/views/res_currency_views.xml +++ b/odoo/addons/base/views/res_currency_views.xml @@ -134,6 +134,10 @@ </group> </group> + <div class="oe_edit_only alert alert-info" role="alert"> + You won't be able to reduce the number of decimal places of a currency which has already been used to make accounting entries. + </div> + <group groups="base.group_no_one"> <group string="Price Accuracy"> <field name="rounding"/> |
