Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
5559 Vistas

Using datetime.strftime, the system will always use the locale language.

How can I get month and weekday names in users language?

Thanks.

Avatar
Descartar
Mejor respuesta

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"}'
Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
dic 19
5190
3
ago 19
6807
3
jun 25
821
1
jul 23
3509
2
mar 23
4996