[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) <xbo@odoo.com>
This commit is contained in:
committed by
kpt-odoo
parent
f67db6fe1e
commit
a34e97ed27
@@ -30,7 +30,7 @@
|
||||
<field name="name">Project: Task Rating Request</field>
|
||||
<field name="model_id" ref="project.model_project_task"/>
|
||||
<field name="active" eval="False"/>
|
||||
<field name="subject">{{ object.project_id.company_id.name }}: Satisfaction Survey</field>
|
||||
<field name="subject">{{ object.project_id.company_id.name or user.env.company.name }}: Satisfaction Survey</field>
|
||||
<field name="email_from">{{ (object._rating_get_operator().email_formatted if object._rating_get_operator() else user.email_formatted) }}</field>
|
||||
<field name="partner_to" >{{ object._rating_get_partner().id }}</field>
|
||||
<field name="description">Set this template on a project stage to request feedback from your customers. Enable the "customer ratings" feature on the project</field>
|
||||
|
||||
Reference in New Issue
Block a user