From c0494be7e91190886189406be7c49c0f4dbda059 Mon Sep 17 00:00:00 2001 From: Stephane Wirtel Date: Fri, 11 Jun 2010 17:52:14 +0200 Subject: [PATCH] [IMP] Add the domain support for the one2many fields bzr revid: stephane@openerp.com-20100611155214-jijawj3js5o4ebtu --- bin/osv/fields.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/osv/fields.py b/bin/osv/fields.py index bce5ea8829f..9d97304aff1 100644 --- a/bin/osv/fields.py +++ b/bin/osv/fields.py @@ -433,7 +433,7 @@ class one2many(_column): res = {} for id in ids: res[id] = [] - ids2 = obj.pool.get(self._obj).search(cr, user, [(self._fields_id, 'in', ids)], limit=self._limit, context=context) + ids2 = obj.pool.get(self._obj).search(cr, user, self._domain + [(self._fields_id, 'in', ids)], limit=self._limit, context=context) for r in obj.pool.get(self._obj)._read_flat(cr, user, ids2, [self._fields_id], context=context, load='_classic_write'): res[r[self._fields_id]].append(r['id']) return res