brotherton-erpnext/erpnext/patches/may_2012/create_report_manager_role.py

9 lines
248 B
Python
Raw Normal View History

2012-05-23 07:25:11 +00:00
def execute():
import webnotes
from webnotes.model.doc import Document
if not webnotes.conn.sql("select name from `tabRole` where name = 'Report Manager'"):
r = Document('Role')
r.role_name = 'Report Manager'
r.module = 'Core'
r.save()