Skip to content

Commit

Permalink
[FIX] website_sale: avoid subscribing the website user (Public) to al…
Browse files Browse the repository at this point in the history
…l shop orders

Especially as this user does not have a valid email, which
could prevent notifications to reach other followers.
  • Loading branch information
odony committed Sep 26, 2014
1 parent b2b3d62 commit dd2f229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/website_sale/controllers/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ def checkout_form_save(self, checkout):

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'])
Expand Down

0 comments on commit dd2f229

Please sign in to comment.