[FIX] survey: prevent certification email from being sent twice

Purpose
=======

The certification email template had both "email_to" and "partner_to" fields set
and that implied the mail being sent twice.

This commit removes the "partner_to" field to fix it.
This commit is contained in:
Aurélien Warnon
2019-03-18 08:03:46 +00:00
parent 3f6d09037d
commit 2fb9fe279a
@@ -40,7 +40,6 @@
<field name="name">Certification: Send by email</field>
<field name="model_id" ref="survey.model_survey_user_input"/>
<field name="email_to">${(object.partner_id.email_formatted or object.email) |safe}</field>
<field name="partner_to">${object.partner_id.id}</field>
<field name="subject">Certification: ${object.survey_id.display_name}</field>
<field name="report_template" ref="certification_report"/>
<field name="report_name">Certification Document</field>