patch: reload_doc before inserting values

This commit is contained in:
Himanshu Warekar 2019-06-06 11:15:33 +05:30
parent e175dd8249
commit b9c24a01da

View File

@ -1,6 +1,8 @@
import frappe
def execute():
frappe.reload_doc("support", "doctype", "issue_priority")
priorities = frappe.get_meta("Issue").get_field("priority").options.split("\n")
for priority in priorities: