i migrate my database from v10 to v12. in role manager when i select production user. the popup shows “doctype production order not found” and no role showing in this area. is the production order doctype name changed in v12?
Production Order was renamed to Work Order in v11.
how can i correct this role manager giving error?
What was the upgrade procedure followed?
When updating from v10 to v11, there was a patch written to manage the change:
# Copyright (c) 2018, Frappe and Contributors
# License: GNU General Public License v3. See license.txt
import frappe
from frappe.model.utils.rename_field import rename_field
def execute():
frappe.rename_doc("DocType", "Production Order", "Work Order", force=True)
frappe.reload_doc("manufacturing", "doctype", "work_order")
frappe.rename_doc("DocType", "Production Order Item", "Work Order Item", force=True)
frappe.reload_doc("manufacturing", "doctype", "work_order_item")
frappe.rename_doc("DocType", "Production Order Operation", "Work Order Operation", force=True)
frappe.reload_doc("manufacturing", "doctype", "work_order_operation")
frappe.reload_doc("projects", "doctype", "timesheet")
frappe.reload_doc("stock", "doctype", "stock_entry")
This file has been truncated. show original
First i migrate database to v11, then take backup and migrate to v12. How can i apply this patch
how can i apply this patch in v12?
i see that the patch was already applied. i think the patch isnt enough to rename all values in database