diff options
| author | Stephane Wirtel <stephane@openerp.com> | 2010-03-11 14:39:05 +0100 |
|---|---|---|
| committer | Stephane Wirtel <stephane@openerp.com> | 2010-03-11 14:39:05 +0100 |
| commit | 795cf7129e8c4d0934eb9d27fede052d1c4c7d60 (patch) | |
| tree | b2c102318ebd6075a635d2ae29debfdba02bdde8 | |
| parent | 1629f7cc7532cabb50912d53efc59aabdc641c6f (diff) | |
[FIX] hr_timesheet_sheet: Add a new button in the search view, only
show the confirmed sheets
bzr revid: stephane@openerp.com-20100311133905-0kbhuy9yy02a4uqe
| -rw-r--r-- | addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml index 08d5f7f9776..24008e64843 100644 --- a/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml +++ b/addons/hr_timesheet_sheet/hr_timesheet_sheet_view.xml @@ -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','<',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"/> |
