[REF] hr_timesheet_sheet: Rewrite the domain

bzr revid: stephane@openerp.com-20100308165648-24jocdsyc8ctncpe
This commit is contained in:
Stephane Wirtel 2010-03-08 17:56:48 +01:00
parent 04ef9b7795
commit c8a24fd862
1 changed files with 2 additions and 2 deletions

View File

@ -197,8 +197,8 @@
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Search Timesheet">
<group col="10" colspan="4">
<filter icon="terp-crm" string="Unvalidated" domain="[('state','&lt;&gt;','done'),('date_to','&lt;',time.strftime('%%Y-%%m-%%d'))]" help="Unvalidated Timesheets"/>
<group col="10" colspan="4">
<filter icon="terp-crm" string="Unvalidated" domain="[('state','!=','done'),('date_to','&lt;',current_date')]" help="Unvalidated Timesheets"/>
<separator orientation="vertical"/>
<field name="state">
<filter icon="terp-hr" domain="[('state','=','draft')]" help="Draft Timesheets"/>