2012-07-19 08:10:31 +00:00
|
|
|
from __future__ import unicode_literals
|
2012-07-02 14:55:26 +00:00
|
|
|
def execute():
|
|
|
|
import webnotes
|
|
|
|
webnotes.conn.sql("""\
|
|
|
|
delete from `tabDocPerm`
|
|
|
|
where parent in ('Address', 'Contact')""")
|
|
|
|
webnotes.conn.commit()
|
|
|
|
|
2013-05-16 09:58:19 +00:00
|
|
|
webnotes.reload_doc('utilities', 'doctype', 'address')
|
|
|
|
webnotes.reload_doc('utilities', 'doctype', 'contact')
|
2012-07-02 14:55:26 +00:00
|
|
|
webnotes.conn.begin()
|