Hi Everyone,
I am stuck up in a tricky situation, whenever I create a new doctype and then I create any new record using that doctype everything is fine upto this stage, but I am not able to open any of these doctype after creating.
Below the error I got when I try to open that:
Traceback (most recent call last):
File "/home/vishnu/frappe-bench/apps/frappe/frappe/desk/form/load.py", line 32, in getdoc
doc = frappe.get_doc(doctype, name)
File "/home/vishnu/frappe-bench/apps/frappe/frappe/__init__.py", line 596, in get_doc
return frappe.model.document.get_doc(arg1, arg2)
File "/home/vishnu/frappe-bench/apps/frappe/frappe/model/document.py", line 50, in get_doc
return controller(arg1, arg2)
File "/home/vishnu/frappe-bench/apps/frappe/frappe/model/document.py", line 83, in __init__
self.load_from_db()
File "/home/vishnu/frappe-bench/apps/frappe/frappe/model/document.py", line 116, in load_from_db
super(Document, self).__init__(d)
File "/home/vishnu/frappe-bench/apps/frappe/frappe/model/base_document.py", line 52, in __init__
self.update(d)
File "/home/vishnu/frappe-bench/apps/frappe/frappe/model/base_document.py", line 75, in update
self.set(key, value)
TypeError: 'NoneType' object is not callable
Traceback (most recent call last):
File "/home/vishnu/frappe-bench/apps/frappe/frappe/app.py", line 55, in application
response = frappe.handler.handle()
File "/home/vishnu/frappe-bench/apps/frappe/frappe/handler.py", line 19, in handle
execute_cmd(cmd)
File "/home/vishnu/frappe-bench/apps/frappe/frappe/handler.py", line 40, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File "/home/vishnu/frappe-bench/apps/frappe/frappe/__init__.py", line 897, in call
return fn(*args, **newargs)
File "/home/vishnu/frappe-bench/apps/frappe/frappe/desk/form/load.py", line 32, in getdoc
doc = frappe.get_doc(doctype, name)
File "/home/vishnu/frappe-bench/apps/frappe/frappe/__init__.py", line 596, in get_doc
return frappe.model.document.get_doc(arg1, arg2)
File "/home/vishnu/frappe-bench/apps/frappe/frappe/model/document.py", line 50, in get_doc
return controller(arg1, arg2)
File "/home/vishnu/frappe-bench/apps/frappe/frappe/model/document.py", line 83, in __init__
self.load_from_db()
File "/home/vishnu/frappe-bench/apps/frappe/frappe/model/document.py", line 116, in load_from_db
super(Document, self).__init__(d)
File "/home/vishnu/frappe-bench/apps/frappe/frappe/model/base_document.py", line 52, in __init__
self.update(d)
File "/home/vishnu/frappe-bench/apps/frappe/frappe/model/base_document.py", line 75, in update
self.set(key, value)
TypeError: 'NoneType' object is not callable
Any idea about this?
Regards
Ruchin Sharma