Skip to content
Snippets Groups Projects
Commit 14f07cb9 authored by Mansi Gandhi's avatar Mansi Gandhi Committed by Thibault Delavallée
Browse files

[IMP] website_quote: Notification 'viewed by customer' should be received by the responsible only

Currently some customers receive the automatic notification 'Quotation
viewed by customer'. This should not be the case as this notifciation
is purely internal and should only be sent to the quote responsible.

Notification is now a note with the responsible being directly in the
recipients.
parent cdaee93f
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ class sale_quote(http.Controller):
if Order and request.session.get('view_quote') != now:
request.session['view_quote'] = now
body = _('Quotation viewed by customer')
_message_post_helper(res_model='sale.order', res_id=Order.id, message=body, token=token, token_field="access_token", message_type='notification')
_message_post_helper(res_model='sale.order', res_id=Order.id, message=body, token=token, token_field="access_token", message_type='notification', subtype="mail.mt_note", partner_ids=Order.user_id.partner_id.ids)
else:
Order = request.env['sale.order'].search([('id', '=', order_id)])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment