mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +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();
|
||||
if (params.hasOwnProperty('employee') && params.hasOwnProperty('status')) {
|
||||
var newTemp = frm.doc.employees.filter(function(obj) {
|
||||
return obj.name == params.employee
|
||||
return obj.name == params.employee;
|
||||
});
|
||||
if (newTemp) {
|
||||
newTemp[0].status = params.status;
|
||||
|
||||
@@ -64,7 +64,7 @@ class TrainingEvent(Document):
|
||||
if email:
|
||||
make(subject = subject, content=message,recipients=email,
|
||||
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))
|
||||
|
||||
def get_attachments(self):
|
||||
|
||||
Reference in New Issue
Block a user