[IMP] test_themes: (re)add preview to website (themes) switcher
Commit [1] moved the website switcher from the frontend to the backend and in doing so re-factored it into an OWL component. Initially, this refactoring broke the theme preview from the previous widget. This commit re-introduces those previews. [1]: https://github.com/odoo/design-themes/commit/163a8b6fae0d6709d61af81550d1ad77dfe311c9 task-2687506 closes odoo/design-themes#573 Signed-off-by: Romain Derie (rde) <rde@odoo.com> Co-authored-by: Younn Olivier <yol@odoo.com> Co-authored-by: Romain Derie <rde@odoo.com>
This commit is contained in:
committed by
Romain Derie
parent
937d1ce897
commit
fb23f19c1b
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<templates xml:space="preserve">
|
||||
<t t-name="test_themes.ThemeTooltip" owl="1">
|
||||
<img t-att-src="url" width="150"/>
|
||||
</t>
|
||||
|
||||
<t t-name="test_themes.WebsiteSwitcherSystray" t-inherit="website.WebsiteSwitcherSystray" t-inherit-mode="extension">
|
||||
<xpath expr="//DropdownItem" position="attributes">
|
||||
<attribute name="dataset">this.tooltips[element.id]</attribute>
|
||||
</xpath>
|
||||
</t>
|
||||
</templates>
|
||||
Reference in New Issue
Block a user