diff options
| author | Nicolas Martinelli <nim@odoo.com> | 2020-04-16 09:55:04 +0000 |
|---|---|---|
| committer | Nicolas Martinelli <nim@odoo.com> | 2020-04-20 07:20:32 +0000 |
| commit | c4b3d5b814693f38dce3f91e31dd3b7604fd22f0 (patch) | |
| tree | f91426cd10680fb86241b8a91f6911b8e3dce431 | |
| parent | 71f1b34490922faf357c6a7f793518ab233e4ef8 (diff) | |
[FIX] sale: quotation viewed email
According to some PO, the email is useless to salespersons.
According to salespersons, the email is very useful.
This reverts a26a010324e0cdc743c2b69c9d4100b048df7240
opw-2215123
closes odoo/odoo#49756
X-original-commit: 0709890357005e4c1b205816061c3ec1582ad16d
Signed-off-by: Nicolas Martinelli (nim) <nim@odoo.com>
| -rw-r--r-- | addons/sale/controllers/portal.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/addons/sale/controllers/portal.py b/addons/sale/controllers/portal.py index 1c7ce875081..a716bdceb79 100644 --- a/addons/sale/controllers/portal.py +++ b/addons/sale/controllers/portal.py @@ -161,7 +161,15 @@ class CustomerPortal(CustomerPortal): if session_obj_date != 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_xmlid="mail.mt_note") + _message_post_helper( + "sale.order", + order_sudo.id, + body, + token=order_sudo.access_token, + message_type="notification", + subtype_xmlid="mail.mt_note", + partner_ids=order_sudo.user_id.sudo().partner_id.ids, + ) values = { 'sale_order': order_sudo, |
