From 76882d565d5c7eb48c0c6c8d24b581c8d3a953c8 Mon Sep 17 00:00:00 2001 From: Raphael Collet Date: Tue, 10 Jan 2012 09:34:50 +0100 Subject: [PATCH] [FIX] hr_timesheet_sheet: fix incorrect datetime computation in test bzr revid: rco@openerp.com-20120110083450-58txqb3phhax4yut --- addons/hr_timesheet_sheet/test/test_hr_timesheet_sheet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_timesheet_sheet/test/test_hr_timesheet_sheet.yml b/addons/hr_timesheet_sheet/test/test_hr_timesheet_sheet.yml index 66fee96a9a0..25f3cc36843 100644 --- a/addons/hr_timesheet_sheet/test/test_hr_timesheet_sheet.yml +++ b/addons/hr_timesheet_sheet/test/test_hr_timesheet_sheet.yml @@ -60,7 +60,7 @@ !record {model: hr.attendance, id: hr_attendance_1}: action: sign_out employee_id: 'hr.employee_qdp' - name: !eval time.strftime('%Y-%m-%d')+' '+'%s:%s:%s' %(min(23,datetime.now().hour+8),min(59,datetime.now().minute+1),min(59,datetime.now().second+1)) + name: !eval (datetime.now() + timedelta(hours=8.25)).strftime('%Y-%m-%d %H:%M:%S') - I create Timesheet Entry for time spend on today work. -