[FIX] ir_attachment: fix regression when counting attachments (OPW 576295)

Cherry-pick forward-port of rev-id odo@openerp.com-20120816154020-5s6wbwfb5l2xsnyv
from 6.1. Fixes regression introduced by r.4069.

bzr revid: odo@openerp.com-20121024124709-28w8rh8xnelvuhwg
This commit is contained in:
Olivier Dony 2012-10-24 14:47:09 +02:00
parent 11c0784d71
commit 4c591fa606
1 changed files with 1 additions and 1 deletions

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: