Hi,
I am creating filter strings that works perfect according to these instructions:
http://odoobyriyasshon.blogspot.com/2015/07/search-view-filters-in-odoo.html?m=1
But, I also want to create a relative filter, that can show what have happened in between.
Eg. I have been playoung around with this filter for Previous Month
<filter string="Prev Month" name="prev_month" domain="[('date_order','>=',(context_today()-relativedelta(months=1)).strftime('%Y-%m-01')),('date_order','<',time.strftime('%Y-%m-01'))]"/>
What I would prefer is if it also could filter like this:
date_order in between 11-12 months ago.
And also everything >12 months ago.
any ideas?