brotherton-erpnext/patches/january_2013/give_report_permission_on_read.py

8 lines
256 B
Python
Raw Normal View History

2013-11-20 07:29:58 +00:00
# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors
# License: GNU General Public License v3. See license.txt
import webnotes
def execute():
webnotes.conn.sql("""update tabDocPerm set `report`=`read`
where ifnull(permlevel,0)=0""")