<field name="arch" type="xml">
<search string="Sales Receipt 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="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 string="Draft"
icon="terp-document-new"
domain="[('state','=','draft')]"
<field name="account_id"/>
<separator orientation="vertical"/>
<field name="date_due"/>
+ <field name="date"/>
<separator orientation="vertical" groups="base.group_multi_company"/>
<field name="company_id" groups="base.group_multi_company" widget="selection"/>
</group>