Ravi Gohil (OpenERP) has proposed merging
lp:~openerp-dev/openobject-server/6.1-opw-576295-rgo 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-576295-rgo/+merge/112295
Hello,
If any file in `Attachments` is referring to a record, reading that record will
throw traceback in GTK-Client.
Steps to reproduce the issue:
Go to Customer view, open record for `Agrolait` in form view, add an attachment
for this record.
Reload the 'Agrolait' in form view, a traceback will be faced saying,
`TypeError: 'bool' object is not iterable`.
This fix fixes this issue. Kindly review it.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-server/6.1-opw-576295-rgo/+merge/112295
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-server/6.1-opw-576295-rgo.
=== 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-06-27 09:03:25 +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