[project] [event] fix in creation of event

This commit is contained in:
Anand Doshi 2013-06-10 15:57:52 +05:30
parent 670199b9c6
commit f09a9f68e4

View File

@ -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,