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 | etc.
Hey * .. Anyone know if there's a way to set up a "Today" option as a filter in Odoo SA (the SaaS version)? I'd like to have a dynamic date to be able to create a custom filter that I can share, but that will reference the current date, not a specific one.
Create a new view which inherits the view you want to change, and then add a filter:
<filter string="Today" domain="[('date_field_from_model', '>=', datetime.datetime.now().strftime('%Y-%m-%d 00:00:00')),('date_field_from_model', '<=',datetime.datetime.now().strftime('%Y-%m-%d 23:23:59'))]"/>
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 3/30/16, 7:08 PM|
|Seen: 1648 times|
|Last updated: 10/24/16, 3:38 PM|