[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) <tde@openerp.com>
This commit is contained in:
qmo-odoo
2021-04-14 10:28:18 +00:00
parent 6f182eeeab
commit bcb3edd35b
+1 -1
View File
@@ -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