8.0

Version 8.0 contains a bug when copying text into a template (website editor) you can get the following result:

  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 289, in render_node
    result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 310, in render_element
    g_inner.append(self.render_node(current_node, qwebcontext))
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 289, in render_node
    result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 310, in render_element
    g_inner.append(self.render_node(current_node, qwebcontext))
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 289, in render_node
    result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 310, in render_element
    g_inner.append(self.render_node(current_node, qwebcontext))
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 289, in render_node
    result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 310, in render_element
    g_inner.append(self.render_node(current_node, qwebcontext))
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 289, in render_node
    result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element
    raise_qweb_exception(message="Could not render element %r" % element.tag, node=element, template=template)
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 310, in render_element
    g_inner.append(self.render_node(current_node, qwebcontext))
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 292, in render_node
    result += element.tail
QWebException: 'ascii' codec can't decode byte 0xc2 in position 93: ordinal not in range(128)

2014-07-23 09:15:52,116 31439 INFO demo800_inzo_20140723 werkzeug: 172.16.200.10 - - [23/Jul/2014 09:15:52] "GET / HTTP/1.0" 500 -
2014-07-23 09:15:52,179 31439 INFO ? werkzeug: 172.16.200.10 - - [23/Jul/2014 09:15:52] "GET /website/static/src/css/website.css HTTP/1.0" 200 -
2014-07-23 09:15:52,182 31439 INFO ? werkzeug: 172.16.200.10 - - [23/Jul/2014 09:15:52] "GET /web/static/lib/fontawesome/css/font-awesome.css HTTP/1.0" 304 -
2014-07-23 09:15:52,184 31439 INFO ? werkzeug: 172.16.200.10 - - [23/Jul/2014 09:15:52] "GET /web/static/lib/bootstrap/css/bootstrap.css HTTP/1.0" 304 -
2014-07-23 09:15:52,187 31439 INFO ? werkzeug: 172.16.200.10 - - [23/Jul/2014 09:15:52] "GET /web/static/lib/bootstrap/js/bootstrap.js HTTP/1.0" 200 -
2014-07-23 09:15:52,189 31439 INFO ? werkzeug: 172.16.200.10 - - [23/Jul/2014 09:15:52] "GET /web/static/lib/jquery/jquery.js HTTP/1.0" 200 -
2014-07-23 09:16:10,423 31439 ERROR demo800_inzo_20140723 openerp.addons.website.models.ir_http: 500 Internal Server Error:

Traceback (most recent call last):
  File "/opt/openerp/odoo/demo800/addons/website/models/ir_http.py", line 180, in _handle_exception
    response = super(ir_http, self)._handle_exception(exception)
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_http.py", line 104, in _handle_exception
    return request._handle_exception(exception)
  File "/opt/openerp/odoo/demo800/openerp/http.py", line 558, in _handle_exception
    return super(HttpRequest, self)._handle_exception(exception)
  File "/opt/openerp/odoo/demo800/openerp/http.py", line 1246, in get_response
    result.flatten()
  File "/opt/openerp/odoo/demo800/openerp/http.py", line 1119, in flatten
    self.response.append(self.render())
  File "/opt/openerp/odoo/demo800/openerp/http.py", line 1114, in render
    context=request.context)
  File "/opt/openerp/odoo/demo800/openerp/api.py", line 204, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/openerp/odoo/demo800/addons/website/models/ir_ui_view.py", line 170, in render
    return super(view, self).render(cr, uid, id_or_xml_id, values=values, engine=engine, context=context)
  File "/opt/openerp/odoo/demo800/openerp/api.py", line 204, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_ui_view.py", line 1018, in render
    return self.pool[engine].render(cr, uid, id_or_xml_id, qcontext, loader=loader, context=context)
  File "/opt/openerp/odoo/demo800/openerp/api.py", line 204, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 247, in render
    return self.render_node(self.get_template(id_or_xml_id, qwebcontext), qwebcontext)
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 289, in render_node
    result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 310, in render_element
    g_inner.append(self.render_node(current_node, qwebcontext))
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 287, in render_node
    result = self._render_tag[t_render](self, element, template_attributes, generated_attributes, qwebcontext)
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 405, in render_tag_call
    d[0] = self.render_element(element, template_attributes, generated_attributes, d)
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 310, in render_element
    g_inner.append(self.render_node(current_node, qwebcontext))
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 289, in render_node
    result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 310, in render_element
    g_inner.append(self.render_node(current_node, qwebcontext))
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 289, in render_node
    result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 310, in render_element
    g_inner.append(self.render_node(current_node, qwebcontext))
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 289, in render_node
    result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 310, in render_element
    g_inner.append(self.render_node(current_node, qwebcontext))
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 289, in render_node
    result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 310, in render_element
    g_inner.append(self.render_node(current_node, qwebcontext))
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 289, in render_node
    result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 310, in render_element
    g_inner.append(self.render_node(current_node, qwebcontext))
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 289, in render_node
    result = self.render_element(element, template_attributes, generated_attributes, qwebcontext)
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 315, in render_element
    raise_qweb_exception(message="Could not render element %r" % element.tag, node=element, template=template)
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 310, in render_element
    g_inner.append(self.render_node(current_node, qwebcontext))
  File "/opt/openerp/odoo/demo800/openerp/addons/base/ir/ir_qweb.py", line 292, in render_node
    result += element.tail
QWebException: 'ascii' codec can't decode byte 0xc2 in position 93: ordinal not in range(128)