summaryrefslogtreecommitdiff
path: root/addons/sale/data/mail_data.xml
diff options
context:
space:
mode:
authorThibault Delavallée <tde@odoo.com>2021-04-21 15:08:52 +0000
committerThibault Delavallée <tde@odoo.com>2021-04-23 08:00:43 +0000
commit1476c0f78281fb90e76db5eac193466b86e75a25 (patch)
tree312a038420df4dc1bf9a5c4d1c56fa49a7754ef7 /addons/sale/data/mail_data.xml
parent206685760abbc725765a1f4a5002c2a90abc0af8 (diff)
[FW][FIX] sale: correctly redirect customers in "Pay Now" template
Mail holds a "Pay Now" notification template holding notably customized links to portal for records like sale orders or invoices. It allow to give a more personalized button than a plain simple "View document" link. Currently frontend / backend links are not always correctly computed in this template. This commit fixes that behavior. Task ID-2513724 COM PR #69607 ENT PR odoo/enterprise#17849 closes odoo/odoo#69714 X-original-commit: odoo/odoo@a55f125f5420797a9378925da5626e43d002b9b0 Related: odoo/enterprise#17889 Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'addons/sale/data/mail_data.xml')
-rw-r--r--addons/sale/data/mail_data.xml3
1 files changed, 2 insertions, 1 deletions
diff --git a/addons/sale/data/mail_data.xml b/addons/sale/data/mail_data.xml
index af9e49da8c2..fc13b95414e 100644
--- a/addons/sale/data/mail_data.xml
+++ b/addons/sale/data/mail_data.xml
@@ -56,7 +56,8 @@
</data>
<!-- Template and notification section -->
<data noupdate="1">
- <template id="mail_notification_paynow_online" inherit_id="mail.mail_notification_paynow" name="Quotation: Sign and Pay mail notification template">
+ <template id="mail_notification_paynow_online" inherit_id="mail.mail_notification_paynow"
+ name="Quotation: Sign and Pay mail notification template">
<xpath expr="//t[@t-set='access_name']" position="after">
<t t-if="record._name == 'sale.order'">
<t t-set="is_transaction_pending" t-value="record.get_portal_last_transaction().state == 'pending'"/>