I want to filter last week. I mean if today is Monday, I want to have the date between last week's Monday to last week's Friday, and if today is Tuesday I want to have also the date between last week's Monday to last week's Friday.
I looked at python relativedelta and I succeded the following in python:
datetime.now()+ relativedelta(weeks=-1, weekday=MO)
datetime.now()+ relativedelta(weeks=-1, weekday=FR)
But I can't adapt to openerp v7. I tried with numbers instead of MO, FR, but no success. Please help me.
Thanks, TArpi
http://help.openerp.com/question/20731/creating-this-week-or-today-7-days-filter/
Thanks prakash! I saw that post, but that is about "today and 7 days", but I need last week no matter the day we are in this week. I mean I need the date of last week's monday and last week's friday, if we are on today, or tomorrow or so on (in this week). I hope I made myself clear. Sorry for my english. Thanks. TArpi
Any answer?