Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
2640 Visualizações

For Quotation Date in a Sales Order, we don't need the time portion.

Avatar
Cancelar
Melhor resposta

Odoo leverages the Bootstrap Tempus Dominus datepicker.


The best option is to use field options to change the format used:

options="{'datepicker': {'format': 'L'}}"


Although you can change the widget used to DATE instead of DATETIME you will encounter issues if you are not in the UTC timezone, see https://github.com/odoo/odoo/issues/55827


Avatar
Cancelar
Melhor resposta

Hi,

Add widget="date" along with the field by inheriting the view.

Thanks

Avatar
Cancelar

If you are in a timezone which has a negative UTC offset, you will encounter the problem I reference.

Publicações relacionadas Respostas Visualizações Atividade
2
jan. 24
2195
2
jun. 22
4106
2
jun. 18
5785
2
nov. 16
13229
2
fev. 24
12229