| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<template id="product_wishlist" inherit_id="website_sale_wishlist.product_wishlist"> |
| 4 |
<xpath expr="//div[hasclass('o_wsale_product_action_row')]" position="inside"> |
| 5 |
<t t-if="is_view_active('website_sale_comparison.add_to_compare')"> |
| 6 |
<t t-set="categories" t-value="wish.product_id.product_tmpl_id.valid_product_template_attribute_line_ids._prepare_categories_for_display()"/> |
| 7 |
<t t-set="product_variant_id" t-value="wish.product_id.product_tmpl_id._get_first_possible_variant_id()"/> |
| 8 |
|
| 9 |
<button |
| 10 |
t-if="product_variant_id and categories" |
| 11 |
type="button" |
| 12 |
class="btn btn-light o_add_to_compare d-inline-flex" |
| 13 |
t-att-data-product-id='wish.product_id.id' |
| 14 |
aria-label="Add to compare" |
| 15 |
> |
| 16 |
<i class="fa fa-fw fa-exchange" role="presentation"/> |
| 17 |
</button> |
| 18 |
|
| 19 |
|
| 20 |
<div t-else="" class="o_add_to_compare_placeholder btn btn-light pe-none opacity-0"> |
| 21 |
<i class="fa fa-exchange fa-fw" aria-hidden="true"/> |
| 22 |
</div> |
| 23 |
</t> |
| 24 |
</xpath> |
| 25 |
</template> |
| 26 |
</odoo> |