summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorToufik Ben Jaa <tbe@odoo.com>2019-08-12 09:01:52 +0000
committerToufik Ben Jaa <tbe@odoo.com>2019-08-12 12:51:29 +0000
commite974e1aec889556033acd7f40b73167e56916f77 (patch)
treeac001928636c289925e0195114b0f31fac880060 /addons/web/static/src/js/views/basic/basic_controller.js
parent60c6eedc243ef7a990b7ef07696b1139d4ae4313 (diff)
[FIX] tools: always retrieve a langage on formatLang
- Since commit https://github.com/odoo/odoo/commit/f5cd483216af01001f44a41f7d48f042b9f56ff9 the method `_lang_get` doesn't fallback on a language if the asked language isn't found. This causes issues with `formatLang` that uses the language on the context, which is the language set on the client browser (in most cases). Meaning, if 'en_US' is the only installed language and a customer has set his browser to `fr_FR`, when calling `formatLang` this will crash since no language has been found and `format` on `res.lang` requires a singleton. closes odoo/odoo#35633 Signed-off-by: Toufik Benjaa (tbe) <tbe@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions