You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

49 lines
2.2 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- This template used to hide the price form the comparison page-->
<template id="compare_hide_price"
inherit_id="website_sale_comparison.product_compare">
<xpath expr="//div[hasclass('product_summary')]"
position="replace">
<t t-if="product.price_call">
<a class="o_product_comparison_table"
t-att-href="product.website_url">
<span t-esc="combination_info['display_name']"/>
<br/>
</a>
</t>
<t t-else="">
<div class='product_summary'>
<a class="o_product_comparison_table"
t-att-href="product.website_url">
<span t-esc="combination_info['display_name']"/>
<br/>
</a>
<span>
<strong>Price:</strong>
<del t-attf-class="text-danger mr8 {{'' if combination_info['has_discounted_price'] else 'd-none'}}"
style="white-space: nowrap;"
t-esc="combination_info['list_price']"
t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
<span t-esc="combination_info['price']"
t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
</span>
<form action="/shop/cart/update" method="post"
class="text-center">
<input type="hidden" name="csrf_token"
t-att-value="request.csrf_token()"/>
<input name="product_id" t-att-value="product.id"
type="hidden"/>
<a role="button"
class="btn btn-primary btn-block a-submit" href="#">
<i class="fa fa-shopping-cart"/>&amp;nbsp;Add to
Cart
</a>
</form>
</div>
</t>
</xpath>
</template>
</odoo>