Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
1 Responder
5668 Visualizações

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

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

Thanks.

Avatar
Cancelar
Melhor resposta

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
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
2
dez. 19
5309
3
ago. 19
6923
3
jun. 25
1026
1
jul. 23
3725
2
mar. 23
5122