Write cost_price on the right Model

Since the removal of inherit in 2.8, Models must be tested to know which one
must be written.

issue3451
review1991002