diff --git a/addons/product/pricelist.py b/addons/product/pricelist.py index 65c4311f34a..67ab3649b3b 100644 --- a/addons/product/pricelist.py +++ b/addons/product/pricelist.py @@ -180,7 +180,8 @@ class product_pricelist(osv.osv): if ((v.date_start is False) or (v.date_start <= date)) and ((v.date_end is False) or (v.date_end >= date)): version = v break - + if not version: + raise osv.except_osv(_('Warning!'), _("At least one pricelist has no active version !\nPlease create or activate one.")) categ_ids = {} for p in products: categ = p.categ_id