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.
14 lines
584 B
14 lines
584 B
<?xml version = "1.0" encoding = "UTF-8" ?>
|
|
<odoo>
|
|
<!-- Hide product price for Guest users -->
|
|
<template id="products_item" inherit_id="website_sale.products_item">
|
|
<xpath expr="//div[hasclass('product_price')]" 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>
|
|
|