summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornie <nie@odoo.com>2021-02-11 10:53:32 +0000
committernie <nie@odoo.com>2021-02-11 10:53:32 +0000
commit5719f2eca7aedfba71fef1e6c94f31277b3dc0b9 (patch)
tree9f132c723275326ebd0493ccfa438e0ddba2561d
parentf71ad8c93d978a3d219cf23e27401a23f411f565 (diff)
[FIX] website_event: registration template show sale end date
Steps: - Install website_event_sale - Go to Events - Create a new event: - Add a line: - Sales Start: yesterday - Sales End: tomorrow - Click the "Go to Website" smart button Bug: The sales end date is not displayed. It's displayed when there are more items. Explanation: When there is only one item, the layout is not the same. This commit adds "Sales end on" next to the price. opw:2449080 closes odoo/odoo#65945 Signed-off-by: backspac <backspac@users.noreply.github.com>
-rw-r--r--addons/website_event/views/event_templates_page_registration.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/website_event/views/event_templates_page_registration.xml b/addons/website_event/views/event_templates_page_registration.xml
index 24c5456b5b9..410dab045cb 100644
--- a/addons/website_event/views/event_templates_page_registration.xml
+++ b/addons/website_event/views/event_templates_page_registration.xml
@@ -215,6 +215,7 @@
<span t-if="tickets" t-field="tickets.name"/>
<span t-else="">Registration</span>
</h6>
+ <small t-if="tickets.end_sale_date and tickets.sale_available and not tickets.is_expired" class="text-muted mr-3" itemprop="availabilityEnds">Sales end on <span itemprop="priceValidUntil" t-field="tickets.end_sale_date"/></small>
<div class="ml-auto o_wevent_nowrap">
<t t-if="event.event_registrations_open">
<span class="text-dark font-weight-bold align-middle pr-2">Qty</span>