Skip to content
Snippets Groups Projects
Commit 3ad50aa5 authored by qsm-odoo's avatar qsm-odoo
Browse files

[FIX] web_editor: do not show website name in snippet names

Since https://github.com/odoo/odoo/commit/ea3a2ab6788980a8961d9b9a3f88bc13c15a3c46
the website name appears in the view names if the user has the multi
website group or in special cases on some form views.

We don't want it to be displayed in snippet names in the editor UI.

Part of https://github.com/odoo/odoo/pull/38495


task-2083198

closes odoo/odoo#38495

Signed-off-by: default avatarRomain Derie (rde) <rde@odoo.com>
parent 102151da
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ class QWeb(models.AbstractModel):
el.set('t-call', el.attrib.pop('t-snippet'))
View = self.env['ir.ui.view']
view_id = View.get_view_id(el.attrib.get('t-call'))
name = View.browse(view_id).display_name
name = View.browse(view_id).name
thumbnail = el.attrib.pop('t-thumbnail', "oe-thumbnail")
div = u'<div name="%s" data-oe-type="snippet" data-oe-thumbnail="%s">' % (
escape(pycompat.to_text(name)),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment