[FIX] qweb: t-field must search all_columns

bzr revid: chs@openerp.com-20130702204949-nqzhz226d24fvthx
This commit is contained in:
Christophe Simonis 2013-07-02 22:49:49 +02:00
parent 5a5d9d5941
commit 58a4677f46
1 changed files with 1 additions and 1 deletions

View File

@ -282,7 +282,7 @@ class QWebXml(object):
inner = ""
try:
if record._model._columns.get(t_att["field"])._type == 'many2one':
if record._model._all_columns.get(t_att["field"]).column._type == 'many2one':
field = getattr(record, t_att["field"])
if field:
inner = cgi.escape(str(field.name_get()[0][1]))