[FIX] website_event_track_exhibitor: fix ribbon style in exhibitor page

This commit fixes the style of the ribbon displayed in the exhibitor dedicated
page to use the newly introduced display_ribbon_style field on the
event.sponsor.type model instead of the sponsor type name
(previous implementation).

Task 2336247

closes odoo/odoo#58652

X-original-commit: ef38eda84025f0bd7aad2b12d60a5618a280bf19
Signed-off-by: awa-odoo <awa-odoo@users.noreply.github.com>
This commit is contained in:
Aurélien Warnon
2020-09-28 11:33:42 +00:00
parent 6538e20bb6
commit 01d35051c0
@@ -94,7 +94,7 @@
<div class="d-flex align-items-center">
<span t-field="sponsor.name" class="h4 mb-0"/>
<span t-if="sponsor.sponsor_type_id.display_ribbon_style and sponsor.sponsor_type_id.display_ribbon_style != 'no_ribbon'"
t-field="sponsor.sponsor_type_id" t-attf-class="o_ribbon o_ribbon_right ribbon_#{sponsor.sponsor_type_id.name}"/>
t-field="sponsor.sponsor_type_id" t-attf-class="o_ribbon o_ribbon_right ribbon_#{sponsor.sponsor_type_id.display_ribbon_style}"/>
</div>
<span t-field="sponsor.subtitle" class="text-muted mb-3"/>
<div t-if="sponsor.url" class="d-flex text-break align-items-baseline">