From 607050bb10e576d830142d0b1592fccb43c0ce93 Mon Sep 17 00:00:00 2001 From: zainab2097 <149927291+zainab2097@users.noreply.github.com> Date: Mon, 5 Aug 2024 16:57:35 +0300 Subject: [PATCH] Update __init__.py --- odex25_hr/months_custom/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/odex25_hr/months_custom/__init__.py b/odex25_hr/months_custom/__init__.py index 384270d52..e36990713 100644 --- a/odex25_hr/months_custom/__init__.py +++ b/odex25_hr/months_custom/__init__.py @@ -37,6 +37,7 @@ def format_date(env, value, lang_code=False, date_format=False): lang = env['res.lang']._lang_get(lang_code or env.context.get('lang') or 'en_US') locale = babel.Locale.parse(lang.code) + locale=str(locale) if locale.lower().startswith('ar'): locale = "ar" if not date_format: