<h1>Impacted versions:</h1>

9.0

<h1>Environment:</h1>

All Major Browsers (latest versions of Chrome, Safari, Firefox)
Runbot - latest 9.0 commit

<h1>Steps to reproduce:</h1>

<ol>
<li>Login to backend</li>
<li>View Sale Order List View (fonts and some formatting have been lost)</li>
<li>View inside a Sale Order - massive formatting problems, sale order document/page view is corrupted</li>
</ol>


<h1>Current behavior:</h1>

<ol>
<li>Huge formatting problems in the backend when related to fonts, icons, etc..</li>
<li>View inside a Sale Order - massive formatting problems, sale order document/page view is corrupted</li>
</ol>


<h1>Expected behavior:</h1>

Backend /web views are as they have always been, without formatting problems.

<h1>Video/Screenshot link (optional):</h1>

<img src="https://cloud.githubusercontent.com/assets/2337666/15846044/ceff033c-2cab-11e6-8455-af2ca5ac765c.gif"/>

""" Translate an HTML value (string), using `callback` for translating text
        appearing in `value`.
    """
    if not value:
        return value
    parser = etree.HTMLParser(encoding='utf-8')
    trans = XMLTranslator(callback, 'html', parser)
    wrapped = "<div>%s</div>" % encode(value)
    root = etree.fromstring(wrapped, parser)
    trans.process(root[0][0])               
    return trans.get_done()[5:-6]           
#
#
def translate(cr, name, source_type, lang, source=None):
    if source and name:
        cr.execute('select value from ir_translation where lang=%s and type=%s and name=%s and src=%s and md5(src)=md5(%s)', (lang, source_type, str(name), source, source))
    elif name:
        cr.execute('select value from ir_translation where lang=%s and type=%s and name=%s', (lang, source_type, str(name)))
    elif source:
        cr.execute('select value from ir_translation where lang=%s and type=%s and src=%s and md5(src)=md5(%s)', (lang, source_type, source, source))
    res_trans = cr.fetchone()
    res = res_trans and res_trans[0] or False
    return res
class GettextAlias(object):