brotherton-erpnext/patches/january_2013/give_report_permission_on_read.py
2013-01-13 14:34:38 +05:30

5 lines
125 B
Python

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