Improve _type for issue226

This commit is contained in:
Cédric Krier committed 2008-07-30 20:06:04 +02:00
1 parent a9dabde86a
commit 770d8ee969
1 file changed
+1 -1
+1 -1
View File
@@ -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: