#get content of the real field
for record in model.browse(cr, uid, [context["object_id"]]):
if record[real_field]:
- myPad.setText(path, html2plaintext(record[real_field]))
+ myPad.setText(path, (html2plaintext(record[real_field]).encode('utf-8')))
#Etherpad for html not functional
#myPad.setHTML(path, record[real_field])
html = html.replace(' ' * 2, ' ')
html = html.replace('>', '>')
html = html.replace('<', '<')
+ html = html.replace('&', '&')
# strip all lines
html = '\n'.join([x.strip() for x in html.splitlines()])
# sometimes returns emails without at least '@'. The '@'
# is strictly required in RFC2822's `addr-spec`.
if addr[1]
- if '@' in addr[1]]
\ No newline at end of file
+ if '@' in addr[1]]