[IMP] project_timesheet:YML improvements for dates
bzr revid: psi@tinyerp.co.in-20110105125700-3lg23srkdyyshnb3
This commit is contained in:
parent
40646c814c
commit
5a8ec7c3aa
|
@ -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: '2010-06-03'
|
||||
date_from: '2010-06-01'
|
||||
date_to: '2010-06-30'
|
||||
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)"
|
||||
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: '2010-06-03 14:54:55'
|
||||
date_start: !eval time.strftime('%Y-%m-%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: '2010-06-03 15:04:47'
|
||||
- date: !eval time.strftime('%Y-%m-%d %H:%M:%S')
|
||||
hours: 10.0
|
||||
name: Get work calendar of all employees
|
||||
user_id: res_users_hrmanager0
|
||||
|
|
Loading…
Reference in New Issue