[FIX] wesbite: fix wrong encoding from page generated by configurator
Before this commit, some snippets that contains special charactere like –
was wrongly displayed, since we removed the call to pycompat that did a
decode('utf-8') in previous version.
closes odoo/odoo#74041
Signed-off-by: Jérémy Kersten (jke) <jke@openerp.com>
This commit is contained in:
@@ -370,7 +370,7 @@ class Website(models.Model):
|
||||
try:
|
||||
view_id = self.env['website'].with_context(website_id=website.id).viewref(snippet)
|
||||
if view_id:
|
||||
el = html.fromstring(view_id._render(values=cta_data))
|
||||
el = html.fromstring(view_id._render(values=cta_data).decode())
|
||||
|
||||
# Add the data-snippet attribute to identify the snippet
|
||||
# for compatibility code
|
||||
|
||||
Reference in New Issue
Block a user