You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, it is, it is also used in standard Odoo in some pos modules if I remember correctly. Plus, the locale is available by default in almost any linux distribution, so I don't think this is a very big deal, isn't it?
If you find a better solution without using en_GB localte please propose it in a PR. Thanks.
It seems that default locale for Odoo is en_US. en_GB locale used only in pos_sale addon and in PO files.
For example, what i have found via grep "en_US":
../../odoo/addons/mail/models/mail_template.py: return format_datetime(ts, format or 'medium', locale=env.context.get("lang") or 'en_US')
../../odoo/addons/mail/models/mail_template.py: lang = env['res.lang']._lang_get(env.context.get('lang') or 'en_US')
../../odoo/addons/website_event/controllers/main.py: month = babel.dates.get_month_names('abbreviated', locale=event.env.context.get('lang') or 'en_US')[start_date.month]
../../odoo/addons/calendar/models/calendar.py: result = babel.dates.format_date(date=date, format='MMMM y', locale=self._context.get('lang') or 'en_US')
My case (when i spotted this error) is that we have docker image with only en_US locale installed that is used for continuous integration. And module fails to install without en_GB locale. I know that i can add this locale to our docker image, but not sure that it is good idea for Odoo addon to depend on system locale. At least this dependency have to be mentioned in addon readme / description.
Hello!
I have tried to install
mrp_multi_level
and got following error:Is it really required to install
en_GB
locale to make this module work?May be it would be good to fallback to default locale?
Or even use locale based on user's lang?
Related #290
The text was updated successfully, but these errors were encountered: