Skip to content

Commit

Permalink
Merge pull request #175 from efeone/create_bom_hos_notification
Browse files Browse the repository at this point in the history
  • Loading branch information
muhammadmp authored Nov 7, 2023
2 parents ccccc70 + ad84c57 commit 9eb7903
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions aumms/aumms/doctype/design_analysis/design_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import frappe
from frappe.model.document import Document
from frappe.desk.form.assign_to import add as add_assign
from aumms.aumms.utils import create_notification_log

class DesignAnalysis(Document):
def autoname(self):
Expand All @@ -30,6 +31,10 @@ def create_bom_function(doctype, docname,assign_to):
"doctype": bom.doctype,
"name": bom.name
})
#Send system notification and email to assignee
subject = "New BOM request received"
content = "You've been assigned a new BOM for work order creation. Please review it at your earliest convenience."
create_notification_log(doctype, docname, assign_to, subject, content)
return True

else:
Expand Down

0 comments on commit 9eb7903

Please sign in to comment.