[IMP] account.invoice.report: default `Year` filter should include draft invoices without `date`

This affects the result when Draft invoices are included,
so that they actually appear even without any `date` value,
as they are often meant for the current year.
This commit is contained in:
Olivier Dony 2014-06-30 14:25:20 +02:00
parent 6cb138026a
commit 7a88100961
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@
<field name="arch" type="xml">
<search string="Invoices Analysis">
<field name="date"/>
<filter icon="terp-go-year" string="Year" name="year" domain="[('date','&lt;=', time.strftime('%%Y-%%m-%%d')),('date','&gt;=',time.strftime('%%Y-01-01'))]" help="year"/>
<filter icon="terp-go-year" string="Year" name="year" domain="['|',('date', '=', False),'&amp;',('date','&lt;=', time.strftime('%%Y-%%m-%%d')),('date','&gt;=',time.strftime('%%Y-01-01'))]" help="year"/>
<separator/>
<filter string="Draft" icon="terp-document-new" domain="[('state','=','draft')]" help = "Draft Invoices"/>
<filter string="Pro-forma" icon="terp-gtk-media-pause" domain="['|', ('state','=','proforma'),('state','=','proforma2')]" help = "Pro-forma Invoices"/>