[TEST] fix name error in test

bzr revid: alexandre.fayolle@camptocamp.com-20130523061748-0dzsi5hk18u3cdv2
This commit is contained in:
alexandre.fayolle@camptocamp.com
2013-05-23 08:17:48 +02:00
parent aa33867973
commit a1c18b87f2
+2 -2
View File
@@ -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)