odoo/odoo — pull request #1032 by guewen (2014-07-09 11:56:27+00:00)
Title: Guard the cost to be a None value...

... when a move is not linked to a purchase order line.

When this situation happens. the 'cost' is None and the web interface cannot handle this value, provoking a JS error. Thus, prefer to fallback on the standard way to get the cost: based on the current standard price of the product.