From bcb3edd35bfa4964047cdd4b6ceb1d25133da6a3 Mon Sep 17 00:00:00 2001 From: qmo-odoo Date: Thu, 8 Apr 2021 12:15:03 +0000 Subject: [PATCH] [FIX] calendar: Invalid leaf in join route This commit fixes an invalid leaf in join route Follows up: https://github.com/odoo/odoo/pull/68022 LINKS: closes odoo/odoo#69242 Taskid: 2499471 Pr: #69103 X-original-commit: 9e4cba257d0d44fa52d6783e67a363e5cf6b7735 Related: odoo/enterprise#17677 Signed-off-by: Thibault Delavallee (tde) --- addons/calendar/controllers/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/calendar/controllers/main.py b/addons/calendar/controllers/main.py index 0d8a795733e..24779a2946a 100644 --- a/addons/calendar/controllers/main.py +++ b/addons/calendar/controllers/main.py @@ -90,7 +90,7 @@ class CalendarController(http.Controller): if not event: return request.not_found() event.action_join_meeting(request.env.user.partner_id.id) - attendee = request.env['calendar.attendee'].sudo().search([('partner_id', '=', request.env.user.partner_id), ('event_id', '=', event.id)]) + attendee = request.env['calendar.attendee'].sudo().search([('partner_id', '=', request.env.user.partner_id.id), ('event_id', '=', event.id)]) return request.redirect('/calendar/meeting/view?token=%s&id=%s' % (attendee.access_token, event.id)) # Function used, in RPC to check every 5 minutes, if notification to do for an event or not