From 0324e12e7ae0c698ec22148edf35d47eae141e2a Mon Sep 17 00:00:00 2001 From: Fabio Barbero Date: Tue, 16 Nov 2021 18:02:11 +0000 Subject: [PATCH] [IMP] digest: fix spelling mistake Fix spelling mistake in unsubscribe actions now that unsubscribe with token has been merged with odoo/odoo@0ac3de1 . Task-2582128 Part-of: odoo/odoo#77507 --- addons/digest/controllers/portal.py | 2 +- addons/digest/models/digest.py | 2 +- addons/digest/views/digest_views.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/addons/digest/controllers/portal.py b/addons/digest/controllers/portal.py index 31cf3197e99..8a2cdda9ab2 100644 --- a/addons/digest/controllers/portal.py +++ b/addons/digest/controllers/portal.py @@ -23,7 +23,7 @@ class DigestController(Controller): digest_sudo._action_unsubscribe_users(request.env['res.users'].sudo().browse(int(user_id))) # old route was given without any token or user_id but only for auth users elif digest_sudo and not token and not user_id and not request.env.user.share: - digest_sudo.action_unsubcribe() + digest_sudo.action_unsubscribe() else: raise NotFound() diff --git a/addons/digest/models/digest.py b/addons/digest/models/digest.py index f03c1d2dac0..0caed73d816 100644 --- a/addons/digest/models/digest.py +++ b/addons/digest/models/digest.py @@ -94,7 +94,7 @@ class Digest(models.Model): computation and avoid ACLs issues. """ self.sudo().user_ids |= users - def action_unsubcribe(self): + def action_unsubscribe(self): if self.env.user.has_group('base.group_user') and self.env.user in self.user_ids: self._action_unsubscribe_users(self.env.user) diff --git a/addons/digest/views/digest_views.xml b/addons/digest/views/digest_views.xml index 6b368536157..1ea92347ef4 100644 --- a/addons/digest/views/digest_views.xml +++ b/addons/digest/views/digest_views.xml @@ -22,7 +22,7 @@