Merge pull request #24599 from frappe/product-query-fix

fix: also fetch item variants if hide variants is disabled