Update __init__.py
This commit is contained in:
parent
d19548e525
commit
607050bb10
|
|
@ -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')
|
lang = env['res.lang']._lang_get(lang_code or env.context.get('lang') or 'en_US')
|
||||||
locale = babel.Locale.parse(lang.code)
|
locale = babel.Locale.parse(lang.code)
|
||||||
|
locale=str(locale)
|
||||||
if locale.lower().startswith('ar'):
|
if locale.lower().startswith('ar'):
|
||||||
locale = "ar"
|
locale = "ar"
|
||||||
if not date_format:
|
if not date_format:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue