2012-07-19 13:40:31 +05:30
|
|
|
from __future__ import unicode_literals
|
2012-06-13 18:02:43 +05:30
|
|
|
def execute():
|
|
|
|
"""allow read permission to all for report list"""
|
|
|
|
import webnotes
|
2012-06-13 19:04:27 +05:30
|
|
|
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()
|