[IMP] If t-field can't get/use the resource, set it's content to None

bzr revid: fme@openerp.com-20140124132137-7m8840py82nlib40
This commit is contained in:
Fabien Meghazi
2014-01-24 14:21:37 +01:00
parent 2b6ac77f11
commit 76144806af
+1
View File
@@ -500,6 +500,7 @@ class FieldConverter(osv.AbstractModel):
except Exception:
_logger.warning("Could not get field %s for model %s",
field_name, record._model._name, exc_info=True)
content = None
g_att += ''.join(
' %s="%s"' % (name, werkzeug.utils.escape(value))