diff options
Diffstat (limited to 'addons/product_email_template/models/product.py')
| -rw-r--r-- | addons/product_email_template/models/product.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/addons/product_email_template/models/product.py b/addons/product_email_template/models/product.py new file mode 100644 index 00000000..e043717e --- /dev/null +++ b/addons/product_email_template/models/product.py @@ -0,0 +1,16 @@ +# -*- coding: utf-8 -*- + +from odoo import fields, models + + +class ProductTemplate(models.Model): + """ Product Template inheritance to add an optional email.template to a + product.template. When validating an invoice, an email will be send to the + customer based on this template. The customer will receive an email for each + product linked to an email template. """ + _inherit = "product.template" + + email_template_id = fields.Many2one('mail.template', string='Product Email Template', + 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.') |
