← Back to team overview

openerp-india team mailing list archive

[Bug 904029] Re: average price wrong value in stock move

 

had to use
 res.update({'cost' : move.price_unit or move.purchase_line_id.price_unit or  move.product_id.standard_price })
to get correct behaviour

-- 
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):
  New

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


References