[IMP] give access rights in yml of hr_timesheet
bzr revid: fka@tinyerp.com-20130314112018-oy0m2lhwc0euq3nh
This commit is contained in:
parent
d3905268bc
commit
541a46fb87
|
@ -57,6 +57,7 @@ up a management by affair.
|
|||
],
|
||||
'demo': ['hr_timesheet_demo.xml'],
|
||||
'test': [
|
||||
'test/hr_timesheet_users.yml',
|
||||
'test/test_hr_timesheet.yml',
|
||||
'test/hr_timesheet_report.yml',
|
||||
'test/hr_timesheet_demo.yml',
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
-
|
||||
Give the access rights of Hr Officer to create employee.
|
||||
-
|
||||
!context
|
||||
uid: 'res_hr_timesheet_officer'
|
||||
-
|
||||
!record {model: hr.analytic.timesheet, id: working_hours_coding, view: False}:
|
||||
user_id: base.user_demo
|
||||
|
|
|
@ -0,0 +1,30 @@
|
|||
-
|
||||
Create a user as 'HR Manager'
|
||||
-
|
||||
!record {model: res.users, id: res_hr_timesheet_manager}:
|
||||
company_id: base.main_company
|
||||
name: HR manager
|
||||
login: hrtm
|
||||
password: hrtm
|
||||
groups_id:
|
||||
- base.group_hr_manager
|
||||
-
|
||||
Create a user as 'HR Officer'
|
||||
-
|
||||
!record {model: res.users, id: res_hr_timesheet_officer}:
|
||||
company_id: base.main_company
|
||||
name: HR Officer
|
||||
login: hrto
|
||||
password: hrto
|
||||
groups_id:
|
||||
- base.group_hr_user
|
||||
-
|
||||
Create a user as 'Employee'
|
||||
-
|
||||
!record {model: res.users, id: res_hr_timesheet_employee}:
|
||||
company_id: base.main_company
|
||||
name: Employee
|
||||
login: empt
|
||||
password: empt
|
||||
groups_id:
|
||||
- base.group_user
|
|
@ -1,6 +1,11 @@
|
|||
-
|
||||
In order to test hr_timesheet Module in OpenERP, I make "Sign In/Sign Out for Project" to encode and
|
||||
track time spent on the different projects.
|
||||
-
|
||||
Give the access rights of Hr Officer to create employee.
|
||||
-
|
||||
!context
|
||||
uid: 'res_hr_timesheet_officer'
|
||||
-
|
||||
I create employee "Quentin Paolino" as "User".
|
||||
-
|
||||
|
@ -9,6 +14,11 @@
|
|||
name: Quentin Paolino
|
||||
parent_id: 'hr.employee_al'
|
||||
user_id: 'base.user_demo'
|
||||
-
|
||||
Give the access rights of Employee to Sign In/Sign Out in Project.
|
||||
-
|
||||
!context
|
||||
uid: 'res_hr_timesheet_employee'
|
||||
-
|
||||
On "Sign In/Sign Out by Project" wizard i click on "Sign In/Sign Out" button of this wizard.
|
||||
-
|
||||
|
|
Loading…
Reference in New Issue