<field name="arch" type="xml">
<search string="Recruitment Analysis">
<group>
- <filter icon="terp-go-year" string="Year" name="year"
- domain="[('date','<=', time.strftime('%%Y-%%m-%%d')),('date','>=',time.strftime('%%Y-01-01'))]"
- help="Recruitment performed in current 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="Recruitment performed in 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="Recruitment during last month"/>
- <separator orientation="vertical"/>
<filter string="New"
icon="terp-document-new"
domain="[('state','=','draft')]"