Odoo Help


Cannot filter records in one2many

on 7/22/15, 3:18 AM 1,184 views

I'm trying to filter one2many records based on current date. This is my xml code

    <field name="record_ids" domain="[('end_date', '>', cur_date)]">

        <tree string="records_tree">

                <field name="record_id"/>

                <field name="record"/>

                <field name="start_date"/>

                <field name="end_date"/>



cur_date is a functional field I added to get current date.

My problem is records are not filtered in the view. Also it doesn't show any error message

Jaakko Komulainen
On 7/22/15, 3:51 AM

You can get current date for your domain like this:


more examples: filter-by-date-of-today-with-a-delay

Hi. Thanks for the answer. I added this domain to view. Its still shows records without filtration

on 7/22/15, 5:21 AM

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.


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)


Asked: 7/22/15, 3:18 AM
Seen: 1184 times
Last updated: 7/22/15, 3:51 AM