[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:
parent
6cb138026a
commit
7a88100961
|
@ -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','<=', time.strftime('%%Y-%%m-%%d')),('date','>=',time.strftime('%%Y-01-01'))]" help="year"/>
|
||||
<filter icon="terp-go-year" string="Year" name="year" domain="['|',('date', '=', False),'&',('date','<=', time.strftime('%%Y-%%m-%%d')),('date','>=',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"/>
|
||||
|
|
Loading…
Reference in New Issue