Further investigating, it seems like the field cost_based_on cannot be mandatory because neither contract nor product are mandatory fields....
Further investigating, it seems like the field cost_based_on cannot be mandatory because neither contract nor product are mandatory fields....