v7 pricelists on product search form displays 0.00 on 'price' column
Bug #1180487 reported by
charlee.papah
This bug report is a duplicate of:
Bug #1178835: v7 pricelists on product search form display 0.00 on 'price' column.
Edit
Remove
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
New
|
Undecided
|
Unassigned |
Bug Description
as the question says. when selecting a price list, the price column appears, yet the price shown is 0.00 for all products. this is tru for all pricelists, both for Sales and Purchases.
To post a comment you must log in.
some things i would like to add are:
- i have tried creating new pricelists, and the result is the same. get('partner' , False). perhaps this line is causing the pricelis to search for partner context and obviously, since there is none it displays 0.00.
- the code for 6.0 and 7 differ slightly. check the def for _product_price. i will append following:
** notice: partner = context.
v6 -->
def _product_ price(self, cr, uid, ids, name, arg, context=None): get('quantity' ) or 1.0 get('pricelist' , False)
try:
price = self.pool. get('product. pricelist' ).price_ get(cr, uid,[pricelist] , id, quantity, 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.
if pricelist:
for id in ids:
for id in ids:
return res
v7 -->
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