[FIX] action_confirm was not asking for purchase pricelist, otherwise it was asking for sale pricelist

This commit is contained in:
Grover Menacho 2014-11-27 10:08:43 -04:00 committed by Josse Colpaert
parent b6f3795e33
commit c7b6a96239
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ class stock_move(osv.osv):
# If partner given, search price in its purchase pricelist
if partner and partner.property_product_pricelist_purchase:
pricelist_obj = self.pool.get("product.pricelist")
pricelist = partner.property_product_pricelist.id
pricelist = partner.property_product_pricelist_purchase.id
price = pricelist_obj.price_get(cr, uid, [pricelist],
move.product_id.id, move.product_uom_qty, partner, {
'uom': move.product_uom.id,