mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-05 13:24:47 +00:00
moved directory structure
This commit is contained in:
15
patches/june_2012/reports_list_permission.py
Normal file
15
patches/june_2012/reports_list_permission.py
Normal file
@@ -0,0 +1,15 @@
|
||||
from __future__ import unicode_literals
|
||||
def execute():
|
||||
"""allow read permission to all for report list"""
|
||||
import webnotes
|
||||
webnotes.conn.sql("""\
|
||||
delete from `tabDocPerm`
|
||||
where parent in ('Report', 'Search Criteria')""")
|
||||
|
||||
webnotes.conn.commit()
|
||||
|
||||
import webnotes.model.sync
|
||||
webnotes.model.sync.sync('core', 'search_criteria')
|
||||
webnotes.model.sync.sync('core', 'report')
|
||||
|
||||
webnotes.conn.begin()
|
||||
Reference in New Issue
Block a user