[IMP] add yml of mrp_users and give access rights
bzr revid: fka@tinyerp.com-20130301092805-56z3lzm8obeon6re
This commit is contained in:
parent
ada78b2f1c
commit
ab83bc5d85
|
@ -77,9 +77,10 @@ Dashboard / Reports for MRP will include:
|
|||
#TODO: This yml tests are needed to be completely reviewed again because the product wood panel is removed in product demo as it does not suit for new demo context of computer and consultant company
|
||||
# so the ymls are too complex to change at this stage
|
||||
'test': [
|
||||
# 'test/order_demo.yml',
|
||||
# 'test/order_process.yml',
|
||||
# 'test/cancel_order.yml',
|
||||
'test/mrp_users.yml',
|
||||
'test/order_demo.yml',
|
||||
'test/order_process.yml',
|
||||
'test/cancel_order.yml',
|
||||
],
|
||||
'installable': True,
|
||||
'application': True,
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
|
||||
access_account_analytic_line_user,account.analytic.line,account.model_account_analytic_line,group_mrp_user,1,1,1,0
|
||||
access_mrp_workcenter,mrp.workcenter,model_mrp_workcenter,mrp.group_mrp_user,1,0,0,0
|
||||
access_mrp_routing,mrp.routing,model_mrp_routing,mrp.group_mrp_user,1,0,0,0
|
||||
access_mrp_routing_workcenter,mrp.routing.workcenter,model_mrp_routing_workcenter,mrp.group_mrp_user,1,0,0,0
|
||||
|
|
|
|
@ -4,6 +4,7 @@
|
|||
|
||||
<record id="group_mrp_user" model="res.groups">
|
||||
<field name="name">User</field>
|
||||
<field name="implied_ids" eval="[(4, ref('base.group_user'))]"/>
|
||||
<field name="category_id" ref="base.module_category_manufacturing"/>
|
||||
</record>
|
||||
<record id="group_mrp_manager" model="res.groups">
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
-
|
||||
MRP user can cancelled Production Order, so let's check data with giving the access rights of user.
|
||||
-
|
||||
!context
|
||||
uid: 'res_users_mrp_user'
|
||||
-
|
||||
I first confirm order for PC Assemble SC349.
|
||||
-
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
-
|
||||
Create a user as 'MRP Manager'
|
||||
-
|
||||
!record {model: res.users, id: res_users_mrp_manager}:
|
||||
company_id: base.main_company
|
||||
name: MRP Manager
|
||||
login: mam
|
||||
password: mam
|
||||
groups_id:
|
||||
- mrp.group_mrp_manager
|
||||
-
|
||||
Create a user as 'MRP User'
|
||||
-
|
||||
!record {model: res.users, id: res_users_mrp_user}:
|
||||
company_id: base.main_company
|
||||
name: MRP User
|
||||
login: mau
|
||||
password: mau
|
||||
groups_id:
|
||||
- mrp.group_mrp_user
|
|
@ -1,3 +1,8 @@
|
|||
-
|
||||
MRP user can create Production Order, so let's check data with giving the access rights of user.
|
||||
-
|
||||
!context
|
||||
uid: 'res_users_mrp_user'
|
||||
-
|
||||
I create Production Order of PC Assemble SC349 to produce 5.0 Unit.
|
||||
-
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
-
|
||||
MRP user can doing all process related to Production Order, so let's check data with giving the access rights of user.
|
||||
-
|
||||
!context
|
||||
uid: 'res_users_mrp_user'
|
||||
-
|
||||
I compute the production order.
|
||||
-
|
||||
|
|
Loading…
Reference in New Issue