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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
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>
wonderbar ! Thanks a lot !
How can I add this file in xml in Odoo15?
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Prijavi
try this: https://learnopenerp.blogspot.com/2016/09/how-to-convert-datetimedate-to.html