Fix order split with add-ons involved (#2513)

This commit is contained in:
Raphael Michel
2022-03-03 16:54:20 +01:00
committed by GitHub
parent d796c399a6
commit 4e2a3b45da
5 changed files with 41 additions and 3 deletions

View File

@@ -482,6 +482,9 @@ class OrderPositionChangeForm(forms.Form):
self.fields['tax_rule'].queryset = instance.event.tax_rules.all()
self.fields['tax_rule'].label_from_instance = self.taxrule_label_from_instance
if instance.addon_to_id:
del self.fields['operation_split']
if not instance.seat and not (
instance.item.seat_category_mappings.filter(subevent=instance.subevent).exists()
):