summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_model.js
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2019-08-06 15:07:41 +0000
committerMartin Trigaux <mat@odoo.com>2019-08-07 13:06:17 +0000
commit85ee046b37c7c9a0dc7f052b8258f81774b127de (patch)
tree9a7da9025a665ffc52dff9849af4dc9d69e8892d /addons/web/static/src/js/views/basic/basic_model.js
parentf5cd483216af01001f44a41f7d48f042b9f56ff9 (diff)
[IMP] *: use res.lang methods
get_installed and _lang_get_id are both ormcached and correctly check the context Retrieving a res.lang from a code is a frequent action that can be achieved with _lang_get (cf previous commit). Using _lang_get ensure the active_test in the context is correct and is not poluted with another context propagation issue. odoo/odoo#35490 discussion is an example of bad context propagation closes odoo/odoo#35504 Signed-off-by: Martin Trigaux (mat) <mat@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_model.js')
0 files changed, 0 insertions, 0 deletions