commit | e352fb754bb2064782522b557981f46426338b62 | [log] [tgz] |
---|---|---|
author | Faris Ansari <netchampfaris@users.noreply.github.com> | Sun Sep 08 21:25:33 2019 +0530 |
committer | GitHub <noreply@github.com> | Sun Sep 08 21:25:33 2019 +0530 |
tree | ff7febbe3021c5fc2cc48f442a468fff829f6e0f | |
parent | 594918bd3a18b339ea52df33f64d10d82b9b398a [diff] |
fix: Reload doctype in variants patch (#18962)
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 bb13078..893f7a4 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