minor fixes

This commit is contained in:
Anand Doshi
2015-02-26 20:27:41 +05:30
parent 851c745fdf
commit 8f9e631a44
4 changed files with 5 additions and 4 deletions

View File

@@ -5,7 +5,8 @@ def execute():
frappe.reload_doctype("Project")
for m in frappe.get_all("Project Milestone", "*"):
if m.milestone and m.milestone_date:
if (m.milestone and m.milestone_date
and frappe.db.exists("Project", m.parent)):
frappe.get_doc({
"doctype": "Task",
"subject": m.milestone,