added Follow Via Email

This commit is contained in:
Anand Doshi
2013-02-19 16:54:49 +05:30
parent 63910e3f20
commit b05b1dacd5
2 changed files with 18 additions and 2 deletions

View File

@@ -185,7 +185,7 @@ class DocType(DocListController):
args = webnotes._dict(args) args = webnotes._dict(args)
from utilities.page.messages.messages import post from utilities.page.messages.messages import post
post({"txt": args.message, "contact": args.message_to, "subject": args.subject, post({"txt": args.message, "contact": args.message_to, "subject": args.subject,
"notify": True}) "notify": cint(self.doc.follow_via_email)})
@webnotes.whitelist() @webnotes.whitelist()
def get_leave_balance(employee, leave_type, fiscal_year): def get_leave_balance(employee, leave_type, fiscal_year):

View File

@@ -2,7 +2,7 @@
{ {
"creation": "2013-02-18 18:37:56", "creation": "2013-02-18 18:37:56",
"docstatus": 0, "docstatus": 0,
"modified": "2013-02-19 15:21:03", "modified": "2013-02-19 16:30:05",
"modified_by": "Administrator", "modified_by": "Administrator",
"owner": "Administrator" "owner": "Administrator"
}, },
@@ -159,6 +159,16 @@
"label": "More Info", "label": "More Info",
"permlevel": 0 "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", "default": "Today",
"doctype": "DocField", "doctype": "DocField",
@@ -181,6 +191,12 @@
"reqd": 1, "reqd": 1,
"search_index": 0 "search_index": 0
}, },
{
"doctype": "DocField",
"fieldname": "column_break_17",
"fieldtype": "Column Break",
"permlevel": 0
},
{ {
"doctype": "DocField", "doctype": "DocField",
"fieldname": "company", "fieldname": "company",