Odoo Help

0

context for datetime field filter for today

By
massimo
on 10/2/15, 2:48 PM 713 views

I want to make a filter to show all items with a next action date equal to today and less, but am lost with the syntax.  any ideas?

change this -                [['date_action_next', '<=', '2015-10-03 03:59:42']]

to something like this - [['date_action_next', '<=', {{todays_date}}]]

0
Baiju KS
On 10/2/15, 10:26 PM

Hi, Try this

domain="[('date_action_next','<=',current_date)]" 

 Hope this helps.

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

Question tools

1 follower(s)

Stats

Asked: 10/2/15, 2:48 PM
Seen: 713 times
Last updated: 10/2/15, 10:26 PM