From 904e237d787c0d112f2dad899cbf01c93f9694db Mon Sep 17 00:00:00 2001 From: Jorge Pinna Puissant Date: Mon, 27 May 2019 12:43:14 +0000 Subject: [PATCH] [FIX] sale,product_email_template: match the help with the behaviour Before this commit, the help of the product_email_template module said that the email is sent when the invoice is paid. This is not the case, the current behaviour of the module is that the email is sent when the invoice is validated. Fine-tuning of : 4b5265b9b99a7ded943c5692d927b3a6163d75da, 10eee18a047d35305dc46282e610e88936d81ffc and 33a413eb2944db4a35d035f42161159ae53dd830 opw-1973946 closes odoo/odoo#33686 Signed-off-by: Jorge Pinna Puissant (jpp) --- addons/product_email_template/i18n/product_email_template.pot | 4 ++-- addons/product_email_template/models/product.py | 4 +++- addons/product_email_template/views/product_views.xml | 2 +- addons/sale/i18n/sale.pot | 2 +- addons/sale/views/res_config_settings_views.xml | 2 +- 5 files changed, 8 insertions(+), 6 deletions(-) diff --git a/addons/product_email_template/i18n/product_email_template.pot b/addons/product_email_template/i18n/product_email_template.pot index 1e2316959bf..1f349559aaf 100644 --- a/addons/product_email_template/i18n/product_email_template.pot +++ b/addons/product_email_template/i18n/product_email_template.pot @@ -49,12 +49,12 @@ msgstr "" #. module: product_email_template #: model_terms:ir.ui.view,arch_db:product_email_template.product_template_form_view -msgid "Send a product-specific email once the invoice is paid" +msgid "Send a product-specific email once the invoice is validated" msgstr "" #. module: product_email_template #: model:ir.model.fields,help:product_email_template.field_product_product__email_template_id #: model:ir.model.fields,help:product_email_template.field_product_template__email_template_id -msgid "Send a product-specific email once the invoice is paid." +msgid "When validating an invoice, an email will be sent to the customer based on this template. The customer will receive an email for each product linked to an email template." msgstr "" diff --git a/addons/product_email_template/models/product.py b/addons/product_email_template/models/product.py index 9ef844e8f46..e043717e6e8 100644 --- a/addons/product_email_template/models/product.py +++ b/addons/product_email_template/models/product.py @@ -11,4 +11,6 @@ class ProductTemplate(models.Model): _inherit = "product.template" email_template_id = fields.Many2one('mail.template', string='Product Email Template', - help='Send a product-specific email once the invoice is paid.') + help='When validating an invoice, an email will be sent to the customer ' + 'based on this template. The customer will receive an email for each ' + 'product linked to an email template.') diff --git a/addons/product_email_template/views/product_views.xml b/addons/product_email_template/views/product_views.xml index 393ab6d3ec9..9afb300f64f 100644 --- a/addons/product_email_template/views/product_views.xml +++ b/addons/product_email_template/views/product_views.xml @@ -10,7 +10,7 @@ 0 -