communication.js / email_doc: added real name
This commit is contained in:
parent
cf0203f56a
commit
ebd52c6b0f
2 changed files with 8 additions and 2 deletions
|
|
@ -211,7 +211,8 @@ _f.Frm.prototype.email_doc = function(message) {
|
|||
subject: get_doctype_label(this.meta.name) + ': ' + this.docname,
|
||||
recipients: this.doc.email || this.doc.email_id || this.doc.contact_email,
|
||||
attach_document_print: true,
|
||||
message: message
|
||||
message: message,
|
||||
real_name: this.doc.real_name || this.doc.contact_display || this.doc.contact_name
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -223,8 +223,13 @@ wn.views.CommunicationComposer = Class.extend({
|
|||
signature = signature.replace(/\n/g, "<br>");
|
||||
}
|
||||
|
||||
if(this.real_name) {
|
||||
this.message = '<p>Dear ' + this.real_name + ",</p>" + (this.message || "");
|
||||
}
|
||||
|
||||
if(comm_list.length > 0) {
|
||||
fields.content.input.set_input("<p></p>"
|
||||
fields.content.input.set_input((this.message || "") +
|
||||
"<p></p>"
|
||||
+ signature
|
||||
+"<p></p>"
|
||||
+"-----In response to-----<p></p>"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue