projects
/
odoo
/
odoo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6f3795
)
[FIX] action_confirm was not asking for purchase pricelist, otherwise it was asking...
author
Grover Menacho
<grover.menacho@poiesisconsulting.com>
Thu, 27 Nov 2014 14:08:43 +0000
(10:08 -0400)
committer
Josse Colpaert
<jco@odoo.com>
Wed, 3 Dec 2014 10:28:59 +0000
(11:28 +0100)
addons/purchase/stock.py
patch
|
blob
|
history
diff --git
a/addons/purchase/stock.py
b/addons/purchase/stock.py
index
d62cbb5
..
9257c8d
100644
(file)
--- a/
addons/purchase/stock.py
+++ b/
addons/purchase/stock.py
@@
-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,