[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:
Nicolas Martinelli
2016-03-04 10:39:10 +01:00
parent d0164570c1
commit 0eb3170674
+1 -1
View File
@@ -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: