Anastasia_
Anastasia_

Reputation: 299

Qweb/odoo 9-Convert datetime to time

How to Convert datetime to time in qweb report. Now return 2016-11-03 07:40:55 I want only 07:40:55

My solution is not working:

<span t-esc="o.start" t-field-options='{"format": "hh.mm.ss"}'/>

Upvotes: 0

Views: 882

Answers (1)

Majikat
Majikat

Reputation: 722

Change t-esc to t-field. t-field-options only works on t-field.

Upvotes: 2

Related Questions