old_contents: # Copyright (c) 2019, Frappe and Contributors
  # License: GNU General Public License v3. See license.txt
  
  from __future__ import unicode_literals
  
  import frappe
  
  def execute():
      frappe.reload_doctype("Pick List")
      frappe.db.sql("""UPDATE `tabPick List` set purpose = 'Delivery'
          WHERE docstatus = 1  and purpose = 'Delivery against Sales Order' """)
new_contents: # Copyright (c) 2019, Frappe and Contributors
  # License: GNU General Public License v3. See license.txt
  
  from __future__ import unicode_literals
  
  import frappe
  
  def execute():
      frappe.reload_doc("stock", "doctype", "pick_list")
      frappe.db.sql("""UPDATE `tabPick List` set purpose = 'Delivery'
          WHERE docstatus = 1  and purpose = 'Delivery against Sales Order' """)
subject: Use reload_doc in patch