[FIX] website_sale/forum: fixup renaming

Somehow a naming update was not correctly applied in all files.

Followup of odoo/odoo@faeb5e7fee

Part-of: odoo/odoo#83832
This commit is contained in:
Thibault Delavallée
2022-02-02 18:14:54 +00:00
parent ef7664bd8a
commit f9736c0238
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -924,9 +924,9 @@ class Post(models.Model):
'res_id': self.id,
}
def _notify_recipients_get_groups(self, msg_vals=None):
def _notify_get_recipients_groups(self, msg_vals=None):
""" Add access button to everyone if the document is active. """
groups = super(Post, self)._notify_recipients_get_groups(msg_vals=msg_vals)
groups = super(Post, self)._notify_get_recipients_groups(msg_vals=msg_vals)
if self.state == 'active':
for _group_name, _group_method, group_data in groups:
+2 -2
View File
@@ -336,10 +336,10 @@ class SaleOrder(models.Model):
sent_orders |= order
sent_orders.write({'cart_recovery_email_sent': True})
def _notify_get_groups(self, msg_vals=None):
def _notify_get_recipients_groups(self, msg_vals=None):
""" In case of cart recovery email, update link to redirect directly
to the cart (like ``mail_template_sale_cart_recovery`` template). """
groups = super(SaleOrder, self)._notify_get_groups(msg_vals=msg_vals)
groups = super(SaleOrder, self)._notify_get_recipients_groups(msg_vals=msg_vals)
customer_portal_group = next(group for group in groups if group[0] == 'portal_customer')
if customer_portal_group: