- <filter icon="terp-go-year" string="Year"
- name="year"
- domain="[('date','<=', time.strftime('%%Y-%%m-%%d')),('date','>=',time.strftime('%%Y-01-01'))]"
- help="year"/>
- <separator orientation="vertical"/>
- <filter icon="terp-go-month" string="Month"
- name="month"
- domain="[('date','<=',(datetime.date.today()+relativedelta(day=31)).strftime('%%Y-%%m-%%d')),('date','>=',(datetime.date.today()-relativedelta(day=1)).strftime('%%Y-%%m-%%d'))]"
- help="current month"/>
- <filter icon="terp-go-month" string="Month-1"
- domain="[('date','<=', (datetime.date.today() - relativedelta(day=31, months=1)).strftime('%%Y-%%m-%%d')),('date','>=',(datetime.date.today() - relativedelta(day=1,months=1)).strftime('%%Y-%%m-%%d'))]"
- help="last month"/>
- <separator orientation="vertical"/>
- <filter icon="terp-go-year" string=" 365 Days "
- domain="[('day','<=', time.strftime('%%Y-%%m-%%d')),('day','>',(datetime.date.today()-datetime.timedelta(days=365)).strftime('%%Y-%%m-%%d'))]"
- help="Analytic Entries of last 365 days"/>
- <filter icon="terp-go-month" string=" 30 Days "
- name="month"
- domain="[('day','<=', time.strftime('%%Y-%%m-%%d')), ('day','>',(datetime.date.today()-datetime.timedelta(days=30)).strftime('%%Y-%%m-%%d'))]"
- help="Analytic Entries of last 30 days"/>
- <filter icon="terp-go-week"
- string=" 7 Days "
- domain="[('day','<=', time.strftime('%%Y-%%m-%%d')), ('day','>',(datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d'))]"
- help="Analytic Entries during last 7 days"/>
- <separator orientation="vertical"/>