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 C2C
OERPScenario, which is subscribed to OpenERP Project Group.
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

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

Reply via email to