[fix] item variants not directly shown in website due to route clash

This commit is contained in:
Rushabh Mehta
2016-12-27 12:29:11 +05:30
parent c2690425e3
commit 174c3478a1
5 changed files with 2719 additions and 2678 deletions

View File

View File

@@ -0,0 +1,12 @@
import frappe
def execute():
# variant must have show_in_website = 0
frappe.reload_doctype('Item')
frappe.db.sql('''
update tabItem set
show_variant_in_website = 1,
show_in_website = 0
where
show_in_website=1
and ifnull(variant_of, "")!=""''')