[IMP] give access rights in project issue
bzr revid: fka@tinyerp.com-20130314094101-3n3mkiw1msm0vyrc
This commit is contained in:
parent
17a2077a32
commit
6bc6619612
|
@ -53,6 +53,7 @@ It allows the manager to quickly check the issues, assign them and decide on the
|
|||
],
|
||||
'demo': ['project_issue_demo.xml'],
|
||||
'test': [
|
||||
'test/issue_users.yml',
|
||||
'test/subscribe_issue.yml',
|
||||
'test/issue_process.yml',
|
||||
'test/cancel_issue.yml',
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
-
|
||||
Project user can cancelled issue, so let's check data with giving the access rights of user.
|
||||
-
|
||||
!context
|
||||
uid: 'res_users_project_issue_user'
|
||||
-
|
||||
In order to test process of issue tracking in OpenERP, I cancel the unqualified Issue.
|
||||
-
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
-
|
||||
Test the whole create project issue with project user.
|
||||
-
|
||||
!context
|
||||
uid: 'res_users_project_issue_user'
|
||||
-
|
||||
!record {model: project.issue, id: project_task_1, view: False}:
|
||||
task_id: 'project.project_task_17'
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
-
|
||||
Project user can subscribe issue, so let's check data with giving the access rights of user.
|
||||
-
|
||||
!context
|
||||
uid: 'res_users_project_issue_user'
|
||||
-
|
||||
In order to test process of issue tracking in OpenERP, I Open the Issue.
|
||||
-
|
||||
|
@ -40,11 +45,21 @@
|
|||
-
|
||||
!assert {model: project.issue, id: crm_case_buginaccountsmodule0, severity: error, string: Issue should be in open state}:
|
||||
- state == 'open'
|
||||
-
|
||||
Only project manager can create Task for Issue, so let's check data with giving the access rights of manager.
|
||||
-
|
||||
!context
|
||||
uid: 'res_users_project_issue_manager'
|
||||
-
|
||||
I create Task for Issue.
|
||||
-
|
||||
!python {model: project.issue}: |
|
||||
self.convert_issue_task(cr, uid, [ref("crm_case_buginaccountsmodule0")])
|
||||
-
|
||||
After resolving Issue Project user can close issue, so let's check data with giving the access rights of user.
|
||||
-
|
||||
!context
|
||||
uid: 'res_users_project_issue_user'
|
||||
-
|
||||
I close Issue after resolving it
|
||||
-
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
-
|
||||
Create a user as 'Project manager'
|
||||
-
|
||||
!record {model: res.users, id: res_users_project_issue_manager}:
|
||||
company_id: base.main_company
|
||||
name: Project Manager
|
||||
login: prim
|
||||
password: prim
|
||||
groups_id:
|
||||
- project.group_project_manager
|
||||
-
|
||||
Create a user as 'Project user'
|
||||
-
|
||||
!record {model: res.users, id: res_users_project_issue_user}:
|
||||
company_id: base.main_company
|
||||
name: Project User
|
||||
login: priu
|
||||
password: priu
|
||||
groups_id:
|
||||
- project.group_project_user
|
|
@ -1,5 +1,10 @@
|
|||
-
|
||||
In Order to test process of Issue in OpenERP, Custmer send the issue by email.
|
||||
Project user can subscribe issue, so let's check data with giving the access rights of user.
|
||||
-
|
||||
!context
|
||||
uid: 'res_users_project_issue_user'
|
||||
-
|
||||
In Order to test process of Issue in OpenERP, Customer send the issue by email.
|
||||
-
|
||||
!python {model: mail.thread}: |
|
||||
from openerp import addons
|
||||
|
|
Loading…
Reference in New Issue