mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-04 20:59:11 +00:00
[fix] item variants not directly shown in website due to route clash
This commit is contained in:
0
erpnext/patches/v7_2/__init__.py
Normal file
0
erpnext/patches/v7_2/__init__.py
Normal file
12
erpnext/patches/v7_2/update_website_for_variant.py
Normal file
12
erpnext/patches/v7_2/update_website_for_variant.py
Normal 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, "")!=""''')
|
||||
Reference in New Issue
Block a user