[fix] [patch] rename_quality_inspection_field

This commit is contained in:
Rushabh Mehta 2016-11-21 16:19:50 +05:30
parent d50d6a559c
commit 75d455422a

View File

@ -13,7 +13,7 @@ def execute():
frappe.reload_doctype("Item")
rename_field("Item", "inspection_required", "inspection_required_before_purchase")
frappe.reload_doctype("Quality Inspection")
frappe.reload_doc('stock', 'doctype', 'quality_inspection')
frappe.db.sql("""
update
`tabQuality Inspection`
@ -36,4 +36,3 @@ def execute():
update_reports("Quality Inspection", old_fieldname, "reference_name")
update_users_report_view_settings("Quality Inspection", old_fieldname, "reference_name")
update_property_setters("Quality Inspection", old_fieldname, "reference_name")