2012-07-19 13:40:31 +05:30
|
|
|
from __future__ import unicode_literals
|
2012-07-02 20:25:26 +05:30
|
|
|
def execute():
|
|
|
|
import webnotes
|
|
|
|
webnotes.conn.sql("""\
|
|
|
|
delete from `tabDocPerm`
|
|
|
|
where parent in ('Address', 'Contact')""")
|
|
|
|
webnotes.conn.commit()
|
|
|
|
|
|
|
|
import webnotes.model.sync
|
|
|
|
webnotes.model.sync.sync('utilities', 'address')
|
|
|
|
webnotes.model.sync.sync('utilities', 'contact')
|
|
|
|
webnotes.conn.begin()
|