event_event_templates.xml 1.5 KB

1234567891011121314151617181920212223
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="event_report_template_full_page_ticket_inherit_sale" inherit_id="event.event_report_template_full_page_ticket">
  4. <xpath expr="//div[hasclass('o_event_full_page_ticket_side_info_booked_by')]" position="before">
  5. <div t-if="attendee and attendee.sale_order_id" class="mb-2">
  6. <div class="o_event_full_page_ticket_font_faded o_event_full_page_ticket_small_caps fw-bold">Order Ref</div>
  7. <div class="o_event_full_page_ticket_small" t-field="attendee.sale_order_id"/>
  8. </div>
  9. </xpath>
  10. <xpath expr="//div[hasclass('o_event_full_page_ticket_side_info')]" position="inside">
  11. <div t-if="attendee and attendee.sale_order_id" class="mb-2">
  12. <div class="o_event_full_page_ticket_font_faded o_event_full_page_ticket_small_caps fw-bold">Order Date</div>
  13. <div class="o_event_full_page_ticket_small" t-out="attendee.sale_order_id.date_order.date()"/>
  14. </div>
  15. <div t-if="attendee and attendee.sale_order_line_id.price_unit">
  16. <div class="o_event_full_page_ticket_font_faded o_event_full_page_ticket_small_caps fw-bold">Price</div>
  17. <div class="o_event_full_page_ticket_small" t-field="attendee.sale_order_line_id.price_unit"
  18. t-options="{'widget': 'monetary', 'display_currency': attendee.sale_order_line_id.currency_id}"/>
  19. </div>
  20. </xpath>
  21. </template>
  22. </odoo>