[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user