[FIX] calendar: Allow any user to set calendar_last_notif_ack

Fixes https://github.com/odoo/odoo/issues/39358
Before this commit Internal user (With no other Rights) cannot perform any activity on Reminder Popup due to missing rights to set calendar_last_notif_ack field.
With this fix, we are now using sudo to write calendar_last_notif_ack

closes odoo/odoo#40104

X-original-commit: 91560fae56f1cba09141eefa1d0da03f4a7b3f72
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
This commit is contained in:
Swapnesh Shah
2019-11-12 10:17:10 +00:00
committed by fw-bot
parent 8f0e3be257
commit c44f7a0369
+1 -1
View File
@@ -70,4 +70,4 @@ class CalendarController(http.Controller):
@http.route('/calendar/notify_ack', type='json', auth="user")
def notify_ack(self, type=''):
return request.env['res.partner']._set_calendar_last_notif_ack()
return request.env['res.partner'].sudo()._set_calendar_last_notif_ack()