Skip to Content
Menu
This question has been flagged
1 Reply
4064 Views

Hi.

When looking at many pages in Odoo (e.g, in the Purchase Order detail), we can see an area which lists interactions written using the button "Log Note".
The subject of each of this interactions is of type:

Note by [User Name] - [DATE]

The problem is, that this date (for recent dates) is presented in the format " x minutes ago / x days ago / x month ago" and I would need it to be presented as the full date (Eg. 04/05/2019 08:45:02).

I can see that on mouse over the date, a popup appears in the format I would like to have in the list.

What do I need to do, to switch those formats (format in list to be "04/05/2019 08:45:02" and in the popup "x minutes ago / x days ago / x month ago"), or just to put the format "04/05/2019 08:45:02" in the list?

Thanks in advance.

Avatar
Discard
Best Answer

hello SandraHMF,

Try this code. it may help.

put  this code into xml folder and into manifest add this file referenace into qweb list.

<t t extend = "mail.widget.Thread.Message">

<tt-jquery = "small.o_mail_timestamp" t-operation = "replace">

<small class = "o_mail_timestamp" t-att-title = "message.getTimeElapsed ()">

<t t-esc = "message.getDate (). format (dateFormat)" />

</ Small>


</ T>

</ T>


Avatar
Discard

wonderbar ! Thanks a lot !

How can I add this file in xml in Odoo15?