Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Created notification for Head of Smith on BOM assignment #175

Merged
merged 1 commit into from
Nov 7, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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