From 0eb3170674d0df8b68ff72b3a0c60741531ee7fe Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Fri, 4 Mar 2016 10:14:50 +0100 Subject: [PATCH] [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 --- addons/sale/data/mail_template_data.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/sale/data/mail_template_data.xml b/addons/sale/data/mail_template_data.xml index f6a9421e8ad..f99690b7033 100644 --- a/addons/sale/data/mail_template_data.xml +++ b/addons/sale/data/mail_template_data.xml @@ -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()

Dear % if object.partner_id.company_type == 'company' and object.child_ids: