[FIX] Reading a record which is having a reference attachment in ir.attachment model, throws traceback in GTK-Client: (Maintenance Case : 576295)

bzr revid: rgo@tinyerp.com-20120627085709-prq3w6zlesr952ld
This commit is contained in:
Ravi Gohil (Open ERP)
2012-06-27 14:27:09 +05:30
parent 06509a0043
commit 4fadf6b8ee
+1 -1
View File
@@ -57,7 +57,7 @@ class ir_attachment(osv.osv):
def _search(self, cr, uid, args, offset=0, limit=None, order=None, context=None, count=False, access_rights_uid=None):
ids = super(ir_attachment, self)._search(cr, uid, args, offset=offset,
limit=limit, order=order,
context=context, count=count,
context=context, count=False,
access_rights_uid=access_rights_uid)
if not ids:
if count: