From fad1c9f047c0151971006d38ba7a30769653faaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 23 Aug 2021 10:01:39 +0000 Subject: [PATCH 1/9] [FIX] event: correctly give a template when sending badge Oversight of odoo/odoo@d9ffbe9e89423ebf18fb8e03f5abd8fb7c2f5c65 a valid template_id was incorrectly converted into a reference field, used in event automated communication (which is not the case when sending badge). Task-2488019 PR odoo/odoo#68901 --- addons/event/models/event_registration.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/event/models/event_registration.py b/addons/event/models/event_registration.py index 27da716a968..74c320b6dde 100644 --- a/addons/event/models/event_registration.py +++ b/addons/event/models/event_registration.py @@ -235,7 +235,7 @@ class EventRegistration(models.Model): default_model='event.registration', default_res_id=self.id, default_use_template=bool(template), - default_template_ref='mail.template,%i' % template.id, + default_template_id=template.id, default_composition_mode='comment', custom_layout="mail.mail_notification_light", ) From 3c05c37577c1f229b726e55cc2163eca7c300470 Mon Sep 17 00:00:00 2001 From: qmo-odoo Date: Wed, 7 Apr 2021 12:19:45 +0000 Subject: [PATCH 2/9] [IMP] website_event: always display 'filter by tags' in frontend This commit removes the ability to enable/disable the "filter by tags" on /event. Not need for it to be customizable, it should be displayed by default. Indeed this is basics of event management and having options for that adds noise to configuration. Also, from now on, only published tag categories will be used to sort events on the frontend, whatever the ACLs. Task-2488019 PR odoo/odoo#68901 --- addons/website_event/controllers/main.py | 2 +- .../views/event_templates_list.xml | 42 +++++++++---------- 2 files changed, 20 insertions(+), 24 deletions(-) diff --git a/addons/website_event/controllers/main.py b/addons/website_event/controllers/main.py index c35ba3a44c3..15d258626e6 100644 --- a/addons/website_event/controllers/main.py +++ b/addons/website_event/controllers/main.py @@ -152,7 +152,7 @@ class WebsiteEventController(http.Controller): 'current_type': current_type, 'event_ids': events, # event_ids used in website_event_track so we keep name as it is 'dates': dates, - 'categories': request.env['event.tag.category'].search([]), + 'categories': request.env['event.tag.category'].search([('is_published', '=', True)]), 'countries': countries, 'pager': pager, 'searches': searches, diff --git a/addons/website_event/views/event_templates_list.xml b/addons/website_event/views/event_templates_list.xml index 4b69241ea2d..01116a8ed82 100644 --- a/addons/website_event/views/event_templates_list.xml +++ b/addons/website_event/views/event_templates_list.xml @@ -47,7 +47,25 @@
Events -