[IMP] bring back the tests for MRP - backported from little after v7.0 in the trunk
lp bug: https://launchpad.net/bugs/1182515 fixed bzr revid: ls@numerigraphe.com-20140404123003-cdt5zz1vmupbgd1j
This commit is contained in:
parent
90ddb9f897
commit
bae4c6ce40
|
@ -74,13 +74,12 @@ Dashboard / Reports for MRP will include:
|
|||
'res_config_view.xml',
|
||||
],
|
||||
'demo': ['mrp_demo.xml'],
|
||||
#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/bom_with_service_type_product.yml',
|
||||
# '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