mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-06 13:49:13 +00:00
codacy fixes
This commit is contained in:
committed by
Rushabh Mehta
parent
94c6b7409b
commit
e92b4737e3
@@ -22,7 +22,7 @@ frappe.ui.form.on('Training Event', {
|
|||||||
var params = getSearchParameters();
|
var params = getSearchParameters();
|
||||||
if (params.hasOwnProperty('employee') && params.hasOwnProperty('status')) {
|
if (params.hasOwnProperty('employee') && params.hasOwnProperty('status')) {
|
||||||
var newTemp = frm.doc.employees.filter(function(obj) {
|
var newTemp = frm.doc.employees.filter(function(obj) {
|
||||||
return obj.name == params.employee
|
return obj.name == params.employee;
|
||||||
});
|
});
|
||||||
if (newTemp) {
|
if (newTemp) {
|
||||||
newTemp[0].status = params.status;
|
newTemp[0].status = params.status;
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ class TrainingEvent(Document):
|
|||||||
if email:
|
if email:
|
||||||
make(subject = subject, content=message,recipients=email,
|
make(subject = subject, content=message,recipients=email,
|
||||||
sender=sender,attachments = attachments, send_email=True,
|
sender=sender,attachments = attachments, send_email=True,
|
||||||
doctype=self.doctype, name=self.name)["name"]
|
doctype=self.doctype, name=self.name)
|
||||||
frappe.msgprint(_("Email sent to {0}").format(data.employee_name))
|
frappe.msgprint(_("Email sent to {0}").format(data.employee_name))
|
||||||
|
|
||||||
def get_attachments(self):
|
def get_attachments(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user