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

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'



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-forum+un…@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.
Yang,

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

-Anand.


On Thu, Aug 28, 2014 at 2:54 PM, Y Y <ya...@gmail.com> wrote:

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()<br>  File &quot;/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py&quot;, line 156, in insert<br>    self.run_post_save_methods()<br>  File &quot;/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py&quot;, line 433, in run_post_save_methods<br>

self.run_method(&quot;on_update&quot;)<br>  File &quot;/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py&quot;, line 406, in run_method<br>    return Document.hook(fn)(self, *args, **kwargs)<br>  File &quot;/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py&quot;, line 484, in composer<br>

return composed(self, method, *args, **kwargs)<br>  File &quot;/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py&quot;, line 467, in runner<br>    add_to_return_value(self, fn(self, *args, **kwargs))<br>

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()<br>  File &quot;/home/erpnext/frappe-bench/apps/frappe/frappe/core/doctype/communication/communication.py&quot;, line 28, in update_parent<br>    parent_doc = self.get_parent_doc()<br>  File &quot;/home/erpnext/frappe-bench/apps/frappe/frappe/core/doctype/communication/communication.py&quot;, line 24, in get_parent_doc<br>

return frappe.get_doc(self.parenttype, self.parent)<br>  File &quot;/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py&quot;, line 347, in get_doc<br>    return frappe.model.document.get_doc(arg1, arg2)<br>  File &quot;/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py&quot;, line 22, in get_doc<br>

doctype = arg1.get(&quot;doctype&quot;)<br> AttributeError: &#39;NoneType&#39; object has no attribute &#39;get&#39;<br><br>Traceback (innermost last):<br>  File &quot;/home/erpnext/frappe-bench/apps/frappe/frappe/app.py&quot;, line 49, in application<br>

response = frappe.handler.handle()<br>  File &quot;/home/erpnext/frappe-bench/apps/frappe/frappe/handler.py&quot;, line 66, in handle<br>    execute_cmd(cmd)<br>  File &quot;/home/erpnext/frappe-bench/apps/frappe/frappe/handler.py&quot;, line 89, in execute_cmd<br>

ret = frappe.call(method, **frappe.form_dict)<br>  File &quot;/home/erpnext/frappe-bench/apps/frappe/frappe/__init__.py&quot;, line 526, in call<br>    return fn(*args, **newargs)<br>  File &quot;/home/erpnext/frappe-bench/apps/frappe/frappe/widgets/form/save.py&quot;, line 18, in savedocs<br>

doc.save()<br>  File &quot;/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py&quot;, line 169, in save<br>    self.insert()<br>  File &quot;/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py&quot;, line 156, in insert<br>

self.run_post_save_methods()<br>  File &quot;/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py&quot;, line 433, in run_post_save_methods<br>    self.run_method(&quot;on_update&quot;)<br>  File &quot;/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py&quot;, line 406, in run_method<br>

return Document.hook(fn)(self, *args, **kwargs)<br>  File &quot;/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py&quot;, line 484, in composer<br>    return composed(self, method, *args, **kwargs)<br>  File &quot;/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py&quot;, line 467, in runner<br>

add_to_return_value(self, fn(self, *args, **kwargs))<br>  File &quot;/home/erpnext/frappe-bench/apps/frappe/frappe/model/document.py&quot;, line 400, in <u></u><br>    fn = lambda self, *args, **kwargs: getattr(self, method)(*args, **kwargs)<br>

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()<br>  File &quot;/home/erpnext/frappe-bench/apps/frappe/frappe/core/doctype/communication/communication.py&quot;, line 24, in get_parent_doc<br>    return frappe.get_doc(self.parenttype, self.parent)<br>

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(&quot;doctype&quot;)<br> AttributeError: &#39;NoneType&#39; object has no attribute &#39;get&#39;<u></u><u></u></pre></div>



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-forum+un…@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.




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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/CAAQzbF1p8VKrhOJRdVO8i_qpx%2BHDAR2Tb1WQWT9efiy4ZtyLNQ%40mail.gmail.com.

    For more options, visit https://groups.google.com/d/optout.
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写道:
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'



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-forum+un…@googlegroups.com.

    To view this discussion on the web visit https://groups.google.com/d/msgid/erpnext-developer-forum/408aeb65-4bda-4276-bba4-04e9a2650cb4%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.