[FIX] event_sale: show correct amount in printed ticket
As multiple tickets can be sold in a single sale order line, we should not display the line total amount on printed tickets but the unit price instead. Task-3078743 closes odoo/odoo#107530 X-original-commit: 63d786e67006405140e3198543640edf4b4edb1b Signed-off-by: Warnon Aurélien (awa) <awa@odoo.com>
This commit is contained in:
@@ -12,9 +12,9 @@
|
||||
<div class="o_event_full_page_ticket_font_faded o_event_full_page_ticket_small_caps fw-bold">Order Date</div>
|
||||
<div class="o_event_full_page_ticket_small" t-out="attendee.sale_order_id.date_order.date()"/>
|
||||
</div>
|
||||
<div t-if="attendee and attendee.sale_order_line_id.price_total">
|
||||
<div t-if="attendee and attendee.sale_order_line_id.price_unit">
|
||||
<div class="o_event_full_page_ticket_font_faded o_event_full_page_ticket_small_caps fw-bold">Price</div>
|
||||
<div class="o_event_full_page_ticket_small" t-field="attendee.sale_order_line_id.price_total"
|
||||
<div class="o_event_full_page_ticket_small" t-field="attendee.sale_order_line_id.price_unit"
|
||||
t-options="{'widget': 'monetary', 'display_currency': attendee.sale_order_line_id.currency_id}"/>
|
||||
</div>
|
||||
</xpath>
|
||||
|
||||
Reference in New Issue
Block a user