[FIX] web: Changed mobile message html element in multi-company dropdown

Without this commit the multi-company dropdown breaks the page on mobile

closes odoo/odoo#42080

X-original-commit: e074dca861bedb89952d3788e711e261ce903295
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
This commit is contained in:
Alexandre Díaz
2019-12-18 02:17:04 +00:00
parent da66138f58
commit 37138a8977
+1 -4
View File
@@ -1463,11 +1463,8 @@
</span>
</a>
<div class="dropdown-menu dropdown-menu-right" role="menu">
<t t-if="widget.isMobile">
<li class="bg-info">Tap on the list to change company</li>
</t>
<t t-foreach="widget.user_companies" t-as="company">
<div role="menuitem" href="#" class="dropdown-item d-flex py-0 px-0" data-menu="company" t-att-data-company-id="company[0]">
<div role="menuitem" class="dropdown-item d-flex py-0 px-0" data-menu="company" t-att-data-company-id="company[0]">
<div class="ml-auto pl-3 pr-3 border border-top-0 border-left-0 border-bottom-0 toggle_company o_py">
<span style="height: 2rem;">
<t t-if="widget.allowed_company_ids.includes(company[0])">