Files
enterprise-addons/website_appointment_sale/views/appointment_templates_appointments.xml
T

44 lines
2.8 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="appointments_cards" inherit_id="website_appointment_account_payment.appointments_cards">
<xpath expr="//strong[@t-out='appointment.product_lst_price']" position="replace">
<t t-set="combination_info" t-value="appointment.product_id.product_tmpl_id._get_combination_info(product_id=appointment.product_id.id)"/>
<strong t-out="combination_info['price']"
t-options="{'widget': 'monetary', 'display_currency': combination_info['currency']}"/>
<span t-if="combination_info['has_discounted_price']" class="oe_striked_price"
t-out="combination_info['list_price']" t-options="{'widget': 'monetary', 'display_currency': combination_info['currency']}"/>
</xpath>
</template>
<template id="appointments_template_picture" inherit_id="website_appointment_account_payment.appointments_template_picture">
<xpath expr="//strong[@t-out='appointment.product_lst_price']" position="replace">
<t t-set="combination_info" t-value="appointment.product_id.product_tmpl_id._get_combination_info(product_id=appointment.product_id.id)"/>
<strong t-out="combination_info['price']"
t-options="{'widget': 'monetary', 'display_currency': combination_info['currency']}"/>
</xpath>
</template>
<template id="appointments_template_list" inherit_id="website_appointment_account_payment.appointments_template_list">
<xpath expr="//strong[@t-out='appointment.product_lst_price']" position="replace">
<t t-set="combination_info" t-value="appointment.product_id.product_tmpl_id._get_combination_info(product_id=appointment.product_id.id)"/>
<strong t-out="combination_info['price']"
t-options="{'widget': 'monetary', 'display_currency': combination_info['currency']}"/>
</xpath>
</template>
<template id="appointment_info" inherit_id="appointment_account_payment.appointment_info">
<xpath expr="//span[hasclass('o_appointment_details_price')]" position="replace">
<t t-set="combination_info" t-value="appointment_type.product_id.product_tmpl_id._get_combination_info(
product_id=appointment_type.product_id.id,
add_qty=asked_capacity if isDetailsManageCapacity else 1.0)"/>
<span class="o_appointment_details_price">
<strong t-out="combination_info['price'] * asked_capacity if isDetailsManageCapacity else combination_info['price']"
t-options="{'widget': 'monetary', 'display_currency': combination_info['currency']}"/>
<span t-if="not isDetails and combination_info['has_discounted_price']" class="oe_striked_price"
t-out="combination_info['list_price']"
t-options="{'widget': 'monetary', 'display_currency': combination_info['currency']}"/>
</span>
</xpath>
</template>
</odoo>