Hi. I am working with Odoo enterprise web 16.4+e
In my QWeb report, I have a field that getting datetime from Attendance like this:
Currently it is showing 12/03/2024 17:30:10
How can I only show time like 17:30:10 ?
Thanks in advance!
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi. I am working with Odoo enterprise web 16.4+e
In my QWeb report, I have a field that getting datetime from Attendance like this:
Currently it is showing 12/03/2024 17:30:10
How can I only show time like 17:30:10 ?
Thanks in advance!
Hello,
<span t-esc="context_timestamp(YOUR_FIELD).strftime('%H:%M:%S')"/>
works perfectly. thanks!
Hi,
If the field is a Datetime field you can use your_field.strftime.('%H:%M:%S)
Hope it helps
thanks! but in my case, Sahar's answer is more acceptable
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
RekisteröidyAiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
---|---|---|---|---|
|
1
tammik. 21
|
8666 | ||
|
2
heinäk. 20
|
4687 | ||
Datetime change Format issue in odoo10??
Ratkaistu
|
|
1
syysk. 19
|
13178 | |
|
2
lokak. 19
|
12707 | ||
|
3
kesäk. 25
|
837 |