the problem i am facing is the following:
on v7, when selecting a pricelist on the product search form, the 'price' column appears. however, the prices on the 'price' column all show 0.00.
i have tried with different pricelists, new pricelists, etc. but it always shows 0.00.
anybody know how to fix this?
is this a bug?
this character restriction is kind of annoying. and how do you post code bits?
v7 product.py (def _product_price)
def _product_price(self, cr, uid, ids, name, arg, context=None): res = {} if context is None: context = {} quantity = context.get('quantity') or 1.0 pricelist = context.get('pricelist', False) partner = context.get('partner', False) if pricelist: for id in ids: try: price = self.pool.get('product.pricelist').price_get(cr,uid,[pricelist], id, quantity, partner=partner, context=context)[pricelist] except: price = 0.0
...
res[id] = price for id in ids: res.setdefault(id, 0.0) return res
v6 product.py (def _product_price)
def _product_price(self, cr, uid, ids, name, arg, context=None): res = {} if context is None: context = {} quantity = context.get('quantity') or 1.0 pricelist = context.get('pricelist', False) if pricelist: for id in ids: try: price = self.pool.get('product.pricelist').price_get(cr,uid,[pricelist], id, quantity, context=context)[pricelist] except: price = 0.0 res[id] = price for id in ids:
i've reported a bug on launchpad, this is the link: (with no link, not enough karma!)
bugs.launchpad.net/openobject-addons/+bug/1178835