v7 pricelists on product search form display 0.00 on 'price' column
Bug #1178835 reported by
charlee.papah
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Medium
|
OpenERP R&D Addons Team 2 |
Bug Description
the problem is as follows:
on v7, when selecting a pricelist on the product search form, the 'price' column is displayed. this colum is supposed to show the prices according to the pricelist selected, however the prices shown on this column are all displaying 0.00 no matter what pricelist is selected.
Related branches
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2) |
importance: | Undecided → Medium |
status: | New → Confirmed |
To post a comment you must log in.
this is the product.py code for the def _product_price section:
def _product_ price(self, cr, uid, ids, name, arg, context=None): get('quantity' ) or 1.0 get('pricelist' , False) get('partner' , False)
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
res. setdefault( id, 0.0)
res = {}
if context is None:
context = {}
quantity = context.
pricelist = context.
partner = context.
if pricelist:
for id in ids:
for id in ids:
return res