[FIX] Reading a record which is having a reference attachment in ir.attachment model...
authorRavi Gohil (Open ERP) <rgo@tinyerp.com>
Wed, 27 Jun 2012 08:57:09 +0000 (14:27 +0530)
committerRavi Gohil (Open ERP) <rgo@tinyerp.com>
Wed, 27 Jun 2012 08:57:09 +0000 (14:27 +0530)
bzr revid: rgo@tinyerp.com-20120627085709-prq3w6zlesr952ld

openerp/addons/base/ir/ir_attachment.py

index 36b813b..a0418be 100644 (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: