fix:incosistent tabs and spaces

This commit is contained in:
Pranav Nachanekar 2019-10-04 15:36:36 +05:30
parent bfe18d6085
commit 0082b78075

View File

@ -89,6 +89,7 @@ class Appointment(Document):
self.auto_assign() self.auto_assign()
self.save(ignore_permissions=True) self.save(ignore_permissions=True)
frappe.db.commit() frappe.db.commit()
this.wrapper.find('.filter-edit-area').after(this.get_clear_button())
def create_lead(self): def create_lead(self):
# Return if already linked # Return if already linked
@ -106,16 +107,16 @@ class Appointment(Document):
self.lead = lead.name self.lead = lead.name
def auto_assign(self): def auto_assign(self):
# If the latest opportunity is assigned to someone # If the latest opportunity is assigned to someone
# Assign the appointment to the same # Assign the appointment to the same
existing_assignee = self.get_assignee_from_latest_opportunity() existing_assignee = self.get_assignee_from_latest_opportunity()
if existing_assignee: if existing_assignee:
add_assignemnt({ add_assignemnt({
'doctype':self.doctype 'doctype': self.doctype
'name':self.name 'name': self.name
'assign_to':existing_assignee 'assign_to': existing_assignee
}) })
return return
if self._assign: if self._assign:
return return
available_agents = _get_agents_sorted_by_asc_workload( available_agents = _get_agents_sorted_by_asc_workload(