create manufacturing activity type via patch only if setup completed
This commit is contained in:
		
							parent
							
								
									f2eed445e5
								
							
						
					
					
						commit
						e9d83303d3
					
				| @ -4,7 +4,7 @@ | ||||
| import frappe | ||||
| 
 | ||||
| def execute(): | ||||
| 	if not frappe.db.exists('Activity Type','Manufacturing'): | ||||
| 	if not frappe.db.exists('Activity Type','Manufacturing') and frappe.get_all("Company"): | ||||
| 		frappe.get_doc({ | ||||
| 			"doctype": "Activity Type", | ||||
| 			"activity_type": "Manufacturing" | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user