[FIX] hr_timesheet_sheet: Add a new button in the search view, only

show the confirmed sheets

bzr revid: stephane@openerp.com-20100311133905-0kbhuy9yy02a4uqe
This commit is contained in:
Stephane Wirtel
2010-03-11 14:39:05 +01:00
parent 1629f7cc75
commit 795cf7129e
@@ -179,7 +179,8 @@
<field name="arch" type="xml">
<search string="Search Timesheet">
<group col="10" colspan="4">
<filter icon="terp-crm" string="Unvalidated" domain="[('state','!=','done'),('date_to','&lt;',current_date')]" help="Unvalidated Timesheets"/>
<filter icon="terp-crm" string="Unvalidated" domain="[('state','in',('draft', 'new'))]" help="Unvalidated Timesheets"/>
<filter icon="terp-crm" string="Confirmed" domain="[('state','=','confirmed')]" help="Confirmed Timesheets"/>
<separator orientation="vertical"/>
<field name="state">
<filter icon="terp-hr" domain="[('state','=','draft')]" help="Draft Timesheets"/>