Fix crash on addons without tax rule

PRETIXEU-2MZ
This commit is contained in:
Raphael Michel
2020-08-17 09:39:59 +02:00
parent 586da71a64
commit e7740b1735

View File

@@ -285,7 +285,7 @@ class AddOnsStep(CartMixin, AsyncAction, TemplateFlowStep):
net=a.price - a.tax_value,
gross=a.price,
tax=a.tax_value,
name=a.item.tax_rule.name,
name=a.item.tax_rule.name if a.item.tax_rule else "",
rate=a.tax_rate,
)
else: