User __default shown in demo.frappecloud.com and save failed.

29 views
Skip to first unread message

Y Y

unread,
Aug 28, 2014, 5:24:33 AM8/28/14
to erpnext-dev...@googlegroups.com
Traceback (innermost last):
File "/home/erpnext/frappe-bench/apps/frappe/frappe/widgets/form/save.py", line 18, in savedocs
doc.save()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 169, in save
self.insert()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 156, in insert
self.run_post_save_methods()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 433, in run_post_save_methods
self.run_method("on_update")
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 406, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 484, in composer
return composed(self, method, *args, **kwargs)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 467, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 400, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/core/doctype/communication/communication.py", line 32, in on_update
self.update_parent()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/core/doctype/communication/communication.py", line 28, in update_parent
parent_doc = self.get_parent_doc()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/core/doctype/communication/communication.py", line 24, in get_parent_doc
return frappe.get_doc(self.parenttype, self.parent)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 347, in get_doc
return frappe.model.document.get_doc(arg1, arg2)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 22, in get_doc
doctype = arg1.get("doctype")
AttributeError: 'NoneType' object has no attribute 'get'

Traceback (innermost last):
File "/home/erpnext/frappe-bench/apps/frappe/frappe/app.py", line 49, in application
response = frappe.handler.handle()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/handler.py", line 66, in handle
execute_cmd(cmd)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/handler.py", line 89, in execute_cmd
ret = frappe.call(method, **frappe.form_dict)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 526, in call
return fn(*args, **newargs)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/widgets/form/save.py", line 18, in savedocs
doc.save()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 169, in save
self.insert()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 156, in insert
self.run_post_save_methods()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 433, in run_post_save_methods
self.run_method("on_update")
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 406, in run_method
return Document.hook(fn)(self, *args, **kwargs)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 484, in composer
return composed(self, method, *args, **kwargs)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 467, in runner
add_to_return_value(self, fn(self, *args, **kwargs))
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 400, in
fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/core/doctype/communication/communication.py", line 32, in on_update
self.update_parent()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/core/doctype/communication/communication.py", line 28, in update_parent
parent_doc = self.get_parent_doc()
File "/home/erpnext/frappe-bench/apps/frappe/frappe/core/doctype/communication/communication.py", line 24, in get_parent_doc
return frappe.get_doc(self.parenttype, self.parent)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py", line 347, in get_doc
return frappe.model.document.get_doc(arg1, arg2)
File "/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py", line 22, in get_doc
doctype = arg1.get("doctype")
AttributeError: 'NoneType' object has no attribute 'get'

Anand Doshi

unread,
Sep 2, 2014, 11:45:13 AM9/2/14
to ERPNext Developer's Forum
Yang,

Can you give us a list of steps to reproduce this error?

-Anand.


--
Note:
 
If you are posting an issue,
 
1. ERPNext is a free and open source software and support is given on this forum by a team (https://frappe.io/webnotes). So please consider donating if you find this forum useful (https://frappe.io/buy). Even a small amount would be helpful.
2. We should be able to replicate it at our end. So please give us as much information as you can. Please see it from the point of view of the person receiving the communication.
3. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
4. For sending images, use http://imgur.com or other similar services. Do not send images as attachments. Links are good. Same goes for any file you are going to send.
 
End of Note
---
You received this message because you are subscribed to the Google Groups "ERPNext Developer Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to erpnext-developer...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/e08f915d-1721-468f-8c23-ef09515e7253%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Y Y

unread,
Sep 2, 2014, 8:45:56 PM9/2/14
to erpnext-dev...@googlegroups.com
Sorry, i shall added it,

In Support ticket -> Communication -> New, at the end of page, there is __Default, sometimes, it failed to save. 

在 2014年8月28日星期四UTC+8下午5时24分33秒,Y Y写道:
Reply all
Reply to author
Forward
0 new messages