mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
e50cc5032b
This adapts the WebsiteSwitcherSystray's DropdownItem tooltips dataset to the changed API brought in the community repository. closes odoo/design-themes#765 Task: 3266145 Related: odoo/enterprise#48452 Related: odoo/odoo#137691 Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
16 lines
584 B
XML
16 lines
584 B
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<templates xml:space="preserve">
|
|
<t t-name="test_themes.ThemeTooltip">
|
|
<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="attrs">this.tooltips[element.id]</attribute>
|
|
</xpath>
|
|
<!-- With this module installed, disable the warning -->
|
|
<xpath expr="//DropdownItem/t[@t-if='!element.domain']" position="replace">
|
|
</xpath>
|
|
</t>
|
|
</templates>
|