product.product and product.template. And use property_cost_method of product.category everywhare. In This - Used property_cost_method of product.category instead of cost_method or property_cost_method of product.template. This commit is related to task#1866333.