تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
5557 أدوات العرض

For example: I need to filter tasks for "Monday" and i don´t know how to do it.

I have tried in several ways but I can´t find the solution.

I done it for "Last Week" and "This Week":

<filter string="Last Week" name="last_week" separator="1" 
        domain="[('date', '&gt;=', ((context_today()+relativedelta(weeks=-2, days=1, weekday=0)).strftime('%Y-%m-%d'))),
                ('date', '&lt;=', ((context_today()+relativedelta(weeks=-1,weekday=6)).strftime('%Y-%m-%d')))]"/>

<filter string="This Week" name="this_week" separator="1"
        domain="[('date', '&lt;=', ((context_today()+relativedelta(weeks=0, days=7, weekday=-1)).strftime('%Y-%m-%d'))),
                ('date', '&gt;=', ((context_today()-relativedelta(weeks=1, weekday=0)).strftime('%Y-%m-%d')))]"/>
الصورة الرمزية
إهمال

Can you explain your filter usage in detail ?

الكاتب

I have 2 filters: "This Week" and "Last Week"

And I need to add filters for Monday, Tuesday, Wednesday, etc...

When i select "This Week" filter i can see the tasks of the week and also when i select the filter "Monday" i need to see the tasks of this Monday.

Sorry for my English.

المنشورات ذات الصلة الردود أدوات العرض النشاط
1
يناير 20
10919
2
يناير 23
13727
1
يوليو 16
5666
0
مارس 15
5267
2
يناير 24
2539