From 27d45a244e483ad85c6f5740bf05338106be643f Mon Sep 17 00:00:00 2001 From: robert schouten Date: Mon, 7 Nov 2016 19:38:37 +0800 Subject: [PATCH] [fix]fix name definition in old patch (#6841) --- erpnext/patches/v5_1/rename_roles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/patches/v5_1/rename_roles.py b/erpnext/patches/v5_1/rename_roles.py index 452c800944..26208aa1e5 100644 --- a/erpnext/patches/v5_1/rename_roles.py +++ b/erpnext/patches/v5_1/rename_roles.py @@ -5,5 +5,5 @@ def execute(): frappe.rename_doc("Role", "Material User", "Stock User") if not frappe.db.exists("Role", "Stock Manager"): frappe.rename_doc("Role", "Material Manager", "Stock Manager") - if not frappe.db.exists("Role", "Stock Manager"): + if not frappe.db.exists("Role", "Item Manager"): frappe.rename_doc("Role", "Material Master Manager", "Item Manager")