Browse function must return a browse_null when calling with wrong id
bzr revid: ced-dad6bf469c6753c765ecca277d6b018cd776324d
This commit is contained in:
+1
-1
@@ -556,7 +556,7 @@ class orm(object):
|
||||
elif isinstance(select,list):
|
||||
return self._list_class([browse_record(cr,uid,id,self,cache, context=context, list_class=self._list_class) for id in select], context)
|
||||
else:
|
||||
return []
|
||||
return browse_null()
|
||||
|
||||
# TODO: implement this
|
||||
def __export_row(self, cr, uid, row, fields, prefix, context=None):
|
||||
|
||||
Reference in New Issue
Block a user