Jignesh Rathod(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/trunk-bug-1039013-amp into
lp:openobject-addons.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #1039013 in OpenERP Addons: "[trunk] Traceback while opening account from
Chart of Accounts"
https://bugs.launchpad.net/openobject-addons/+bug/1039013
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1039013-amp/+merge/120553
Hello ,
Fixes the problem of TypeError: string indices must be integers, not str
of name_get method in account.py.
Thanks!
--
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1039013-amp/+merge/120553
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/trunk-bug-1039013-amp.
=== modified file 'account/account.py'
--- account/account.py 2012-08-08 14:08:46 +0000
+++ account/account.py 2012-08-21 12:58:21 +0000
@@ -584,6 +584,8 @@
return []
reads = self.read(cr, uid, ids, ['name', 'code'], context=context)
res = []
+ if not isinstance(reads, list):
+ reads = [reads]
for record in reads:
name = record['name']
if record['code']:
_______________________________________________
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