14 lines
		
	
	
		
			442 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			442 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| # Copyright (c) 2013, Web Notes Technologies Pvt. Ltd.
 | |
| # License: GNU General Public License v3. See license.txt
 | |
| 
 | |
| from __future__ import unicode_literals
 | |
| def execute():
 | |
| 	import webnotes
 | |
| 	webnotes.conn.sql("""\
 | |
| 		delete from `tabDocPerm`
 | |
| 		where parent in ('Address', 'Contact')""")
 | |
| 	webnotes.conn.commit()
 | |
| 	
 | |
| 	webnotes.reload_doc('utilities', 'doctype', 'address')
 | |
| 	webnotes.reload_doc('utilities', 'doctype', 'contact')
 | |
| 	webnotes.conn.begin() |