[FIX] sale: mail template
The URL sent to the partner in order to view the quotation is not usable: the report/pdf route is not public, and therefore a partner without an account is not allowed to download the PDF report. The fix is to sent a sign-up URL instead, as it used to be. Note that the portal functionality should be removed in the near future, and another fix will have to be found. opw-667606
This commit is contained in:
@@ -18,7 +18,7 @@
|
||||
% set doc_name = 'quotation' if object.state in ('draft', 'sent') else 'order confirmation'
|
||||
% set is_online = access_action and access_action['type'] == 'ir.actions.act_url'
|
||||
% set access_name = is_online and object.template_id and 'Accept and pay %s online' % doc_name or 'View %s' % doc_name
|
||||
% set access_url = is_online and access_action['url'] or '/report/pdf/sale.report_saleorder/' + str(object.id)
|
||||
% set access_url = is_online and access_action['url'] or object.get_signup_url()
|
||||
|
||||
<p>Dear
|
||||
% if object.partner_id.company_type == 'company' and object.child_ids:
|
||||
|
||||
Reference in New Issue
Block a user