2012-07-19 08:10:31 +00:00
|
|
|
from __future__ import unicode_literals
|
2012-06-13 12:32:43 +00:00
|
|
|
def execute():
|
|
|
|
"""allow read permission to all for report list"""
|
|
|
|
import webnotes
|
2012-06-13 13:34:27 +00:00
|
|
|
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()
|