mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-15 00:06:22 +00:00
Add ignore permissions for opportunity
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user