Skip to content

Commit d4d38e2

Browse files
committed
fixup! fixup! [FIX] readability
1 parent 8440de5 commit d4d38e2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

email_template_qweb/models/mail_template.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ def generate_email(self, res_ids, fields):
2323

2424
result = super().generate_email(res_ids, fields=fields)
2525

26+
if self.body_type != "qweb_view" or (fields and "body_html" not in fields):
27+
return result if multi_mode else result[res_ids[0]]
28+
2629
for lang, (_template, template_res_ids) in self._classify_per_lang(
2730
res_ids
2831
).items():

0 commit comments

Comments
 (0)