[fix] [patch] reload doctype missing in patch
This commit is contained in:
parent
b33df4afe8
commit
4177504860
@ -1,8 +1,8 @@
|
||||
import frappe
|
||||
from frappe.utils import cint
|
||||
|
||||
def execute():
|
||||
for data in frappe.db.sql(""" select prevdoc_docname, prevdoc_detail_docname, name
|
||||
frappe.reload_doctype('Supplier Quotation Item')
|
||||
for data in frappe.db.sql(""" select prevdoc_docname, prevdoc_detail_docname, name
|
||||
from `tabSupplier Quotation Item` where prevdoc_docname is not null""", as_dict=True):
|
||||
frappe.db.set_value("Supplier Quotation Item", data.name, "material_request", data.prevdoc_docname)
|
||||
frappe.db.set_value("Supplier Quotation Item", data.name, "material_request_item", data.prevdoc_detail_docname)
|
Loading…
x
Reference in New Issue
Block a user