Browse Source

fixup! [ADD] beesdoo_product: profit margin on suppliers

pull/164/head
Manuel Claeys Bouuaert 4 years ago
parent
commit
9262a61deb
  1. 4
      beesdoo_product/models/beesdoo_product.py

4
beesdoo_product/models/beesdoo_product.py

@ -21,7 +21,7 @@ class ResPartner(models.Model):
def _check_margin(self):
for product in self:
if product.profit_margin < 0.0:
raise UserError(_("Percentages for Profit Margin must > 0."))
raise UserError(_("Percentages for Profit Margin must >= 0."))
class BeesdooProduct(models.Model):
@ -321,7 +321,7 @@ class BeesdooProductCategory(models.Model):
def _check_margin(self):
for product in self:
if product.profit_margin < 0.0:
raise UserError(_("Percentages for Profit Margin must > 0."))
raise UserError(_("Percentages for Profit Margin must >= 0."))
class BeesdooProductSupplierInfo(models.Model):

Loading…
Cancel
Save