<?xml version="1.0"?>
<t name="Color attributes in Filter" t-name="website_sale.filter_color_attributes">
        <t t-foreach="a.value_ids" t-as="v">
            <t t-set="img_style" t-value="'background:url(/web/image/product.attribute.value/%s/image); background-size:cover;' % v.id if v.image else ''"/>
            <t t-set="color_style" t-value="'background: ' + str(v.html_color or v.name if not v.is_custom else '')"/>
            <label t-attf-style="#{img_style or color_style}" t-attf-class="css_attribute_color mb-1 #{'active' if v.id in attrib_set else ''}">
                <input type="checkbox" name="attribute_value" t-att-value="'%s-%s' % (a.id, v.id)" t-att-checked="'checked' if v.id in attrib_set else None" t-att-title="v.name"/>
            </label>
        </t>
    </t>

    