brotherton-erpnext/erpnext/patches/v6_21/rename_material_request_fields.py

11 lines
392 B
Python
Raw Normal View History

# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
from __future__ import unicode_literals
import frappe
from frappe.model.utils.rename_field import rename_field
def execute():
frappe.reload_doc('Stock', 'doctype', 'material_request_item')
rename_field("Material Request Item", "sales_order", "sales_order")