[FIX] fields: after pass domain in many2many fields, return some duplicate ids

bzr revid: hmo@tinyerp.com-20101028093809-xuxlwaj9gtd2vge2
This commit is contained in:
Harry (OpenERP)
2010-10-28 15:08:09 +05:30
parent 63aaa51bce
commit 6decbe7537
+1 -1
View File
@@ -583,7 +583,7 @@ class many2many(_column):
}
cr.execute(query, [tuple(ids),] + where_params)
for r in cr.fetchall():
res[r[1]].append(r[0])
if r[0] not in res[r[1]]: res[r[1]].append(r[0])
return res
def set(self, cr, obj, id, name, values, user=None, context=None):