Skip to content
Snippets Groups Projects
Commit f5628b1b authored by Prakash Prajapati's avatar Prakash Prajapati Committed by jem-odoo
Browse files

[IMP] sale: Improve the Sale order mail template.

Rename the attachment file name.

Restore the option : have the name of the customer who viewed the quotation on the email notification

TaskID: 1920476

closes odoo/odoo#30550
parent c76c93a9
Branches
Tags
No related merge requests found
......@@ -158,7 +158,7 @@ class CustomerPortal(CustomerPortal):
# Log only once a day
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')
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)
values = {
......
......@@ -80,11 +80,11 @@
<div style="margin: 0px; padding: 0px;">
<p style="margin: 0px; padding: 0px; font-size: 13px;">
% set doc_name = 'quotation' if object.state in ('draft', 'sent') else 'order'
Dear ${object.partner_id.name}
% if object.partner_id.parent_id:
(${object.partner_id.parent_id.name})
Dear ${object.partner_id.name} (${object.partner_id.parent_id.name}),
% else:
Dear ${object.partner_id.name},
% endif
,
<br /><br />
Here is
% if ctx.get('proforma')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment