mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
fix: Reload doctype in variants patch (#18962)
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
import frappe
|
import frappe
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
|
frappe.reload_doc('stock', 'doctype', 'item_variant_attribute')
|
||||||
frappe.db.sql('''
|
frappe.db.sql('''
|
||||||
UPDATE `tabItem Variant Attribute` t1
|
UPDATE `tabItem Variant Attribute` t1
|
||||||
INNER JOIN `tabItem` t2 ON t2.name = t1.parent
|
INNER JOIN `tabItem` t2 ON t2.name = t1.parent
|
||||||
|
|||||||
Reference in New Issue
Block a user