Skip to content

Commit

Permalink
fixup! [MIG] mail_quoted_reply: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Abranes committed Oct 4, 2024
1 parent 2fac423 commit d72fecd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mail_quoted_reply/models/mail_compose_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ def _compute_body(self):
for composer in self:
context = composer._context
if context.get("is_quoted_reply"):
composer.body = Markup(context["quote_body"])
if composer.body:
composer.body += Markup(context["quote_body"])

Check warning on line 17 in mail_quoted_reply/models/mail_compose_message.py

View check run for this annotation

Codecov / codecov/patch

mail_quoted_reply/models/mail_compose_message.py#L17

Added line #L17 was not covered by tests
else:
composer.body = Markup(context["quote_body"])
return res

@api.depends(
Expand Down

0 comments on commit d72fecd

Please sign in to comment.