mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-10 13:57:19 +00:00
Merge pull request #23411 from anupamvs/leave-application-status-v12-hotfix
fix: leave application status fix
This commit is contained in:
@@ -166,7 +166,6 @@
|
||||
"fieldtype": "Column Break"
|
||||
},
|
||||
{
|
||||
"allow_on_submit": 1,
|
||||
"default": "Open",
|
||||
"fieldname": "status",
|
||||
"fieldtype": "Select",
|
||||
@@ -245,9 +244,10 @@
|
||||
],
|
||||
"icon": "fa fa-calendar",
|
||||
"idx": 1,
|
||||
"index_web_pages_for_search": 1,
|
||||
"is_submittable": 1,
|
||||
"max_attachments": 3,
|
||||
"modified": "2020-08-13 17:22:44.832397",
|
||||
"modified": "2020-09-23 19:11:58.806837",
|
||||
"modified_by": "Administrator",
|
||||
"module": "HR",
|
||||
"name": "Leave Application",
|
||||
|
||||
@@ -56,7 +56,7 @@ class LeaveApplication(Document):
|
||||
|
||||
def on_cancel(self):
|
||||
self.create_leave_ledger_entry(submit=False)
|
||||
self.status = "Cancelled"
|
||||
self.db_set("status", "Cancelled")
|
||||
# notify leave applier about cancellation
|
||||
self.notify_employee()
|
||||
self.cancel_attendance()
|
||||
|
||||
Reference in New Issue
Block a user