[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:
@@ -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:
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user