Somesh Khare(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-server/6.1-opw-572709-skh 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-572709-skh/+merge/97187

Hello,

[Fix]: Error re-opening created purchase order and customer invoice in form 
view in db without demo data.

Steps to reproduce: 
1. Fresh db without demo data.
2. Install account module and create a invoice and validate it.
3. Switch to invoice list view and again switch to the form view.

Error occurred.

This branch fixes this issue.

Kindly review the branch and share your views on it.

Thanks,
Somesh Khare
-- 
https://code.launchpad.net/~openerp-dev/openobject-server/6.1-opw-572709-skh/+merge/97187
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-server/6.1-opw-572709-skh.
=== 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-03-13 10:58:20 +0000
@@ -59,6 +59,8 @@
                                                  limit=limit, order=order,
                                                  context=context, count=count,
                                                  access_rights_uid=access_rights_uid)
+        if isinstance(ids, (str,int,long)):
+            ids = [ids]
         if not ids:
             if count:
                 return 0

_______________________________________________
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