Browse Source

don : ne pas afficher le prix : 00:30

master
root 3 years ago
parent
commit
b3e8c8b076
2 changed files with 16 additions and 23 deletions
  1. +2
    -1
      __manifest__.py
  2. +14
    -22
      views/templates.xml

+ 2
- 1
__manifest__.py View File

@ -37,7 +37,8 @@
'views/mail_mail.xml',
'views/returnmail.xml',
'views/payment_batch.xml',
'views/website_sale.xml'
'views/website_sale.xml',
'views/templates.xml'
],
# only loaded in demonstration mode


+ 14
- 22
views/templates.xml View File

@ -1,24 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<!--
<template id="listing">
<ul>
<li t-foreach="objects" t-as="object">
<a t-attf-href="#{ root }/objects/#{ object.id }">
<t t-esc="object.display_name"/>
</a>
</li>
</ul>
</template>
<template id="object">
<h1><t t-esc="object.display_name"/></h1>
<dl>
<t t-foreach="object._fields" t-as="field">
<dt><t t-esc="field"/></dt>
<dd><t t-esc="object[field]"/></dd>
</t>
</dl>
</template>
-->
</data>
<template id="opendons_products_item" inherit_id="website_sale.products_item">
<xpath expr="//div[@class='product_price']" position="replace">
<div t-if="not product.donation">
<del t-attf-class="text-danger mr-2 {{'' 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-if="combination_info['price']" t-esc="combination_info['price']" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
<span itemprop="price" style="display:none;" t-esc="combination_info['price']" />
<span itemprop="priceCurrency" style="display:none;" t-esc="website.currency_id.name" />
</div>
</xpath>
</template>
</odoo>

Loading…
Cancel
Save