summaryrefslogtreecommitdiff
path: root/addons/account/data/mail_template_data.xml
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2017-08-08 18:19:04 +0200
committerThibault Delavallée <tde@odoo.com>2017-08-25 15:33:18 +0200
commit6c7e128b338c45c6a32ef720843602e312ff2019 (patch)
tree9f19507657cb057a37e7a19fc7ef7dcc6a6813be /addons/account/data/mail_template_data.xml
parent6f39672eb686f07ca3941a878c24895c79f2c889 (diff)
[IMP] account: add invoice page view on customer portal
This commit adds a page view for invoices on the customer portal. Layout is based on the invoice report to closely match what is already done in Odoo. It replaces the old controller that returned only the pdf. Customers should now be able to receive both. Future commits will improve invoice page view notably in account_payment while adding payment options in account customer portal.
Diffstat (limited to 'addons/account/data/mail_template_data.xml')
-rw-r--r--addons/account/data/mail_template_data.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/data/mail_template_data.xml b/addons/account/data/mail_template_data.xml
index 266ac35855b..949895e3c1c 100644
--- a/addons/account/data/mail_template_data.xml
+++ b/addons/account/data/mail_template_data.xml
@@ -20,7 +20,7 @@
<p>Dear ${object.partner_id.name}
% set access_action = object.with_context(force_website=True).get_access_action()
% set is_online = access_action and access_action['type'] == 'ir.actions.act_url'
-% set access_url = is_online and object.get_mail_url() or '/report/pdf/account.report_invoice/' + str(object.id)
+% set access_url = object.get_mail_url()
% if object.partner_id.parent_id:
(<i>${object.partner_id.parent_id.name}</i>)