[FIX] mail_quoted_reply: Use standard paragraph element to enter text

Without this, it is not possible to do a copy paste of a block of
text into the mail composer.
pull/1456/head
Akim Juillerat 2024-01-09 20:23:54 +01:00 committed by Abraham Anes
parent 66c35e3570
commit 776f35d566
1 changed files with 8 additions and 6 deletions

View File

@ -10,12 +10,13 @@ class MailMessage(models.Model):
def _prep_quoted_reply_body(self):
return """
<div>
<br/>
<br/>
{signature}
</div>
<br/>
<div style="margin: 0px; padding: 0px;">
<p style="margin:0px 0 12px 0;box-sizing:border-box;">
<br />
</p>
{signature}
<br />
<br />
<blockquote style="padding-right:0px; padding-left:5px; border-left-color: #000;
margin-left:5px; margin-right:0px;border-left-width: 2px; border-left-style:solid">
{str_from}: {email_from}<br/>
@ -23,6 +24,7 @@ class MailMessage(models.Model):
{str_subject}: {subject}<br/>
{body}
</blockquote>
</div>
""".format(
email_from=self.email_from,
date=format_datetime(self.env, self.date),