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.
30 lines
1.4 KiB
30 lines
1.4 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
<odoo>
|
|
<template id="product_compare_inherit"
|
|
inherit_id="website_sale_comparison.product_compare">
|
|
<xpath expr='//td[@t-foreach="products"]//span[@class="o_comparison_price"][2]' position="attributes">
|
|
<attribute name="t-if">
|
|
not request.env.user._is_public() or
|
|
(request.env.user._is_public() and not
|
|
request.env['ir.config_parameter'].sudo().get_param('website_hide_button.hide_price'))
|
|
</attribute>
|
|
</xpath>
|
|
<xpath expr='//form[hasclass("o_add_cart_form_compare")]' position="attributes">
|
|
<attribute name="t-if">
|
|
not request.env.user._is_public() or
|
|
(request.env.user._is_public() and not
|
|
request.env['ir.config_parameter'].sudo().get_param('website_hide_button.hide_price'))
|
|
</attribute>
|
|
</xpath>
|
|
</template>
|
|
<template id="product_product_inherit"
|
|
inherit_id="website_sale_comparison.product_product">
|
|
<xpath expr='//span[1]' position="attributes">
|
|
<attribute name="t-if">
|
|
not request.env.user._is_public() or
|
|
(request.env.user._is_public() and not
|
|
request.env['ir.config_parameter'].sudo().get_param('website_hide_button.hide_price'))
|
|
</attribute>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|
|
|