I just need the date on the reports, not the date and time. How can I do that? In odoo 9
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
1
Reply
1385
Views
Hello Luis Rivas,
If Your field having datatype as datetime.
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.
OR
<span t-esc="time.strftime('%m/%d/%Y',time.strptime(object.datetimefield,'%Y-%m-%d %H:%M:%S'))"/>
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up