Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I output a odoo 8 datetime field without time on a qweb report?

I want to output a odoo 8 datetime field in the localization format but without time.

I extended the t-field with the option hide_time. Is there a simpler built-in solution?

like image 242
user2460152 Avatar asked Nov 14 '14 09:11

user2460152


1 Answers

You could try specifying a format in t-field-options, like this:

<span t-field="object.datetimefield" t-field-options='{"format": "MMMM d y"}'/>

just adjust the format as you want.

like image 120
qatz Avatar answered Sep 21 '22 13:09

qatz