Fix multi-product order edit with seats (#6063)

This commit is contained in:
Richard Schreiber
2026-04-08 11:02:58 +02:00
committed by GitHub
parent 12171e0665
commit c037fd865b

View File

@@ -436,7 +436,7 @@ class OrderPositionAddForm(forms.Form):
d['used_membership'] = [m for m in self.memberships if str(m.pk) == d['used_membership']][0]
else:
d['used_membership'] = None
if d.get("count", 1) and d.get("seat"):
if d.get("count", 1) > 1 and d.get("seat"):
raise ValidationError({
"seat": _("You can not choose a seat when adding multiple products at once.")
})