From 3da7340bf56e4dcb6cc9f310ba04c9ecf55adf8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Tue, 17 Jul 2018 13:22:12 +0200 Subject: [PATCH] [IMP] mail: add a new payment-specific notification template This commit introduces a new notification template. Its target is to be used when sending payment-based templates like 'Send by email' for sale orders, invoices or purchase orders. Purpose is to separate the template content (payment information) from the payment button (Pay and sign online) when sending those documents by email. Composer and chatter should not hold the button. It should be added only in notifications emails. Technical solution is to have a somewhat-generic template available in mail to be used in some specific actions. Another solution is to hide the button but it breaks if people edit or remove the hidden content when editing the mail in the composer without knowing it. As the button is mandatory in those actions we choose to have it added by the notification email. Future commits will gradually use this template in some addons. This commit is linked to task ID 1860049 and PR #25824. --- addons/mail/data/mail_data.xml | 93 ++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) diff --git a/addons/mail/data/mail_data.xml b/addons/mail/data/mail_data.xml index fcbd97bc7ae..7b5196d271d 100644 --- a/addons/mail/data/mail_data.xml +++ b/addons/mail/data/mail_data.xml @@ -227,6 +227,99 @@ + + +