From 9262a61deb19a02c2b7887a8731db41f41eea83b Mon Sep 17 00:00:00 2001 From: Manuel Claeys Bouuaert Date: Tue, 18 Aug 2020 20:03:21 +0200 Subject: [PATCH] fixup! [ADD] beesdoo_product: profit margin on suppliers --- beesdoo_product/models/beesdoo_product.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/beesdoo_product/models/beesdoo_product.py b/beesdoo_product/models/beesdoo_product.py index 2195e5d..a30f951 100644 --- a/beesdoo_product/models/beesdoo_product.py +++ b/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):