[IMP] event: hide barcode
When barcode/QR code isn't available '123456789' placeholder is inserted which might be misleading. The change makes sure to show barcode/QR code only when they are available. task-3411827 Part-of: odoo/odoo#135153
This commit is contained in:
@@ -159,9 +159,14 @@
|
||||
<div class="o_event_full_page_ticket_barcode">
|
||||
|
||||
<div class="o_event_full_page_ticket_barcode_container px-2">
|
||||
<div class="pb-3"><img t-attf-src="/report/barcode/QR/{{attendee.barcode if attendee else '12345678901234567890'}}?&width=116&height=116&quiet=0" alt="QR Code"/></div>
|
||||
<t t-if="env['ir.config_parameter'].sudo().get_param('event.use_event_barcode') == 'True'">
|
||||
<img class="o_event_barcode" t-attf-src="/report/barcode/?barcode_type=Code128&value={{attendee.barcode if attendee else '12345678901234567890'}}&width=168&height=84&humanreadable=1&quiet=0" alt="Barcode"/>
|
||||
<t t-if="not attendee or (attendee and attendee.barcode)">
|
||||
<div class="pb-3">
|
||||
<img t-attf-src="/report/barcode/QR/{{attendee.barcode if attendee and attendee.barcode else '12345678901234567890'}}?&width=116&height=116&quiet=0" alt="QR Code"/>
|
||||
</div>
|
||||
|
||||
<t t-if="env['ir.config_parameter'].sudo().get_param('event.use_event_barcode') == 'True'">
|
||||
<img class="o_event_barcode" t-attf-src="/report/barcode/?barcode_type=Code128&value={{attendee.barcode if attendee and attendee.barcode else '12345678901234567890'}}&width=168&height=84&humanreadable=1&quiet=0" alt="Barcode"/>
|
||||
</t>
|
||||
</t>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user