[Bug 462759] [NEW] Bug in openerp-server/bin/osv/fields.py
moylop260
moylop260 at hotmail.com
Wed Oct 28 17:38:15 UTC 2009
Public bug reported:
Binary package hint: openerp-server
I had a problem in the use of OpenERP-Server, since client.
I bugfix the problem, i attach it the bugfix:
Index: ../openerp-server/bin/osv/fields.py
#Bugfix in item what not is list or tuple
===================================================================
--- ../openerp-server/bin/osv/fields.py (revisión: current)
+++ ../openerp-server/bin/osv/fields.py (revision: bugfix)
@@ -528,6 +528,8 @@
return
obj = obj.pool.get(self._obj)
for act in values:
+ if not (isinstance(act, list) or isinstance(act, tuple)) or not act:
+ continue
if act[0] == 0:
idnew = obj.create(cr, user, act[2])
cr.execute('insert into '+self._rel+' ('+self._id1+','+self._id2+') values (%s,%s)', (id, idnew))
Index: ../openerp-server/bin/tools/__init__.py
** Affects: openerp-server (Ubuntu)
Importance: Undecided
Status: New
--
Bug in openerp-server/bin/osv/fields.py
https://bugs.launchpad.net/bugs/462759
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs at lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
More information about the universe-bugs
mailing list