[FIX] fields.html: behave as fields.text for empty values: store NULL

bzr revid: chm@openerp.com-20121119104332-bqm81nuik6pqsbf9
This commit is contained in:
Christophe Matthieu 2012-11-19 11:43:32 +01:00
parent 4dcede9044
commit 248f81277f
1 changed files with 2 additions and 0 deletions

View File

@ -234,6 +234,8 @@ class html(text):
_type = 'html'
_symbol_c = '%s'
def _symbol_f(x):
if x is None or x == False:
return None
return html_sanitize(x)
_symbol_set = (_symbol_c, _symbol_f)