[fix]fix name definition in old patch (#6841)

This commit is contained in:
robert schouten 2016-11-07 19:38:37 +08:00 committed by Rushabh Mehta
parent dc3d9ac26c
commit 27d45a244e

View File

@ -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")