brotherton-erpnext/erpnext/patches/v6_0/set_default_title.py

12 lines
370 B
Python
Raw Normal View History

import frappe
def execute():
# frappe.reload_doctype("Quotation")
# frappe.db.sql("""update tabQuotation set title = customer_name""")
#
# frappe.reload_doctype("Sales Order")
# frappe.db.sql("""update `tabSales Order` set title = customer_name""")
frappe.reload_doctype("Delivery Note")
frappe.db.sql("""update `tabDelivery Note` set title = customer_name""")