summaryrefslogtreecommitdiff
path: root/addons/http_routing/models/ir_http.py
diff options
context:
space:
mode:
authorMartin Trigaux <mat@odoo.com>2019-08-07 10:09:09 +0000
committerMartin Trigaux <mat@odoo.com>2019-08-13 14:12:17 +0000
commitbdec8efabf4b77cf75aec83cc96d01384f6c978b (patch)
tree748adc84372b1541a3d079b207147cba7dac3be0 /addons/http_routing/models/ir_http.py
parent2347b84c66b1d6519f5be4689082da22bfc624f6 (diff)
[ADD] web: add the language code in the translation widget
The planet icon is not very clear for translation feature. Replace it with the code of the current language. Task-id: 2028152
Diffstat (limited to 'addons/http_routing/models/ir_http.py')
-rw-r--r--addons/http_routing/models/ir_http.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/http_routing/models/ir_http.py b/addons/http_routing/models/ir_http.py
index 0da7d82e1e2..d6a4524eb31 100644
--- a/addons/http_routing/models/ir_http.py
+++ b/addons/http_routing/models/ir_http.py
@@ -246,6 +246,7 @@ class IrHttp(models.AbstractModel):
'lang_parameters': lang_params,
'modules': translations,
'multi_lang': len(request.env['res.lang'].sudo().get_installed()) > 1,
+ 'lang': lang,
}
session_info.update({