Well this seems clear to me
 res.update({'cost' : move.price_unit or move.purchase_line_id.price_unit or 
move.product_id.standard_price })

if we have already a price_unit in the move(line) we must take it
else we take the price_unit from the purchase line - which will be normally 
evailable
the move.product_id.standard_price is only here as fall back

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/904029

Title:
  average price wrong value in stock move

Status in OpenERP Addons (modules):
  Fix Committed

Bug description:
  stock_partial_picking.py

  def _product_cost_for_average_update

  it is not possible to calculate a new avg price using the 
product_id.standard_price !
  'cost': move.product_id.standard_price,

  it is necessary to take the (new) price from partial picking or if
  empty from purchase line

  the standard price can only be used for valuation of production

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/904029/+subscriptions

_______________________________________________
Mailing list: https://launchpad.net/~openerp-india
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-india
More help   : https://help.launchpad.net/ListHelp

Reply via email to