From e352fb754bb2064782522b557981f46426338b62 Mon Sep 17 00:00:00 2001 From: Faris Ansari Date: Sun, 8 Sep 2019 21:25:33 +0530 Subject: [PATCH] fix: Reload doctype in variants patch (#18962) --- erpnext/patches/v12_0/add_variant_of_in_item_attribute_table.py | 1 + 1 file changed, 1 insertion(+) diff --git a/erpnext/patches/v12_0/add_variant_of_in_item_attribute_table.py b/erpnext/patches/v12_0/add_variant_of_in_item_attribute_table.py index bb13078b138..893f7a4909e 100644 --- a/erpnext/patches/v12_0/add_variant_of_in_item_attribute_table.py +++ b/erpnext/patches/v12_0/add_variant_of_in_item_attribute_table.py @@ -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