[IMP] stock:Partial Picking wizard take current cost price of the product if no so/po line

bzr revid: sbh@tinyerp.com-20100913051901-rdam3dhfl00dg985
This commit is contained in:
sbh (Open ERP)
2010-09-13 10:49:01 +05:30
parent 24d118e12b
commit 13f77ea43f
+1 -1
View File
@@ -174,7 +174,7 @@ class stock_partial_picking(osv.osv_memory):
if (m.product_id.cost_method == 'average'):
currency = False
price = 0
price = m.product_id.standard_price
if (pick.type == 'in') and 'purchase_id' in pick._columns.keys():
if hasattr(m, 'purchase_line_id') and m.purchase_line_id:
price = m.purchase_line_id.price_unit