brotherton-erpnext/patches/october_2013/p04_update_report_permission.py

9 lines
313 B
Python
Raw Normal View History

2013-11-20 07:29:58 +00:00
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
2013-10-22 06:12:50 +00:00
# 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')""")