c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #27306
[Bug 802417] Re: [extra-6.0] nan_account_extension error on writing partner
Hello Bernardo Cabezas Serra,
"nan_account_extension" module is part of the extra-addons, and which is
not developed by "Tiny".
We are not the author of this module so I am assigning this issue to
the related author and they will take care. So I am setting this as a
"Won't fix".
Thanks.
** Changed in: openobject-addons
Status: New => Won't Fix
** Changed in: openobject-addons
Assignee: (unassigned) => NaN (nan-tic)
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/802417
Title:
[extra-6.0] nan_account_extension error on writing partner
Status in OpenERP Modules (addons):
Won't Fix
Bug description:
We got the following error on writing partner from xml-rpc:
------
[2011-06-27 10:48:05,733][soopbook_sl] ERROR:web-services:Uncaught exception
Traceback (most recent call last):
File "/home/openerp6/.virtualenvs/openerp6/lib/python2.6/site-packages/openerp-server/osv/osv.py", line 122, in wrapper
return f(self, dbname, *args, **kwargs)
File "/home/openerp6/.virtualenvs/openerp6/lib/python2.6/site-packages/openerp-server/osv/osv.py", line 176, in execute
res = self.execute_cr(cr, uid, obj, method, *args, **kw)
File "/home/openerp6/.virtualenvs/openerp6/lib/python2.6/site-packages/openerp-server/osv/osv.py", line 167, in execute_cr
return getattr(object, method)(cr, uid, *args, **kw)
File "/home/openerp6/.virtualenvs/openerp6/lib/python2.6/site-packages/openerp-server/addons/nan_account_extension/partner.py", line 122, in write
for id in ids:
TypeError: 'int' object is not iterable
----
The following patch works for us:
=== modified file 'nan_account_extension/partner.py'
--- nan_account_extension/partner.py 2011-03-06 12:20:48 +0000
+++ nan_account_extension/partner.py 2011-06-27 08:58:16 +0000
@@ -118,6 +118,7 @@
def write(self, cr, uid, ids, vals, context=None):
result = super(res_partner, self).write(cr, uid, ids, vals, context)
+ if type(ids) != list: ids = [ids,]
if 'customer' in vals or 'name' in vals:
for id in ids:
self.update_account(cr, uid, id, 'receivable', context)
Versions info:
- openerp server 6.0.2 (trunk ~openerp/openobject-server/6.0/)
- nan_accountextension from ~openerp-commiter/openobject-addons/extra-6.0/
- ubuntu lucid 64 bits
- python 2.6.5
To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/802417/+subscriptions
References