From 770d8ee9690bac1c848098b91cd0bc2e244309f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 30 Jul 2008 20:06:04 +0200 Subject: [PATCH] Improve _type for issue226 --- tryton/gui/window/view_form/view/list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tryton/gui/window/view_form/view/list.py b/tryton/gui/window/view_form/view/list.py index 34922e08b8..abfe70adf0 100644 --- a/tryton/gui/window/view_form/view/list.py +++ b/tryton/gui/window/view_form/view/list.py @@ -287,7 +287,7 @@ class ViewList(ParserView): return False model = model.models[path[0][0]] - if path[1]._type == 'many2one': + if hasattr(path[1], '_type') and path[1]._type == 'many2one': value = model[path[1].name].get(model) ir_action_keyword = RPCProxy('ir.action.keyword') try: