* success action config for sales invoice * remove "Notification Control" doctype and its usage * add default success action after_install or while migration (patch) * rename for_doctype to ref_doctype * case change * minor fix * Remove unnecessary code * Replace message with translatable message * Fix 'cannot import error'
		
			
				
	
	
		
			7 lines
		
	
	
		
			183 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			183 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| import frappe
 | |
| from erpnext.setup.install import create_default_success_action
 | |
| 
 | |
| def execute():
 | |
| 	frappe.reload_doc("core", "doctype", "success_action")
 | |
| 	create_default_success_action()
 |