[TEST] fix name error in test
bzr revid: alexandre.fayolle@camptocamp.com-20130523061748-0dzsi5hk18u3cdv2
This commit is contained in:
@@ -31,9 +31,9 @@
|
||||
for type in ('in', 'internal', 'out'):
|
||||
result = self.onchange_move_type(cr, uid, [], type, context)['value']
|
||||
for field in fields:
|
||||
if defaults[field] != False:
|
||||
if result[field] != False:
|
||||
try:
|
||||
location_obj.check_access_rule(cr, uid, defaults[field], 'read', context)
|
||||
location_obj.check_access_rule(cr, uid, result[field], 'read', context)
|
||||
except Exception, exc:
|
||||
assert False, "unreadable location %s: %s" % (field, exc)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user