diff --git a/erpnext/projects/doctype/project/project.py b/erpnext/projects/doctype/project/project.py index 979c4fcace..44b0c00e65 100644 --- a/erpnext/projects/doctype/project/project.py +++ b/erpnext/projects/doctype/project/project.py @@ -75,7 +75,7 @@ class Project(Document): sum = 0 for task in self.tasks: if task.task_weight > 0: - sum = sum + task.task_weight + sum = flt(sum + task.task_weight, task.precision('task_weight')) if sum > 0 and sum != 1: frappe.throw(_("Total of all task weights should be 1. Please adjust weights of all Project tasks accordingly"))