Amit Dodiya (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-server/6.1-opw-573325-ado into 
lp:openobject-server/6.1.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-server/6.1-opw-573325-ado/+merge/100398

Hello,

"[FIX] [6.1][ir_attachement] _search method should work with count option"

In the override method _search, if the option count is True, the method _search 
return an number of ids instead of ids.

The count option must be set to false in order to have always a list of id.

Regards,
Amit
-- 
https://code.launchpad.net/~openerp-dev/openobject-server/6.1-opw-573325-ado/+merge/100398
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-server/6.1-opw-573325-ado.
=== modified file 'openerp/addons/base/ir/ir_attachment.py'
--- openerp/addons/base/ir/ir_attachment.py	2012-03-09 10:04:29 +0000
+++ openerp/addons/base/ir/ir_attachment.py	2012-04-02 12:24:20 +0000
@@ -57,7 +57,7 @@
     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:

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to