[FIX] web: missing multiLang in l10n
Before this commit the multi_lang parameter was not properly retrieved from the server on the JS side. closes odoo/odoo#94743 X-original-commit: 9dfdb1d0ded4b8739f93756987f61aa09658a840 Signed-off-by: Géry Debongnie <ged@odoo.com> Signed-off-by: Bruno Boi (boi) <boi@odoo.com>
This commit is contained in:
@@ -39,7 +39,11 @@ export const localizationService = {
|
||||
throw new Error("Error while fetching translations");
|
||||
}
|
||||
|
||||
const { lang_parameters: userLocalization, modules: modules } = await response.json();
|
||||
const {
|
||||
lang_parameters: userLocalization,
|
||||
modules: modules,
|
||||
multi_lang: multiLang,
|
||||
} = await response.json();
|
||||
|
||||
// FIXME We flatten the result of the python route.
|
||||
// Eventually, we want a new python route to return directly the good result.
|
||||
@@ -79,7 +83,7 @@ export const localizationService = {
|
||||
decimalPoint: userLocalization.decimal_point,
|
||||
direction: userLocalization.direction,
|
||||
grouping,
|
||||
multiLang: userLocalization.multi_lang,
|
||||
multiLang,
|
||||
thousandsSep: userLocalization.thousands_sep,
|
||||
weekStart: userLocalization.week_start,
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user