From 1e81abb0bd5a35e325f0c13144ed2b6cacfddbbc Mon Sep 17 00:00:00 2001 From: "qdp-launchpad@tinyerp.com" <> Date: Thu, 13 Jan 2011 18:10:45 +0100 Subject: [PATCH] [FIX] project_timesheet: fixed yaml that can't work in february bzr revid: qdp-launchpad@tinyerp.com-20110113171045-kmqrvymihqs0yd1s --- .../test/worktask_entry_to_timesheetline_entry.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/addons/project_timesheet/test/worktask_entry_to_timesheetline_entry.yml b/addons/project_timesheet/test/worktask_entry_to_timesheetline_entry.yml index 86ad19c9943..4cf790c4e2b 100755 --- a/addons/project_timesheet/test/worktask_entry_to_timesheetline_entry.yml +++ b/addons/project_timesheet/test/worktask_entry_to_timesheetline_entry.yml @@ -50,9 +50,9 @@ Create a timesheet sheet for HR manager - !record {model: hr_timesheet_sheet.sheet, id: hr_timesheet_sheet_sheet_sheetforhrmanager0}: - date_current: !eval time.strftime('%Y-%m-%d') - date_from: !eval "'%s-%s-01' %(datetime.now().year, datetime.now().month)" - date_to: !eval "'%s-%s-30' %(datetime.now().year, datetime.now().month)" + date_current: !eval time.strftime('%Y-06-%d') + date_from: !eval "'%s-06-01' %(datetime.now().year)" + date_to: !eval "'%s-06-30' %(datetime.now().year)" name: Sheet for hr manager state: new user_id: res_users_hrmanager0 @@ -70,7 +70,7 @@ Create a task 'Get all timesheet records' - !record {model: project.task, id: project_task_getalltimesheetrecords0}: - date_start: !eval time.strftime('%Y-%m-%d %H:%M:%S') + date_start: !eval time.strftime('%Y-06-%d %H:%M:%S') name: Get all timesheet records planned_hours: 20.0 project_id: project_project_timesheetmanagement0 @@ -92,7 +92,7 @@ - !record {model: project.task, id: project_task_getalltimesheetrecords0}: work_ids: - - date: !eval time.strftime('%Y-%m-%d %H:%M:%S') + - date: !eval time.strftime('%Y-06-%d %H:%M:%S') hours: 10.0 name: Get work calendar of all employees user_id: res_users_hrmanager0