fix: Reload doctype in variants patch (#18962)

This commit is contained in:
Faris Ansari 2019-09-08 21:25:33 +05:30 committed by GitHub
parent 594918bd3a
commit e352fb754b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,7 @@
import frappe
def execute():
frappe.reload_doc('stock', 'doctype', 'item_variant_attribute')
frappe.db.sql('''
UPDATE `tabItem Variant Attribute` t1
INNER JOIN `tabItem` t2 ON t2.name = t1.parent