Fix issue with fees without tax rules

This commit is contained in:
Raphael Michel
2018-03-06 15:33:54 +01:00
parent 9a6f299b41
commit a8033248ae

View File

@@ -504,7 +504,7 @@ def _create_order(event: Event, email: str, positions: List[CartPosition], now_d
for fee in fees:
fee.order = order
fee._calculate_tax()
if not fee.tax_rule.pk:
if fee.tax_rule and not fee.tax_rule.pk:
fee.tax_rule = None # TODO: deprecate
fee.save()