Fix the issues casued the by id difference between product_product.id and product_template.id