From b05b1dacd5701df59d942418f9f314863d118474 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 19 Feb 2013 16:54:49 +0530 Subject: [PATCH] added Follow Via Email --- .../leave_application/leave_application.py | 2 +- .../leave_application/leave_application.txt | 18 +++++++++++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/hr/doctype/leave_application/leave_application.py b/hr/doctype/leave_application/leave_application.py index 5170e26c25..981bb98d1c 100755 --- a/hr/doctype/leave_application/leave_application.py +++ b/hr/doctype/leave_application/leave_application.py @@ -185,7 +185,7 @@ class DocType(DocListController): args = webnotes._dict(args) from utilities.page.messages.messages import post post({"txt": args.message, "contact": args.message_to, "subject": args.subject, - "notify": True}) + "notify": cint(self.doc.follow_via_email)}) @webnotes.whitelist() def get_leave_balance(employee, leave_type, fiscal_year): diff --git a/hr/doctype/leave_application/leave_application.txt b/hr/doctype/leave_application/leave_application.txt index 5942eaec8a..f0f15604e6 100644 --- a/hr/doctype/leave_application/leave_application.txt +++ b/hr/doctype/leave_application/leave_application.txt @@ -2,7 +2,7 @@ { "creation": "2013-02-18 18:37:56", "docstatus": 0, - "modified": "2013-02-19 15:21:03", + "modified": "2013-02-19 16:30:05", "modified_by": "Administrator", "owner": "Administrator" }, @@ -159,6 +159,16 @@ "label": "More Info", "permlevel": 0 }, + { + "allow_on_submit": 1, + "default": "1", + "doctype": "DocField", + "fieldname": "follow_via_email", + "fieldtype": "Check", + "label": "Follow via Email", + "permlevel": 0, + "print_hide": 1 + }, { "default": "Today", "doctype": "DocField", @@ -181,6 +191,12 @@ "reqd": 1, "search_index": 0 }, + { + "doctype": "DocField", + "fieldname": "column_break_17", + "fieldtype": "Column Break", + "permlevel": 0 + }, { "doctype": "DocField", "fieldname": "company",