fix patch, reload doc
This commit is contained in:
parent
9116666288
commit
b6fb8d2143
@ -8,7 +8,8 @@ import frappe
|
||||
|
||||
def execute():
|
||||
items_barcode = frappe.db.sql("SELECT name, barcode FROM tabItem WHERE barcode IS NOT NULL", as_dict=1)
|
||||
|
||||
frappe.reload_doc("stock", "doctype", "item")
|
||||
|
||||
for item in items_barcode:
|
||||
doc = frappe.get_doc("Item", item.get("name"))
|
||||
if item.get("barcode"):
|
||||
|
Loading…
Reference in New Issue
Block a user