Hi,
I want to display the activity date deadline but it takes a wrong format. I work on French odoo but the date is displayed in English, with the following format and time set to 00:00:00 but this is a date field not datetime...
Format : Wed Dec 18 2019 00:00:00 GMT+2
This is weird because even in my database, the date is displayed like 18/09/2019, so why is it displayed like that when I call the field in inherited qweb template?
Here is my qweb inheritance:
<?xml version="1.0" encoding="UTF-8"?>
<templates>
<t t-extend="mail.KanbanActivityDropdown">
<t t-jquery=".fa-clock-o" t-operation="after">
<t t-if="log.date_deadline > new Date() and log.activity_type_id[1] != 3">
<span><t t-esc="log.date_deadline" /></span>
</t>
</t>
</t>
</templates>
Hope that anyone can help me. Thanks !
UPDATE:
I already tried t-field, t-options, t-field-options with format or widget: no effect...
Bye.
Try using the widget 'date', e.g.: