summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Martinelli <nim@odoo.com>2016-03-04 10:14:50 +0100
committerNicolas Martinelli <nim@odoo.com>2016-03-04 10:39:10 +0100
commit0eb3170674d0df8b68ff72b3a0c60741531ee7fe (patch)
tree71e87ff00a5a200e33def5ef2eeb2d0d078b16dc
parentd0164570c11f1019099fbad23c3ac25fc959c153 (diff)
[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
-rw-r--r--addons/sale/data/mail_template_data.xml2
1 files changed, 1 insertions, 1 deletions
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()
<p>Dear
% if object.partner_id.company_type == 'company' and object.child_ids: