[IMP] give access rights in yml of mrp repair
bzr revid: fka@tinyerp.com-20130314105411-cgqik9a6grk0pqjl
This commit is contained in:
parent
6f4588cc62
commit
d3905268bc
|
@ -52,7 +52,8 @@ The following topics should be covered by this module:
|
||||||
'mrp_repair_report.xml',
|
'mrp_repair_report.xml',
|
||||||
],
|
],
|
||||||
'demo': ['mrp_repair_demo.yml'],
|
'demo': ['mrp_repair_demo.yml'],
|
||||||
'test': ['test/test_mrp_repair_noneinv.yml',
|
'test': ['test/mrp_repair_users.yml',
|
||||||
|
'test/test_mrp_repair_noneinv.yml',
|
||||||
'test/test_mrp_repair_b4inv.yml',
|
'test/test_mrp_repair_b4inv.yml',
|
||||||
'test/test_mrp_repair_afterinv.yml',
|
'test/test_mrp_repair_afterinv.yml',
|
||||||
'test/test_mrp_repair_cancel.yml',
|
'test/test_mrp_repair_cancel.yml',
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
-
|
||||||
|
Create a user as 'MRP Repair Manager'
|
||||||
|
-
|
||||||
|
!record {model: res.users, id: res_mrp_repair_manager}:
|
||||||
|
company_id: base.main_company
|
||||||
|
name: MRP Manager
|
||||||
|
login: marm
|
||||||
|
password: marm
|
||||||
|
groups_id:
|
||||||
|
- mrp.group_mrp_manager
|
||||||
|
-
|
||||||
|
Create a user as 'MRP Repair User'
|
||||||
|
-
|
||||||
|
!record {model: res.users, id: res_mrp_repair_user}:
|
||||||
|
company_id: base.main_company
|
||||||
|
name: MRP User
|
||||||
|
login: maru
|
||||||
|
password: maru
|
||||||
|
groups_id:
|
||||||
|
- mrp.group_mrp_user
|
|
@ -1,5 +1,8 @@
|
||||||
-
|
-
|
||||||
In order to test Invoice Method 'After Repair'.
|
In order to test Invoice Method 'After Repair' with giving the access rights of mrp user.
|
||||||
|
-
|
||||||
|
!context
|
||||||
|
uid: 'res_mrp_repair_user'
|
||||||
-
|
-
|
||||||
I confirm Repair order taking Invoice Method 'After Repair'.
|
I confirm Repair order taking Invoice Method 'After Repair'.
|
||||||
-
|
-
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
-
|
-
|
||||||
Now I test for Invoice Method 'Before Repair'.
|
Now I test for Invoice Method 'Before Repair' with giving the access rights of mrp user.
|
||||||
|
-
|
||||||
|
!context
|
||||||
|
uid: 'res_mrp_repair_user'
|
||||||
-
|
-
|
||||||
I confirm Repair order for Invoice Method 'Before Repair'.
|
I confirm Repair order for Invoice Method 'Before Repair'.
|
||||||
-
|
-
|
||||||
|
|
|
@ -1,6 +1,9 @@
|
||||||
-
|
-
|
||||||
In order to test the cancel flow of mrp_repair module,
|
In order to test the cancel flow of mrp_repair module,
|
||||||
I start by creating new copy Repair order for "PC Assemble SC234" product.
|
I start by creating new copy Repair order for "PC Assemble SC234" product with giving access rights of mrp user.
|
||||||
|
-
|
||||||
|
!context
|
||||||
|
uid: 'res_mrp_repair_user'
|
||||||
-
|
-
|
||||||
!python {model: mrp.repair}: |
|
!python {model: mrp.repair}: |
|
||||||
copy_id = self.copy(cr, uid, ref("mrp_repair_rmrp1"))
|
copy_id = self.copy(cr, uid, ref("mrp_repair_rmrp1"))
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
-
|
-
|
||||||
In order to test "mrp_repair" module, I start with confirm state, and start repair.
|
In order to test "mrp_repair" module, I start with confirm state, and start repair with giving the access rights of mrp user.
|
||||||
|
-
|
||||||
|
!context
|
||||||
|
uid: 'res_mrp_repair_user'
|
||||||
-
|
-
|
||||||
I confirm Repair order for Invoice Method 'No Invoice'.
|
I confirm Repair order for Invoice Method 'No Invoice'.
|
||||||
-
|
-
|
||||||
|
|
Loading…
Reference in New Issue