Browse Source

[BUG] division by zero

pull/40/head
robinkeunen 7 years ago
parent
commit
134d4fdf5f
  1. 1
      beesdoo_product/models/beesdoo_product.py

1
beesdoo_product/models/beesdoo_product.py

@ -96,7 +96,6 @@ class BeesdooProduct(models.Model):
taxes_included = set(self.taxes_id.mapped('price_include')) taxes_included = set(self.taxes_id.mapped('price_include'))
if len(taxes_included) == 0 or not self.weight: if len(taxes_included) == 0 or not self.weight:
self.total_with_vat = self.list_price self.total_with_vat = self.list_price
self.total_with_vat_by_unit = self.total_with_vat / self.weight
return True return True
elif len(taxes_included) > 1: elif len(taxes_included) > 1:

Loading…
Cancel
Save