Using datetime.strftime, the system will always use the locale language.
How can I get month and weekday names in users language?
Thanks.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Using datetime.strftime, the system will always use the locale language.
How can I get month and weekday names in users language?
Thanks.
Hello,
for month:
span t-field="o.invoice_date" t-options='{"widget": "date", "format": "MMMM"}'
for weekday:
span t-field="o.invoice_date" t-options='{"widget": "date", "format": "EEEE"}'
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
2
déc. 19
|
5797 | |||
|
3
août 19
|
7763 | |||
|
3
juin 25
|
1829 | |||
|
1
juil. 23
|
4657 | |||
|
2
mars 23
|
5866 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.