diff options
| author | Ivan Yelizariev <iel@odoo.com> | 2020-11-17 14:00:29 +0000 |
|---|---|---|
| committer | Ivan Yelizariev <iel@odoo.com> | 2020-11-19 13:49:58 +0000 |
| commit | 9fffda4568616579f4e8ca0168387a8f9fe975e6 (patch) | |
| tree | dce29734b550dde99b18b16eed77779f40ad9589 /addons/mail/static/src/models/thread_cache/thread_cache.js | |
| parent | a23864f15aba79e9ec5405dd084fc10e15230a2b (diff) | |
[FIX] web: stop showing translation alert in settings
STEPS:
* install module "account"
* activate at least one additional languages
* go to Settings as set value to "Default Terms & Conditions"
* click Save
* again at Settings make any changes in any field
* click Save
BEFORE:
* while page is reloading you see alert "Please update translations of: Terms &
Conditions"
* once page is reloaded the alert is gone
* the alert doesn't depend on weither translations are done or not
AFTER: no annoying alerts
WHY:
* in res.config.settings any field with default values (i.e. almost all fields)
are marked as changed
https://github.com/odoo/odoo/blob/d652dbb9655d98b4121ac685e6444bbf7e303292/odoo/addons/base/models/res_config.py#L493
https://github.com/odoo/odoo/blob/93a2e85ae7b11f9a390f40f74e6d78e1ec876fc3/addons/web/static/src/js/views/basic/basic_model.js#L254
* the idea of alert is suggesting to translate just changed fields
https://github.com/odoo/odoo/blob/93a2e85ae7b11f9a390f40f74e6d78e1ec876fc3/addons/web/static/src/js/views/form/form_renderer.js#L136-L140
* saving settings always leads to reloading
https://github.com/odoo/odoo/blob/93a2e85ae7b11f9a390f40f74e6d78e1ec876fc3/odoo/addons/base/models/res_config.py#L639-L647
* So, the alert cannot work for Settings page. There is no better option for
stable branch than just disabling it
---
opw-2346644
closes odoo/odoo#62022
X-original-commit: 5c6850788bd453cae82b6a58f99d11266370277a
Signed-off-by: Ivan Yelizariev // IEL <yelizariev@users.noreply.github.com>
Diffstat (limited to 'addons/mail/static/src/models/thread_cache/thread_cache.js')
0 files changed, 0 insertions, 0 deletions
