summaryrefslogtreecommitdiff
path: root/addons/website_event/controllers
diff options
context:
space:
mode:
authorqmo-odoo <qmo@odoo.com>2020-01-30 07:50:42 +0000
committerqmo-odoo <qmo@odoo.com>2020-03-26 14:59:17 +0000
commit70d573343e7d59b5e66658df96b80dabb9d2f7fd (patch)
tree08c5f717ab853b06541dc4fc1d280a82ba7868a3 /addons/website_event/controllers
parent6e4b4570513ae8b33de13321d8b2226555237f1d (diff)
[IMP] website_event: Improve event registration
Purpose: Improve the registration on front-end by allowing the manager to customize it and display more informations to users about the tickets and the status of the event. Specs: For event manager: Allow users to decide wether or not they want to unfold/fold ticket details on their event. The reason behind this is that some events might have 5+ different tickets and having them unfolded would bloat the UI quite horribly. By default, ticket details should be unfolded with no possibility for the end users to fold it back. Always display a button for the manager to go configure the event in back-end For users in general: Show price range in case the ticket details are folded. Clearly show the user that a particular ticket is sold out/expired Cleary show the user that registrations are open/closed/sold out LINKS: TaskID:2162438 PR: #43856
Diffstat (limited to 'addons/website_event/controllers')
-rw-r--r--addons/website_event/controllers/main.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/website_event/controllers/main.py b/addons/website_event/controllers/main.py
index 8691222101d..1823bffcb6f 100644
--- a/addons/website_event/controllers/main.py
+++ b/addons/website_event/controllers/main.py
@@ -212,6 +212,7 @@ class WebsiteEventController(http.Controller):
urls = event._get_event_resource_urls()
values = {
'event': event,
+ 'sold_out': all(not ticket.sale_available and not ticket.is_expired for ticket in event.event_ticket_ids),
'main_object': event,
'range': range,
'registrable': event.sudo().event_registrations_open,