From 37ea5dc3160ff40f2034b8228305ba1a968aa43b Mon Sep 17 00:00:00 2001 From: Pratima Gupta Date: Tue, 27 Mar 2018 15:31:26 +0530 Subject: [PATCH] [IMP] product_email_template: make email templates bioutifoul Purpose of this commit is to enhance quality of templates proposed by Odoo and make them use notification layout when send by emails. Those emails are cleaner and more up to date compared to other emails. Including * when sending the template attached to the product, specify the layout to use to encapsulate the notification email; There is a huge ugly demo data of odoo online contained in this product. After some thinking we choose not to modify it as demo data update will belong to another task. This commit is related to task ID 51122 (and PR #24052). --- addons/product_email_template/models/account_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/product_email_template/models/account_invoice.py b/addons/product_email_template/models/account_invoice.py index 82c0dfbbea0..9668c8cdd58 100644 --- a/addons/product_email_template/models/account_invoice.py +++ b/addons/product_email_template/models/account_invoice.py @@ -14,7 +14,7 @@ class AccountInvoice(models.Model): invoice.message_subscribe([invoice.partner_id.id]) for line in invoice.invoice_line_ids: if line.product_id.email_template_id: - invoice.message_post_with_template(line.product_id.email_template_id.id, composition_mode='comment') + invoice.message_post_with_template(line.product_id.email_template_id.id, composition_mode='comment', custom_layout='mail.mail_notification_light') return True @api.multi