From 8b31b3b18df1fa3be25014b556e08e132fb3ab07 Mon Sep 17 00:00:00 2001 From: Dharmraj Jhala Date: Tue, 2 Apr 2019 05:45:23 +0000 Subject: [PATCH] [FIX] event: fix traceback while downloading ics file Currently while downloading ics for an event, it gives traceback due to improper handling of kwargs. It was introduced from https://github.com/odoo/odoo/commit/a03faab03fdf8a164c2f1298cc138b3fa83b0bea This commit fixes the issue by properly handling kwargs in the method definition. task-1938637 closes odoo/odoo#32750 Signed-off-by: Quentin Smetz (qsm) --- addons/event/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/event/controllers/main.py b/addons/event/controllers/main.py index 481fc5f27ba..f844e6a5d51 100644 --- a/addons/event/controllers/main.py +++ b/addons/event/controllers/main.py @@ -9,7 +9,7 @@ from odoo.http import Controller, request, route, content_disposition class EventController(Controller): @route(['''/event//ics'''], type='http', auth="public") - def event_ics_file(self, event): + def event_ics_file(self, event, **kwargs): if not event or not event.registration_ids: return request.not_found() files = event._get_ics_file()