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

user2460152 picture user2460152 · Nov 14, 2014 · Viewed 10.8k times · Source

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?

Answer

qatz picture qatz · Dec 15, 2014

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.