Skip to content
Snippets Groups Projects
Commit dd2f2291 authored by Olivier Dony's avatar Olivier Dony
Browse files

[FIX] website_sale: avoid subscribing the website user (Public) to all shop orders

Especially as this user does not have a valid email, which
could prevent notifications to reach other followers.
parent b2b3d629
Branches
Tags
No related merge requests found
......@@ -526,7 +526,7 @@ class website_sale(http.Controller):
order_info = {
'partner_id': partner_id,
'message_follower_ids': [(4, partner_id)],
'message_follower_ids': [(4, partner_id), (3, request.website.partner_id.id)],
'partner_invoice_id': partner_id,
}
order_info.update(order_obj.onchange_partner_id(cr, SUPERUSER_ID, [], partner_id, context=context)['value'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment