Hi,
when i am adding DEFAULT RECEIVABLE ACCOUNT its giving error AttributeError: ‘CustomerGroup’ object has no attribute ‘parent_doc’
what mistake is done from my side, please help me out
Hi,
when i am adding DEFAULT RECEIVABLE ACCOUNT its giving error AttributeError: ‘CustomerGroup’ object has no attribute ‘parent_doc’
what mistake is done from my side, please help me out
Please try and examine your Customer Group Tree, I think you should be able to do it after that.
Also, have you customized Customer Group ? Or is parent_doc
a new field because I am using older ERPNext and I cannot find any such field.
What are your ERPNext and Frappe versions?
i have latest version
I am Able to Create a Customer group by adding to tree but when i edit a customer group on save its giving me this error
So what does this field do ? Does it link to the parent group ?
No after getting an error i tried to check with maria-db attribute error are there for the database field also so i created a field.
One more thing i viewed, when i make child without a check on Is Group its working fine but if i put a check on Is Group then its only giving error
Same here for task
Also it is a group !!!
Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 22, in savedocs
doc.save()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 259, in save
return self._save(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 291, in _save
self.validate_higher_perm_levels()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 546, in validate_higher_perm_levels
self.reset_values_if_no_permlevel_access(has_access_to, high_permlevel_fields)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 747, in reset_values_if_no_permlevel_access
self.parent_doc.get_latest()
AttributeError: ‘Task’ object has no attribute ‘parent_doc’Traceback (most recent call last):
File “/home/frappe/frappe-bench/apps/frappe/frappe/app.py”, line 62, in application
response = frappe.handler.handle()
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 22, in handle
data = execute_cmd(cmd)
File “/home/frappe/frappe-bench/apps/frappe/frappe/handler.py”, line 53, in execute_cmd
return frappe.call(method, **frappe.form_dict)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 939, in call
return fn(*args, **newargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/desk/form/save.py”, line 22, in savedocs
doc.save()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 259, in save
return self._save(*args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 291, in _save
self.validate_higher_perm_levels()
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/document.py”, line 546, in validate_higher_perm_levels
self.reset_values_if_no_permlevel_access(has_access_to, high_permlevel_fields)
File “/home/frappe/frappe-bench/apps/frappe/frappe/model/base_document.py”, line 747, in reset_values_if_no_permlevel_access
self.parent_doc.get_latest()
AttributeError: ‘Task’ object has no attribute ‘parent_doc’
Maybe try a
bench --site all clear-website-cache
Same Error !!
I can only guess that it might be a permissions problem then
Actually this error appears for certain user on certain task only who created this task
This user can update other tasks normally except this one
also other users can update this task except this user !!!
Does the user with the problem have access permission to this? Is the task open somewhere else?
Yes has access he also the owner
the task open and update normally with other users