<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"/>

if isinstance(s, unicode):
        return s.encode('utf8')
    return s
TRANSLATED_ELEMENTS = {
    'abbr', 'b', 'bdi', 'bdo', 'br', 'cite', 'code', 'data', 'del', 'dfn', 'em',
    'font', 'i', 'ins', 'kbd', 'keygen', 'mark', 'math', 'meter', 'output',
    'progress', 'q', 'ruby', 's', 'samp', 'small', 'span', 'strong', 'sub',
    'sup', 'time', 'u', 'var', 'wbr', 'text',
}
TRANSLATED_ATTRS = {
    'string', 'help', 'sum', 'avg', 'confirm', 'placeholder', 'alt', 'title',
}
avoid_pattern = re.compile(r"[\s\n]*<!DOCTYPE", re.IGNORECASE)
class XMLTranslator(object):
    """ A sequence of serialized XML/HTML items, with some of them to translate
        (todo) and others already translated (done). The purpose of this object
        is to simplify the handling of phrasing elements (like <b>) that must be
        translated together with their surrounding text.
        For instance, the content of the "div" element below will be translated
        as a whole (without surrounding spaces):
            <div>
                Lorem ipsum dolor sit amet, consectetur adipiscing elit,
                <b>sed</b> do eiusmod tempor incididunt ut labore et dolore
                magna aliqua. <span class="more">Ut enim ad minim veniam,
                <em>quis nostrud exercitation</em> ullamco laboris nisi ut
                aliquip ex ea commodo consequat.</span>
            </div>
    """
    def __init__(self, callback, method, parser=None):