Move cost price to product level instead of template
This is a topic that came back many times.
Indeed we should always store/compute such value at the lower level because it is always possible to aggregate later but the opposite is not possible.
This will also have the benefit to simplify the code as there will be no more need to test against Product and Template.