Refs #754 -- check item tax_rule is not none (#776)

This commit is contained in:
Felix Rindt
2018-02-21 12:51:50 +01:00
committed by Raphael Michel
parent 1192e474c5
commit e4b0a1613f

View File

@@ -812,7 +812,7 @@ class OrderChangeManager:
if price is None:
price = get_price(item, variation, subevent=subevent, invoice_address=self._invoice_address)
else:
if item.tax_rule.tax_applicable(self._invoice_address):
if item.tax_rule and item.tax_rule.tax_applicable(self._invoice_address):
price = item.tax(price, base_price_is='gross')
else:
price = TaxedPrice(gross=price, net=price, tax=Decimal('0.00'), rate=Decimal('0.00'), name='')