Comment 5 for bug 904029

Revision history for this message
Ferdinand (office-chricar) wrote :

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