Fix erroneous else statement

This commit is contained in:
Phin Wolkwitz
2026-08-07 14:58:21 +02:00
parent c8c2206190
commit 3202f666b6
+1 -4
View File
@@ -207,11 +207,8 @@ class ScheduledMail(models.Model):
if not p.attendee_email:
if p.addon_to_id in sent_to_positions:
continue
elif parent_op.attendee_email:
p = parent_op
else:
# without parent-op-email it should have already been sent to the order-email when parent-op was handled
continue
p = parent_op
# with attendee-email but same as parent's and sent to parent
elif parent_op.attendee_email and p.attendee_email == parent_op.attendee_email and parent_op in sent_to_positions:
continue