2015-08-26 13:23:37 +00:00
|
|
|
import frappe
|
|
|
|
|
|
|
|
def execute():
|
2015-08-26 16:49:41 +00:00
|
|
|
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""")
|
2015-08-26 13:23:37 +00:00
|
|
|
|
|
|
|
frappe.reload_doctype("Delivery Note")
|
|
|
|
frappe.db.sql("""update `tabDelivery Note` set title = customer_name""")
|
2015-08-26 16:49:41 +00:00
|
|
|
|
|
|
|
frappe.reload_doctype("Material Request")
|
|
|
|
frappe.db.sql("""update `tabMaterial Request` set title = material_request_type""")
|
|
|
|
|
|
|
|
frappe.reload_doctype("Supplier Quotation")
|
|
|
|
frappe.db.sql("""update `tabSupplier Quotation` set title = supplier_name""")
|
|
|
|
|
|
|
|
frappe.reload_doctype("Purchase Order")
|
|
|
|
frappe.db.sql("""update `tabPurchase Order` set title = supplier_name""")
|
|
|
|
|
|
|
|
frappe.reload_doctype("Purchase Receipt")
|
|
|
|
frappe.db.sql("""update `tabPurchase Receipt` set title = supplier_name""")
|
|
|
|
|
|
|
|
frappe.reload_doctype("Purchase Invoice")
|
|
|
|
frappe.db.sql("""update `tabPurchase Invoice` set title = supplier_name""")
|
|
|
|
|
|
|
|
frappe.reload_doctype("Stock Entry")
|
|
|
|
frappe.db.sql("""update `tabStock Entry` set title = purpose""")
|