From fc9b27af796744fb645941de20a74fc136abbbda Mon Sep 17 00:00:00 2001 From: "Divyesh Makwana (Open ERP)" Date: Mon, 24 Sep 2012 18:30:43 +0530 Subject: [PATCH] [IMP] product : Improved the warning message. bzr revid: mdi@tinyerp.com-20120924130043-euwxbfmk5q58vqw4 --- addons/product/pricelist.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/product/pricelist.py b/addons/product/pricelist.py index 4f848201d9d..14392c79f10 100644 --- a/addons/product/pricelist.py +++ b/addons/product/pricelist.py @@ -440,7 +440,7 @@ class product_pricelist_item(osv.osv): price_min_margin = vals.get('price_min_margin', 0.0) price_max_margin = vals.get('price_max_margin', 0.0) if price_min_margin > price_max_margin: - raise osv.except_osv(_('Warning!'), _('Minimum margin must be lower than maximum margin in \'%s\' pricelist rule !.') % (name)) + raise osv.except_osv(_('Warning!'), _('Minimum margin must be lower than maximum margin in \'%s\' pricelist rule!') % (name)) return super(product_pricelist_item, self).create(cr, uid, vals, context=context) def write(self, cr, uid, ids, vals, context=None): @@ -449,7 +449,7 @@ class product_pricelist_item(osv.osv): for rule in self.browse(cr, uid, ids, context=context): name = rule.name if price_min_margin > price_max_margin: - raise osv.except_osv(_('Warning!'), _('Minimum margin must be lower than maximum margin in \'%s\' pricelist rule !.') % (name)) + raise osv.except_osv(_('Warning!'), _('Minimum margin must be lower than maximum margin in \'%s\' pricelist rule!') % (name)) return super(product_pricelist_item, self).write(cr, uid, ids, vals, context=context)