summaryrefslogtreecommitdiff
path: root/addons/website_event/views
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2020-03-31 09:43:09 +0000
committerThibault Delavallée <tde@odoo.com>2020-04-03 11:07:55 +0000
commitd2840a0519725c8d55cafe9e2b91ebbfe515c804 (patch)
treeafb4de9be079586baa802e7e8d16a46220efce8c /addons/website_event/views
parent55c8367ce7d6801d4af3dc813c63eafa4725657e (diff)
[FIX] event: include timezoned event date_end in registration open computation
Purpose of this commit is to try to lessen random conditions being concatenated in templates by correctly computing event_registrations_open field that is now correctly based on * event.date_end -> if event is done, registrations are not open anymore; * event.start_sale_date -> lowest start date of tickets (if any; start_sale_date is False if no ticket are defined, see _compute_start_sale_date); * any ticket is available for sale (seats available) if any; * seats are unlimited or seats are available; Some better timezone computation is included even if it could be done better. Task ID 2228189 Community PR odoo/odoo#48652 X-original-commit: a11af9074499465b6dd8ad1400e60c7af96e21c7
Diffstat (limited to 'addons/website_event/views')
-rw-r--r--addons/website_event/views/event_templates.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website_event/views/event_templates.xml b/addons/website_event/views/event_templates.xml
index 27815e3215c..c1d73b6d07b 100644
--- a/addons/website_event/views/event_templates.xml
+++ b/addons/website_event/views/event_templates.xml
@@ -527,7 +527,7 @@
<i class="fa fa-pencil mr-2" role="img" aria-label="Edit" title="Edit event registration in backend"/><em>Configure Event Tickets</em>
</a>
</div>
- <div t-if="event.start_sale_date and event.start_sale_date &gt; datetime.date.today() or not event.event_registrations_open" class="bg-white mb-5">
+ <div t-if="not event.event_registrations_open" class="bg-white mb-5">
<div class="alert alert-info mb-0 d-flex justify-content-between align-items-center" role="status">
<t t-if="event.start_sale_date and event.start_sale_date &gt; datetime.date.today()">
<em class="col-md-8">Ticket Sales starting on <t t-esc="event.start_sale_date"/></em>