Project error in tasks

Traceback (most recent call last):
File “/home/user/frappe-bench/apps/frappe/frappe/”, line 55, in application
response = frappe.handler.handle()
File “/home/user/frappe-bench/apps/frappe/frappe/”, line 19, in handle
File “/home/user/frappe-bench/apps/frappe/frappe/”, line 40, in execute_cmd
ret =, **frappe.form_dict)
File “/home/user/frappe-bench/apps/frappe/frappe/”, line 890, in call
return fn(*args, **newargs)
File “/home/user/frappe-bench/apps/frappe/frappe/desk/form/”, line 22, in savedocs
File “/home/user/frappe-bench/apps/frappe/frappe/model/”, line 233, in save
return self._save(*args, **kwargs)
File “/home/user/frappe-bench/apps/frappe/frappe/model/”, line 252, in _save
File “/home/user/frappe-bench/apps/frappe/frappe/model/”, line 203, in insert
File “/home/user/frappe-bench/apps/frappe/frappe/model/”, line 754, in run_before_save_methods
File “/home/user/frappe-bench/apps/frappe/frappe/model/”, line 655, in run_method
out = Document.hook(fn)(self, *args, **kwargs)
File “/home/user/frappe-bench/apps/frappe/frappe/model/”, line 883, in composer
return composed(self, method, *args, **kwargs)
File “/home/user/frappe-bench/apps/frappe/frappe/model/”, line 866, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File “/home/user/frappe-bench/apps/frappe/frappe/model/”, line 649, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File “/home/user/frappe-bench/apps/erpnext/erpnext/projects/doctype/project/”, line 48, in validate
File “/home/user/frappe-bench/apps/erpnext/erpnext/projects/doctype/project/”, line 60, in validate_weights
for task in self.tasks:
AttributeError: ‘Project’ object has no attribute ‘tasks’

Kindly provide the solution for this error team

I believe the program logic requires that projects have tasks, but that’s just from browsing the manual, not the code. Rhetorically: if there’s nothing to do, why is there a project?
Good luck!

Not necessarily true. Projects can be used without having a task attributed to it.

What version are you on @vivekchamp? And when does this error occur?