diff options
| author | Ivan Yelizariev <iel@odoo.com> | 2020-12-17 11:55:00 +0000 |
|---|---|---|
| committer | Ivan Yelizariev <iel@odoo.com> | 2020-12-17 12:03:27 +0000 |
| commit | e9ef98410fa6acba165f3056d9c52f8e68cc768b (patch) | |
| tree | 1e54fcfe3398097bc0a80be8ef0c7cafedbf10fc /addons/web | |
| parent | b29ac84fd55923abf582cdee39cb32bacda3eec9 (diff) | |
[FIX] portal: show default lang in selector when lang is not found
STEPS:
* install project, website
* install translation, but don't apply to website
* create a task with Customer that has that language
* close the task
* open rating request message in ``Settings >> Technical >> Messages``
* click any of the smiles
BEFORE:
Error to render compiling AST
IndexError: list index out of range
Template: portal.language_selector
Path: /t/t[1]
Node: <t t-set="active_lang" t-value="list(filter(lambda lg : lg[0] == lang,
languages))[0]"/>
AFTER:
no errors, page is translated to customer's language, though language selector
shows default website's language
---
opw-2416586
closes odoo/odoo#63526
Signed-off-by: Ivan Yelizariev // IEL <yelizariev@users.noreply.github.com>
Diffstat (limited to 'addons/web')
0 files changed, 0 insertions, 0 deletions
