fix: Include Item variant patch in patches.txt (#18961)
This commit is contained in:
parent
5343631708
commit
594918bd3a
@ -632,4 +632,5 @@ execute:frappe.reload_doc('desk', 'doctype','dashboard_chart')
|
||||
erpnext.patches.v12_0.add_default_dashboards
|
||||
erpnext.patches.v12_0.remove_bank_remittance_custom_fields
|
||||
erpnext.patches.v12_0.generate_leave_ledger_entries
|
||||
erpnext.patches.v12_0.move_credit_limit_to_customer_credit_limit
|
||||
erpnext.patches.v12_0.move_credit_limit_to_customer_credit_limit
|
||||
erpnext.patches.v12_0.add_variant_of_in_item_attribute_table
|
||||
|
@ -1,8 +1,8 @@
|
||||
import frappe
|
||||
|
||||
def execute():
|
||||
frappe.db.sql('''
|
||||
UPDATE `tabItem Variant Attribute` t1
|
||||
INNER JOIN `tabItem` t2 ON t2.name = t1.parent
|
||||
SET t1.variant_of = t2.variant_of
|
||||
''')
|
||||
frappe.db.sql('''
|
||||
UPDATE `tabItem Variant Attribute` t1
|
||||
INNER JOIN `tabItem` t2 ON t2.name = t1.parent
|
||||
SET t1.variant_of = t2.variant_of
|
||||
''')
|
||||
|
Loading…
Reference in New Issue
Block a user