[Enhancement] Leave Application and Expense Claim (#13645)

* child table employee expense approver

* set query in department

* mandatory approver check in hr settings

* triggers on leave and expense approver

* fetch all parent approvers from department hierarchy

* fixes

* patch to move employee approvers from employee to department

* removed hard coding of roles

* modify approvers list query

* commonified functions

* patch

* renamed standard reply occurrences

* removed leave approvers table from Employee master

* email templates for leave application notification

* set default email templates for leave in hr settings

* notify by email template

* approval status in expense claim

* render template in patch

* removed unused code

* Single child table department approver

* read instead of render template
This commit is contained in:
Shreya Shah
2018-04-20 10:28:52 +05:30
committed by Rushabh Mehta
parent 742da8cfce
commit 44e719d64c
31 changed files with 1990 additions and 1260 deletions

View File

@@ -61,6 +61,8 @@ def set_default_settings(args):
hr_settings = frappe.get_doc("HR Settings")
hr_settings.emp_created_by = "Naming Series"
hr_settings.leave_approval_notification_template = "Leave Approval Notification"
hr_settings.leave_status_notification_template = "Leave Status Notification"
hr_settings.save()
def set_no_copy_fields_in_variant_settings():