[MERGE] OPW 576295: ir_attachment: fix regression/typo introduced in r.4069

count is explicitly set to False in order to
filter the results coming from upstream before
doing the actual count

bzr revid: odo@openerp.com-20120816154020-5s6wbwfb5l2xsnyv
This commit is contained in:
Olivier Dony
2012-08-16 17:40:20 +02:00
+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: