[FIX] project_timesheet: fixed yaml that can't work in february
bzr revid: qdp-launchpad@tinyerp.com-20110113171045-kmqrvymihqs0yd1s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user