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