[FIX] bad call to check_access_rules

bzr revid: alexandre.fayolle@camptocamp.com-20130523062022-u5bqrgpc3ctffhmi
This commit is contained in:
alexandre.fayolle@camptocamp.com 2013-05-23 08:20:22 +02:00
parent eeb9d91494
commit def3ef9003
1 changed files with 1 additions and 1 deletions

View File

@ -1702,7 +1702,7 @@ class stock_move(osv.osv):
if location_xml_id:
try:
location = mod_obj.get_object(cr, uid, 'stock', location_xml_id, context=context)
location.check_access_rule('read', context=context)
location._model.check_access_rule(cr, uid, [location.id], 'read', context=context)
location_id = location.id
except (orm.except_orm, ValueError):
# likely the user does not have read access on the location