Skip to content
Snippets Groups Projects
Commit 85ee046b authored by Martin Trigaux's avatar Martin Trigaux
Browse files

[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: default avatarMartin Trigaux (mat) <mat@odoo.com>
parent f5cd4832
No related branches found
No related tags found
No related merge requests found
Showing
with 31 additions and 40 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment