[TEST] new tests for lp:118211 on mrp

bzr revid: alexandre.fayolle@camptocamp.com-20130522153705-vivt0a2wb4xwesco
This commit is contained in:
Alexandre Fayolle
2013-05-22 17:37:05 +02:00
parent 486116588f
commit 0418aee3c7
2 changed files with 17 additions and 0 deletions
+1
View File
@@ -77,6 +77,7 @@ 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/multicompany.yml',
# 'test/order_demo.yml',
# 'test/order_process.yml',
# 'test/cancel_order.yml',
+16
View File
@@ -0,0 +1,16 @@
-
Set the current user as multicompany user
-
!context
uid: 'stock.multicompany_user'
-
check no error on getting default mrp.production values in multicompany setting
-
!python {model: mrp.production}: |
location_obj = self.pool.get('stock.location')
fields = ['location_src_id', 'location_dest_id']
defaults = self.default_get(cr, uid, ['location_id', 'location_dest_id', 'type'], context)
for field in fields:
if defaults[field] != False:
assert location_obj.check_access_rule(cr, uid, defaults[field], 'read', context), "unreadable location %s" % field