revert: changes to energy point log
This commit is contained in:
parent
daa6c617d4
commit
ac089c177a
1 changed files with 4 additions and 3 deletions
|
|
@ -115,11 +115,12 @@ def get_notification_message(doc):
|
|||
title = get_title(doc.reference_doctype, doc.reference_name)
|
||||
|
||||
if doc.type == "Auto":
|
||||
owner_name = frappe.bold("You")
|
||||
if points == 1:
|
||||
message = _("You gained {1} point for {2} {3}")
|
||||
message = _("{0} gained {1} point for {2} {3}")
|
||||
else:
|
||||
message = _("You gained {1} points for {2} {3}")
|
||||
message = message.format(frappe.bold(points), doc.rule, get_title_html(title))
|
||||
message = _("{0} gained {1} points for {2} {3}")
|
||||
message = message.format(owner_name, frappe.bold(points), doc.rule, get_title_html(title))
|
||||
elif doc.type == "Appreciation":
|
||||
if points == 1:
|
||||
message = _("{0} appreciated your work on {1} with {2} point")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue