Add ignore permissions for opportunity
This commit is contained in:
		
							parent
							
								
									e494144c96
								
							
						
					
					
						commit
						4701bc8bfc
					
				| @ -140,11 +140,11 @@ class Appointment(Document): | |||||||
|             filters={ |             filters={ | ||||||
|                 'party_name': self.lead, |                 'party_name': self.lead, | ||||||
|             }, |             }, | ||||||
|  |             ignore_permissions=True, | ||||||
|             order_by='creation desc') |             order_by='creation desc') | ||||||
|         if not opporutnities: |         if not opporutnities: | ||||||
|             return None |             return None | ||||||
|         latest_opportunity = frappe.get_doc( |         latest_opportunity = frappe.get_doc('Opportunity', opporutnities[0].name ) | ||||||
|             'Opportunity', opporutnities[0].name) |  | ||||||
|         assignee = latest_opportunity._assign |         assignee = latest_opportunity._assign | ||||||
|         if not assignee: |         if not assignee: | ||||||
|             return None |             return None | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user