From a34e97ed273f1aa2e92e4cfa896a16c8e315213a Mon Sep 17 00:00:00 2001 From: suresh badikala Date: Wed, 13 Dec 2023 18:10:14 +0530 Subject: [PATCH] [FIX] project: fix task satisfaction survey email template Steps: - Install project module - Activate customer rating from settings - Create new project with out company - Add stages, then in final stage set in rating email template to 'Project: Task Rating Request' - Create a task and move the task to that final stage then - Check the emails in settings, the subject line is look like ': Satisfaction Survey'. Issue: - When there is no company set on the project, on that time company name is missing in subject line. Cause: - In task satisfaction survey email template only set the company name based on the project only. Fix: - By adding the current user's company name to the template subject line, the problem will be solved. task-3626702 closes odoo/odoo#153103 X-original-commit: 8cf35cb51d97c0259e98765f899e3f2f8b98f52e Signed-off-by: Xavier Bol (xbo) --- addons/project/data/mail_template_data.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/project/data/mail_template_data.xml b/addons/project/data/mail_template_data.xml index b29dcff5a7a..0046e53bcf9 100644 --- a/addons/project/data/mail_template_data.xml +++ b/addons/project/data/mail_template_data.xml @@ -30,7 +30,7 @@ Project: Task Rating Request - {{ object.project_id.company_id.name }}: Satisfaction Survey + {{ object.project_id.company_id.name or user.env.company.name }}: Satisfaction Survey {{ (object._rating_get_operator().email_formatted if object._rating_get_operator() else user.email_formatted) }} {{ object._rating_get_partner().id }} Set this template on a project stage to request feedback from your customers. Enable the "customer ratings" feature on the project