[IMP] sale: prevent email to salesperson when customer opens up a quotation
Purpose of this commit, Salesperson does not need email notification as there is not implied action to perform salesperson side. It's just polluting the user's mailbox. What matters is the order confirmation, and they already receive the email. So when a quotation is viewed by the customer, salesperson will no more receive an email that customer has viewed the quotation. task-1950368 closes: #34004 Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
This commit is contained in:
committed by
Barad Mahendra
parent
074074e570
commit
a26a010324
@@ -159,7 +159,7 @@ class CustomerPortal(CustomerPortal):
|
||||
if order_sudo and request.session.get('view_quote_%s' % order_sudo.id) != now and request.env.user.share and access_token:
|
||||
request.session['view_quote_%s' % order_sudo.id] = now
|
||||
body = _('Quotation viewed by customer %s') % order_sudo.partner_id.name
|
||||
_message_post_helper('sale.order', order_sudo.id, body, token=order_sudo.access_token, message_type='notification', subtype="mail.mt_note", partner_ids=order_sudo.user_id.sudo().partner_id.ids)
|
||||
_message_post_helper('sale.order', order_sudo.id, body, token=order_sudo.access_token, message_type='notification', subtype="mail.mt_note")
|
||||
|
||||
values = {
|
||||
'sale_order': order_sudo,
|
||||
|
||||
Reference in New Issue
Block a user