[IMP] ir_fields: no need to sanitize the _str_to_html as it is already done in the _symbol_set of html fields. This avoids doing twice the sanitization.

bzr revid: mat@openerp.com-20140206094628-umx2rfb9rcim7v82
This commit is contained in:
Martin Trigaux 2014-02-06 10:46:28 +01:00
parent 909ff6e368
commit 7950914c69
1 changed files with 1 additions and 4 deletions

View File

@ -183,12 +183,9 @@ class ir_fields_converter(orm.Model):
_(u"'%s' does not seem to be a number for field '%%(field)s'")
% value)
def _str_to_html(self, cr, uid, model, column, value, context=None):
return html_sanitize(value), []
def _str_id(self, cr, uid, model, column, value, context=None):
return value, []
_str_to_reference = _str_to_char = _str_to_text = _str_to_binary = _str_id
_str_to_reference = _str_to_char = _str_to_text = _str_to_binary = _str_to_html = _str_id
def _str_to_date(self, cr, uid, model, column, value, context=None):
try: