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.
36 lines
1.9 KiB
36 lines
1.9 KiB
<?xml version = "1.0" encoding = "UTF-8" ?>
|
|
<odoo>
|
|
<template id="product_item_view" inherit_id="website_sale.products_item">
|
|
<xpath expr="//div[hasclass('product_price')]" position="replace">
|
|
<!-- Shop View of Login User-->
|
|
<t t-if="login_user== True">
|
|
<div class="product_price" itemprop="offers"
|
|
itemscope="itemscope" itemtype="http://schema.org/Offer">
|
|
<t t-if="'base_price' in template_price_vals">
|
|
<del t-attf-class="text-muted me-1 h6 mb-0"
|
|
style="white-space: nowrap;">
|
|
<em class="small"
|
|
t-esc="template_price_vals['base_price']"
|
|
t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
|
|
</del>
|
|
</t>
|
|
<span class="h6 mb-0"
|
|
t-if="template_price_vals['price_reduce'] or not website.prevent_zero_price_sale"
|
|
t-esc="template_price_vals['price_reduce']"
|
|
t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
|
|
<span class="h6 mb-0" t-else=""
|
|
t-field="website.prevent_zero_price_sale_text"/>
|
|
<span itemprop="price" style="display:none;"
|
|
t-esc="template_price_vals['price_reduce']"/>
|
|
<span itemprop="priceCurrency" style="display:none;"
|
|
t-esc="website.currency_id.name"/>
|
|
</div>
|
|
</t>
|
|
<t t-else="">
|
|
<!-- Product View of Guest User-->
|
|
<div class="product_price" itemprop="offers"
|
|
itemscope="itemscope" itemtype="http://schema.org/Offer"/>
|
|
</t>
|
|
</xpath>
|
|
</template>
|
|
</odoo>
|