From 61052ef25601e7f690a36a596ac41c14561e4385 Mon Sep 17 00:00:00 2001 From: ced <> Date: Wed, 20 Jun 2007 07:12:51 +0000 Subject: [PATCH] KERNEL: fix search on fields function of type one2many, many2many bzr revid: ced-40c3614244f9343240bee07535dcfc15562b38a9 --- bin/osv/orm.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/bin/osv/orm.py b/bin/osv/orm.py index d058ef0af3a..d06c069e3af 100644 --- a/bin/osv/orm.py +++ b/bin/osv/orm.py @@ -1390,7 +1390,18 @@ class orm(object): else: i+=1 continue - if field._type=='one2many': + if field._properties: + arg = [args.pop(i)] + j = i + while j