From 15638e45c71d704ba84da0f28ec0825f72d27da8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 15 Feb 2008 15:08:11 +0100 Subject: [PATCH] Fix call to selection function --- trytond/osv/orm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/trytond/osv/orm.py b/trytond/osv/orm.py index 7e5f576ac0..3354397081 100644 --- a/trytond/osv/orm.py +++ b/trytond/osv/orm.py @@ -935,8 +935,8 @@ class ORM(object): (tuple, list)): sel = fields_def[field[len(prefix)]]['selection'] else: - sel = fields_def[field[len(prefix)]]['selection']( - self, cursor, user, context) + sel = getattr(self, fields_def[field[len(prefix)]]\ + ['selection'])(cursor, user, context) for key, val in sel: if str(key) == line[i]: res = key