[FIX] product: price_get_multi raise if there is no active pricelist version (same behavior than before the pricelist computation factoring)

bzr revid: dle@openerp.com-20140305110314-pgiotwksjmdt63zm
This commit is contained in:
Denis Ledoux
2014-03-05 12:03:14 +01:00
parent 6d97f74963
commit b38245d6cb
+2 -1
View File
@@ -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