mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-22 14:39:19 +00:00
fix(patch): skip patch if column doesn't exist
This commit is contained in:
committed by
Ankush Menat
parent
f60ea20145
commit
1538076ae4
@@ -2,7 +2,14 @@ import frappe
|
|||||||
|
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
sr_item = frappe.qb.DocType("Stock Reconciliation Item")
|
|
||||||
|
doctype = "Stock Reconciliation Item"
|
||||||
|
|
||||||
|
if not frappe.db.has_column(doctype, "current_serial_no"):
|
||||||
|
# nothing to fix if column doesn't exist
|
||||||
|
return
|
||||||
|
|
||||||
|
sr_item = frappe.qb.DocType(doctype)
|
||||||
|
|
||||||
(frappe.qb
|
(frappe.qb
|
||||||
.update(sr_item)
|
.update(sr_item)
|
||||||
|
|||||||
Reference in New Issue
Block a user