| @ -1,24 +1,16 @@ | |||||
| <?xml version="1.0" encoding="utf-8"?> | |||||
| <odoo> | <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> | </odoo> | ||||