From e8d4c06300726d8c19f5511bbbe7df3d17467904 Mon Sep 17 00:00:00 2001 From: "Abdelouahab (abla)" Date: Tue, 13 Dec 2022 09:28:12 +0000 Subject: [PATCH] [FIX] web: add ar-sy to arab numbering system To Reproduce ============ - change language to Arabic Syria - go to any form that has a Date field and try to change the date the Date won't change Problem ======= the default numbering system of Arabic Syria is not defined so we take the default one which is `latn`, when parsing dates using this numbering system we got a parsing error because `latn` is not compatible with Arabic Date. Solution ======== Numbers in Arabic Syria have the same format as the numbers in Arabic (Default one), so we add Arabic Syria to the pattern. opw-3081285 closes odoo/odoo#108247 X-original-commit: 8c50eb447da41a3ae0186d99972dd7e56d12cd23 Signed-off-by: Julien Mougenot (jum) Signed-off-by: abla001 --- addons/web/static/src/core/l10n/localization_service.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/core/l10n/localization_service.js b/addons/web/static/src/core/l10n/localization_service.js index 3939ff19ad5..2188cfb05f0 100644 --- a/addons/web/static/src/core/l10n/localization_service.js +++ b/addons/web/static/src/core/l10n/localization_service.js @@ -11,7 +11,7 @@ const { Settings } = luxon; /** @type {[RegExp, string][]} */ const NUMBERING_SYSTEMS = [ - [/^ar-(sa|001)$/i, "arab"], + [/^ar-(sa|sy|001)$/i, "arab"], [/^bn/i, "beng"], [/^bo/i, "tibt"], // [/^fa/i, "Farsi (Persian)"], // No numberingSystem found in Intl