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: