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
had to use line_id. price_unit or move.product_ id.standard_ price })
res.update({'cost' : move.price_unit or move.purchase_
to get correct behaviour