summaryrefslogtreecommitdiff
path: root/addons/product_email_template
diff options
context:
space:
mode:
authorJorge Pinna Puissant <jpp@odoo.com>2019-05-27 12:43:14 +0000
committerJorge Pinna Puissant <jpp@odoo.com>2019-05-27 12:43:14 +0000
commit904e237d787c0d112f2dad899cbf01c93f9694db (patch)
treead582d4cda29042ab9e895c53f34c61580d8cf0f /addons/product_email_template
parenta98c15f44358d6342632a8bd461fb476461f35ae (diff)
[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) <jpp@odoo.com>
Diffstat (limited to 'addons/product_email_template')
-rw-r--r--addons/product_email_template/i18n/product_email_template.pot4
-rw-r--r--addons/product_email_template/models/product.py4
-rw-r--r--addons/product_email_template/views/product_views.xml2
3 files changed, 6 insertions, 4 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 @@
<attribute name="invisible">0</attribute>
</xpath>
<xpath expr="//group[@name='email_template_and_project']" position="inside">
- <field name="email_template_id" string="Email Template" help="Send a product-specific email once the invoice is paid"
+ <field name="email_template_id" string="Email Template" help="Send a product-specific email once the invoice is validated"
domain="[('model','=','product.template')]"
context="{
'form_view_ref':'product_email_template.email_template_form_simplified',