diff options
| author | Nasreddin (bon) <bon@odoo.com> | 2020-04-21 13:46:23 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2020-04-29 08:33:07 +0000 |
| commit | e0553b20d2bfdb1e934657cdc84fe840821cfd43 (patch) | |
| tree | 6fec480845a1b7436e6473c5e1ab20e43a7f401e /addons/project/data/project_mail_template_data.xml | |
| parent | f3ee9de11b6e3a1c8d235fb03aa8bc39d341c088 (diff) | |
[FIX] project: Fix customer salutation in rating email
If there isn't any customer set on the task, the current behavior
will display 'Hello False,' in salutation rating email as intro.
This commit will fix it by display only 'Hello,' if there isn't
any customer set.
Task ID 2238816
closes odoo/odoo#50366
X-original-commit: e7b71c6e497aa8d823181440333f371f1da5ade8
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/project/data/project_mail_template_data.xml')
| -rw-r--r-- | addons/project/data/project_mail_template_data.xml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/addons/project/data/project_mail_template_data.xml b/addons/project/data/project_mail_template_data.xml index d6cd9e4ce4b..bc96d795102 100644 --- a/addons/project/data/project_mail_template_data.xml +++ b/addons/project/data/project_mail_template_data.xml @@ -38,7 +38,11 @@ <table border="0" cellpadding="0" cellspacing="0" width="590" style="width:100%; margin:0px auto;"> <tbody> <tr><td valign="top" style="font-size: 13px;"> - Hello ${partner.name},<br/><br/> + % if partner.name: + Hello ${partner.name},<br/><br/> + % else: + Hello,<br/><br/> + % endif Please take a moment to rate our services related to the task "<strong>${object.name}</strong>" % if object.rating_get_rated_partner_id().name: assigned to <strong>${object.rating_get_rated_partner_id().name}</strong>.<br/> |
