[CLN] global : lint line length corrections

This commit is contained in:
jscampucci
2025-09-15 14:31:21 +02:00
parent d3b2cdd286
commit 65171f3fb4
6 changed files with 36 additions and 21 deletions

View File

@@ -6,7 +6,10 @@ class MailTemplate(models.Model):
event_attachment_name_prefix = fields.Char(
"Attachment name prefix",
help="If there is an attachment in event registration, or in event, with a name that starts with this name, it will be attached to the mail.",
help="""
If there is an attachment in event registration, or in event,
with a name that starts with this name, it will be attached to the mail.
""",
)
def generate_email(self, res_ids, fields):
@@ -18,10 +21,9 @@ class MailTemplate(models.Model):
res_ids = [res_ids]
multi_mode = False
for lang, (template, template_res_ids) in self._classify_per_lang(
res_ids
).items():
# add reports attached to event.registration or event.event from attachment name
for _, (template, template_res_ids) in self._classify_per_lang(res_ids).items():
# add reports attached to event.registration or event.event from
# attachment name
if template.event_attachment_name_prefix:
for res_id in template_res_ids:
event_registration = self.env["event.registration"].browse(res_id)