[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
This commit is contained in:
committed by
Thibault Delavallée
parent
fde251330d
commit
0324e12e7a
@@ -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()
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
<button type="object" name="action_subscribe" string="Subscribe"
|
||||
class="oe_highlight"
|
||||
attrs="{'invisible': ['|',('is_subscribed', '=', True), ('state','=','deactivated')]}"/>
|
||||
<button type="object" name="action_unsubcribe" string="Unsubscribe me"
|
||||
<button type="object" name="action_unsubscribe" string="Unsubscribe me"
|
||||
class="oe_highlight"
|
||||
attrs="{'invisible': ['|',('is_subscribed', '=', False), ('state','=','deactivated')]}"/>
|
||||
<button type="object" name="action_deactivate" string="Deactivate for everyone"
|
||||
|
||||
Reference in New Issue
Block a user