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

@@ -1760,7 +1760,7 @@ class OrderChange(OrderView):
if p.form.cleaned_data['tax_rule'] and p.form.cleaned_data['tax_rule'] != p.tax_rule:
ocm.change_tax_rule(p, p.form.cleaned_data['tax_rule'])
if p.form.cleaned_data['operation_split']:
if p.form.cleaned_data.get('operation_split'):
ocm.split(p)
if p.form.cleaned_data['operation_secret']: