Skip to content

Commit

Permalink
[FIX] Line length
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Pot committed Jan 28, 2025
1 parent d2beb49 commit e141340
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions mail_show_follower/models/mail_mail.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ def remove_p(markup_txt):
full_text = """

Check warning on line 52 in mail_show_follower/models/mail_mail.py

View check run for this annotation

Codecov / codecov/patch

mail_show_follower/models/mail_mail.py#L52

Added line #L52 was not covered by tests
<div summary='o_mail_notification' style='padding:5px;
margin:10px 0px 10px 0px;font-size:13px;border-radius:5px;
font-family:Arial;border:1px solid;color:{msg_font_color};background-color:{msg_back_color};'>
font-family:Arial;border:1px solid;color:{msg_font_color};
background-color:{msg_back_color};'>
{msg_sent_to} {partner_message}
{rc}{msg_warn}
</div>
Expand All @@ -66,8 +67,8 @@ def remove_p(markup_txt):
)
return full_text

Check warning on line 68 in mail_show_follower/models/mail_mail.py

View check run for this annotation

Codecov / codecov/patch

mail_show_follower/models/mail_mail.py#L68

Added line #L68 was not covered by tests

def _send(self, auto_commit=False, raise_exception=False, smtp_session=None, alias_domain_id=False,
mail_server=False, post_send_callback=None):
def _send(self, auto_commit=False, raise_exception=False, smtp_session=None,
alias_domain_id=False, mail_server=False, post_send_callback=None):
group_portal = self.env.ref("base.group_portal")

Check warning on line 72 in mail_show_follower/models/mail_mail.py

View check run for this annotation

Codecov / codecov/patch

mail_show_follower/models/mail_mail.py#L72

Added line #L72 was not covered by tests
for mail_id in self.ids:
mail = self.browse(mail_id)
Expand All @@ -77,7 +78,8 @@ def _send(self, auto_commit=False, raise_exception=False, smtp_session=None, ali
]
).mapped("recipient_ids")
# if the email has a model, id and it belongs to the portal group
if mail.model and mail.res_id and group_portal and not mail.subtype_id.internal:
if (mail.model and mail.res_id and group_portal
and not mail.subtype_id.internal):
obj = self.env[mail.model].browse(mail.res_id)

Check warning on line 83 in mail_show_follower/models/mail_mail.py

View check run for this annotation

Codecov / codecov/patch

mail_show_follower/models/mail_mail.py#L83

Added line #L83 was not covered by tests
# those partners are obtained, who do not have a user and
# if they do it must be a portal, we exclude internal
Expand Down

0 comments on commit e141340

Please sign in to comment.