You cannot change the cost price of a product which is associated to stock moves. You must use the "Update Cost Price" wizard. To update cost price, you must change the counterpart account "%(account)s".