Skip to content

Commit beca677

Browse files
committed
fix(item): fixing broken patch item_barcode_childtable_migrate
1 parent 1202dc1 commit beca677

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

erpnext/patches/v10_0/item_barcode_childtable_migrate.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77

88

99
def execute():
10-
if frappe.get_all("Item Barcode", limit=1): return
1110
frappe.reload_doc("stock", "doctype", "item_barcode")
11+
if frappe.get_all("Item Barcode", limit=1): return
12+
if "barcode" not in frappe.db.get_table_columns("Item"): return
1213

1314
items_barcode = frappe.db.sql("select name, barcode from tabItem where barcode is not null", as_dict=True)
1415
frappe.reload_doc("stock", "doctype", "item")

0 commit comments

Comments
 (0)