I've created a filter for filter last month and last year of order it doesn't work correctly
<filter icon="terp-go-month" string="Last Year"
domain="[('date_order','<=', (context_today()-relativedelta(day=31,months=12,years=1)).strftime('%%Y-%%m-%%d')),
('date_order','>=',(context_today()-relativedelta(day=1,months=1,years=1)).strftime('%%Y-%%m-%%d'))]"
help="last year"/>
<filter icon="terp-go-month" string="Last Month"
domain="[('date_order','<=', (context_today()-relativedelta(day=31, months=1)).strftime('%%Y-%%m-%%d')),
('date_order','>=',(context_today()-relativedelta(day=1,months=1)).strftime('%%Y-%%m-%%d'))]"
help="last month"/>
and I create filter for month like this it works correctly
<filter icon="terp-go-month" string="Month"
name="month"
domain="[('date_order','<=',
(context_today()+relativedelta(day=31)).strftime('%%Y-%%m-%%d')),
('date_order','>=',
(context_today()-relativedelta(day=1)).strftime('%%Y-%%m-%%d'))]"
help="current month"/>
I dont know why? Thank for support