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.

31 lines
1.7 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="product_price" inherit_id="website_sale.product_price">
  4. <xpath expr="//h4" position="after">
  5. <t t-if="product.pack_ok">
  6. <h5><span t-esc="product.list_price_ref_pack" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/><span> / kilo</span></h5>
  7. </t>
  8. </xpath>
  9. </template>
  10. <template id="products_item" inherit_id="website_sale.products_item">
  11. <xpath expr="//div[hasclass('product_price')]" position="replace">
  12. <div itemprop="offers" itemscope="itemscope" itemtype="http://schema.org/Offer" class="product_price">
  13. <b>
  14. <t t-if="True"><!-- compatibility 12.0 -->
  15. <del t-attf-class="text-danger mr8 {{'' 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}" />
  16. </t>
  17. <t t-if="product.pack_ok">
  18. <span t-esc="product.price_ref_pack_compute" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
  19. </t>
  20. <t t-else="">
  21. <span t-if="combination_info['price']" t-esc="combination_info['price']" t-options="{'widget': 'monetary', 'display_currency': website.currency_id}"/>
  22. <span itemprop="price" style="display:none;" t-esc="combination_info['price']" />
  23. <span itemprop="priceCurrency" style="display:none;" t-esc="website.currency_id.name" />
  24. </t>
  25. </b>
  26. </div>
  27. </xpath>
  28. </template>
  29. </odoo>