[FIX] website: don't show switcher website if only 1 website

In some case, you can have multi website enabel with only 1 website:
    - If you create a second and deleted it.
    - Or after a migration to check common view and specific view e.g.

In this case, before this commit, you have switcher of country that is just
an empty dropdown.

closes odoo/odoo#29481
This commit is contained in:
Jeremy Kersten
2018-12-12 15:47:55 +00:00
parent b9b1c08837
commit dc30b955e0
@@ -90,7 +90,7 @@
</t>
</div>
</li>
<li groups="website.group_multi_website">
<li groups="website.group_multi_website" t-if="multi_website_websites">
<a class="dropdown-toggle waves" data-toggle="dropdown" href="#"><t t-esc="multi_website_websites_current['name']"/></a>
<div class="dropdown-menu" role="menu">
<t t-foreach="multi_website_websites" t-as="multi_website_website">