mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-03 12:19:12 +00:00
fix(patch): update_sre_from_voucher_details (#37649)
This commit is contained in:
@@ -3,6 +3,9 @@ from frappe.query_builder.functions import IfNull
|
|||||||
|
|
||||||
|
|
||||||
def execute():
|
def execute():
|
||||||
|
columns = frappe.db.get_table_columns("Stock Reservation Entry")
|
||||||
|
|
||||||
|
if set(["against_pick_list", "against_pick_list_item"]).issubset(set(columns)):
|
||||||
sre = frappe.qb.DocType("Stock Reservation Entry")
|
sre = frappe.qb.DocType("Stock Reservation Entry")
|
||||||
(
|
(
|
||||||
frappe.qb.update(sre)
|
frappe.qb.update(sre)
|
||||||
|
|||||||
Reference in New Issue
Block a user