Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
1408 Представления

Hello Odooers, 


Is there any way to set date field format for specific field, not for all fields. I mean not general settings. I want different different date format to display in different different field.


Thanks in advance.

Аватар
Отменить
Лучший ответ

Odoo leverages the Bootstrap Tempus Dominus datepicker.


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

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


You can see us using this approach in Odoo (account.view_move_form)

options="{'datepicker': {'warn_future': true}}"
Аватар
Отменить