fix(item): fixing broken patch item_barcode_childtable_migrate
This commit is contained in:
@@ -7,8 +7,9 @@ import frappe
|
||||
|
||||
|
||||
def execute():
|
||||
if frappe.get_all("Item Barcode", limit=1): return
|
||||
frappe.reload_doc("stock", "doctype", "item_barcode")
|
||||
if frappe.get_all("Item Barcode", limit=1): return
|
||||
if "barcode" not in frappe.db.get_table_columns("Item"): return
|
||||
|
||||
items_barcode = frappe.db.sql("select name, barcode from tabItem where barcode is not null", as_dict=True)
|
||||
frappe.reload_doc("stock", "doctype", "item")
|
||||
|
||||
Reference in New Issue
Block a user