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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With