diff --git a/addons/product/pricelist.py b/addons/product/pricelist.py index 07708b1cd04..eb993ecf825 100644 --- a/addons/product/pricelist.py +++ b/addons/product/pricelist.py @@ -95,6 +95,8 @@ class product_pricelist(osv.osv): def name_get(self, cr, uid, ids, context={}): result= [] + if not all(ids): + return result for pl in self.browse(cr, uid, ids, context): name = pl.name + ' ('+ pl.currency_id.name + ')' result.append((pl.id,name))