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"}'
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
2
12月 19
|
5263 | ||
|
3
8月 19
|
6889 | ||
|
3
6月 25
|
972 | ||
|
1
7月 23
|
3671 | ||
|
2
3月 23
|
5081 |