17 lines
923 B
XML
17 lines
923 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<template id="product_wishlist" inherit_id="website_sale_wishlist.product_wishlist">
|
|
<xpath expr="//button[hasclass('o_wish_rm')]" position="after">
|
|
<t t-set="categories" t-value="wish.product_id.product_tmpl_id.valid_product_template_attribute_line_ids._prepare_categories_for_display()"/>
|
|
<t t-set="product_variant_id" t-value="wish.product_id.product_tmpl_id._get_first_possible_variant_id()"/>
|
|
<button
|
|
t-if="is_view_active('website_sale_comparison.add_to_compare') and product_variant_id and categories"
|
|
type="button"
|
|
class="btn btn-link o_add_to_compare no-decoration"
|
|
t-att-data-product-id='wish.product_id.id'>
|
|
<small><i t-attf-class="fa fa-exchange"></i> Add to compare</small>
|
|
</button>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|