Odoo Help

Welcome!

This community 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.

0

context for datetime field filter for today

By
massimo
on 10/2/15, 2:48 PM 434 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

--Baiju--
3154
| 5 4 8
Kochi, India
--Baiju--
ODOO technical and functional

        I like learning new thing, especially technical thing. I am a quick learner, I can learn technical things very fast. I have good logical skill,  I have immense interest in programming.

e-mail id : baijuks@hotmail.com

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

Hi, Try this

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

 Hope this helps.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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