fix: Include Item variant patch in patches.txt (#18961)
This commit is contained in:
parent
5343631708
commit
594918bd3a
@ -633,3 +633,4 @@ erpnext.patches.v12_0.add_default_dashboards
|
|||||||
erpnext.patches.v12_0.remove_bank_remittance_custom_fields
|
erpnext.patches.v12_0.remove_bank_remittance_custom_fields
|
||||||
erpnext.patches.v12_0.generate_leave_ledger_entries
|
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
|
import frappe
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
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
|
||||||
SET t1.variant_of = t2.variant_of
|
SET t1.variant_of = t2.variant_of
|
||||||
''')
|
''')
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user