From bad5f0ab56e1215f8c44f408342e1d43839bce0b Mon Sep 17 00:00:00 2001 From: husen daudi Date: Mon, 9 Mar 2009 19:05:04 +0530 Subject: [PATCH] bugfix lp bug: https://launchpad.net/bugs/338240 fixed bzr revid: hda@hda-20090309133504-ljtd7nqbex4hvi4c --- addons/product/pricelist.py | 2 ++ 1 file changed, 2 insertions(+) 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))