Browse function must return a browse_null when calling with wrong id

bzr revid: ced-dad6bf469c6753c765ecca277d6b018cd776324d
This commit is contained in:
ced
2007-08-29 04:47:33 +00:00
parent c643e1d164
commit 27c1378575
+1 -1
View File
@@ -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):