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