<?xml version="1.0"?>
<t name="Pricelists Dropdown" t-name="website_sale.pricelist_list">
        <t t-set="website_sale_pricelists" t-value="website_sale_pricelists or website.get_pricelist_available(show_visible=True)"/>
        <t t-set="hasPricelistDropdown" t-value="hasPricelistDropdown or (website_sale_pricelists and len(website_sale_pricelists)&gt;1)"/>
        <t t-set="pricelist" t-value="request.pricelist"/>
        <t t-set="pricelist_label">Pricelist</t>
        <div t-attf-class="o_pricelist_dropdown dropdown #{_classes if hasPricelistDropdown else 'd-none'}">
            <t t-cache="pricelist,website_sale_pricelists,navClass">
                <a role="button" href="#" t-attf-class="dropdown-toggle btn px-2" data-bs-toggle="dropdown">
                    <small class="d-none d-md-inline opacity-75"><t t-out="pricelist_label"/>:</small>
                    <span class="d-none d-md-inline" t-esc="pricelist and pricelist.name or ' - '"/>
                    <span class="d-md-none"><t t-out="pricelist_label"/></span>
                </a>
                <div class="dropdown-menu" role="menu">
                    <t t-foreach="website_sale_pricelists" t-as="pl">
                        <t t-set="_is_active" t-value="pricelist.id == pl.id"/>
                        <a role="menuitem" t-att-href="'/shop/change_pricelist/%s' % pl.id" t-attf-class="dropdown-item {{_is_active and 'active'}}" t-att-aria-current="_is_active and 'true' or 'false'">
                            <span class="switcher_pricelist" t-att-data-pl_id="pl.id" t-esc="pl.name"/>
                        </a>
                    </t>
                </div>
            </t>
        </div>
    </t>

    