brotherton-erpnext/patches/october_2013/p04_update_report_permission.py
Nabin Hait 1500c83cce -am
2013-10-22 11:42:50 +05:30

9 lines
296 B
Python

# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
# License: GNU General Public License v3. See license.txt
import webnotes
def execute():
webnotes.conn.sql("""update tabDocPerm set `create`=1 where
parent='Report'
and role in ('Administrator', 'Report Manager', 'System Manager')""")