brotherton-erpnext/patches/january_2013/give_report_permission_on_read.py

5 lines
125 B
Python
Raw Normal View History

import webnotes
def execute():
webnotes.conn.sql("""update tabDocPerm set `report`=`read`
where ifnull(permlevel,0)=0""")