Update status if tasks have been completed (#14601)

diff --git a/erpnext/projects/doctype/project/project.py b/erpnext/projects/doctype/project/project.py
index 27abae8..14817ae 100644
--- a/erpnext/projects/doctype/project/project.py
+++ b/erpnext/projects/doctype/project/project.py
@@ -160,6 +160,10 @@
 				for row in weighted_progress:
 					pct_complete += row["progress"] * row["task_weight"]
 				self.percent_complete = flt(flt(pct_complete), 2)
+		if self.percent_complete == 100:
+			self.status = "Completed"
+		elif not self.status == "Cancelled":
+			self.status = "Open"
 
 	def update_costing(self):
 		from_time_sheet = frappe.db.sql("""select