[project] [event] fix in creation of event
This commit is contained in:
parent
670199b9c6
commit
f09a9f68e4
@ -73,7 +73,8 @@ class DocType:
|
||||
|
||||
# add events
|
||||
for milestone in self.doclist.get({"parentfield": "project_milestones"}):
|
||||
description = milestone.milestone + " for " + self.doc.name
|
||||
if milestone.milestone_date:
|
||||
description = (milestone.milestone or "Milestone") + " for " + self.doc.name
|
||||
webnotes.bean({
|
||||
"doctype": "Event",
|
||||
"owner": self.doc.owner,
|
||||
|
Loading…
x
Reference in New Issue
Block a user