Fix rendering bug when price.multiple is null
This commit is contained in:
parent
a139d9c844
commit
d20d22ffb6
|
@ -457,7 +457,7 @@ class ProductsView(MasterView):
|
|||
return HTML("$ {:0.2f} ($ {:0.2f} / {})".format(
|
||||
price.price, price.pack_price, price.pack_multiple))
|
||||
if price.price is not None:
|
||||
if price.multiple > 1:
|
||||
if price.multiple is not None and price.multiple > 1:
|
||||
return "$ {:0.2f} / {}".format(price.price, price.multiple)
|
||||
return "$ {:0.2f}".format(price.price)
|
||||
if price.pack_price is not None:
|
||||
|
|
Loading…
Reference in a new issue