2019-01-22 18:22:20 +05:30
|
|
|
from __future__ import unicode_literals
|
2015-07-15 16:30:22 +05:30
|
|
|
import frappe
|
|
|
|
|
|
|
|
def execute():
|
2015-07-16 14:16:48 +05:30
|
|
|
if not frappe.db.exists("Role", "Stock User"):
|
|
|
|
frappe.rename_doc("Role", "Material User", "Stock User")
|
|
|
|
if not frappe.db.exists("Role", "Stock Manager"):
|
|
|
|
frappe.rename_doc("Role", "Material Manager", "Stock Manager")
|
2016-11-07 19:38:37 +08:00
|
|
|
if not frappe.db.exists("Role", "Item Manager"):
|
2015-07-16 14:16:48 +05:30
|
|
|
frappe.rename_doc("Role", "Material Master Manager", "Item Manager")
|