diff options
| author | Harry (OpenERP) <hmo@tinyerp.com> | 2010-10-28 15:08:09 +0530 |
|---|---|---|
| committer | Harry (OpenERP) <hmo@tinyerp.com> | 2010-10-28 15:08:09 +0530 |
| commit | 6decbe75377c19f8552784ecad59ef24a64aebc5 (patch) | |
| tree | dfb803c30933fb16cff131329afae9f903ab4b0f | |
| parent | 63aaa51bce3027953be23db2f614892d77eb0b79 (diff) | |
[FIX] fields: after pass domain in many2many fields, return some duplicate ids
bzr revid: hmo@tinyerp.com-20101028093809-xuxlwaj9gtd2vge2
| -rw-r--r-- | bin/osv/fields.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/osv/fields.py b/bin/osv/fields.py index 664f51128ee..86ae6be793f 100644 --- a/bin/osv/fields.py +++ b/bin/osv/fields.py @@ -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): |
