Hello,
Open any DocType -> Copy -> Save -> did not save
generating error
Traceback (innermost last):
File “…/lib/py/webnotes/handler.py”, line 184, in handle
execute_cmd(cmd)
File “…/lib/py/webnotes/handler.py”, line 219, in execute_cmd
ret = method()
File “…/lib/py/webnotes/widgets/form/save.py”, line 54, in savedocs
raise e
Exception: [WNF] DocType New DocType 1 does not exist
Create New Doctype -> import from file ->
generating error
Traceback (innermost last):
File “…/lib/py/webnotes/handler.py”, line 184, in handle
execute_cmd(cmd)
File “…/lib/py/webnotes/handler.py”, line 217, in execute_cmd
ret = method(webnotes.form_dict.get(‘arg’))
File “…/lib/py/webnotes/handler.py”, line 57, in runserverobj
webnotes.widgets.form.run_method.runserverobj()
File “…/lib/py/webnotes/widgets/form/run_method.py”, line 48, in runserverobj
doclist.from_compressed(form.getvalue(‘docs’), dn)
File “…/lib/py/webnotes/model/doclist.py”, line 79, in from_compressed
self.docs = expand(data)
File “…/lib/py/webnotes/model/utils.py”, line 42, in expand
doc = xzip(docs[‘_kl’][d[0]], d);
KeyError: None
Uncaught TypeError: Object [object Object] has no method ‘refresh_doc’ all-app.js:397
cur_frm.cscript.do_import.callback
$.ajax.success all-app.js:399
f.Callbacks.n jquery.min.js:2
f.Callbacks.o.fireWith jquery.min.js:2
w jquery.min.js:4
f.support.ajax.f.ajaxTransport.send.d jquery.min.js:4
-Mitesh
–
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/MDda_Rz8HUEJ.
To post to this group, send email to er...@googlegroups.com.
To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/erpnext-developer-forum?hl=en.
system
#2
Hi Mitesh,
Import from file was deprecated. However, we missed to remove the
button of “Import from file”.
We have fixed the issue in saving a new DocType. Please get the latest
changes by doing:
lib/wnf.py --update origin master
Please note that if you have made changes directly to doctypes
provided by erpnext, they will get lost.
Thanks,
Anand.
On Fri, Jun 15, 2012 at 5:02 PM, MiteshC mi...@gmail.com wrote:
Hello,
Open any DocType → Copy → Save → did not save
generating error
Traceback (innermost last):
File “…/lib/py/webnotes/handler.py”, line 184, in handle
execute_cmd(cmd)
File “…/lib/py/webnotes/handler.py”, line 219, in execute_cmd
ret = method()
File “…/lib/py/webnotes/widgets/form/save.py”, line 54, in savedocs
raise e
Exception: [WNF] DocType New DocType 1 does not exist
Create New Doctype → import from file →
generating error
Traceback (innermost last):
File “…/lib/py/webnotes/handler.py”, line 184, in handle
execute_cmd(cmd)
File “…/lib/py/webnotes/handler.py”, line 217, in execute_cmd
ret = method(webnotes.form_dict.get('arg'))
File “…/lib/py/webnotes/handler.py”, line 57, in runserverobj
webnotes.widgets.form.run_method.runserverobj()
File “…/lib/py/webnotes/widgets/form/run_method.py”, line 48, in
runserverobj
doclist.from_compressed(form.getvalue('docs'), dn)
File “…/lib/py/webnotes/model/doclist.py”, line 79, in from_compressed
self.docs = expand(data)
File “…/lib/py/webnotes/model/utils.py”, line 42, in expand
doc = xzip(docs['_kl'][d[0]], d);
KeyError: None
Uncaught TypeError: Object [object Object] has no method ‘refresh_doc’
all-app.js:397
cur_frm.cscript.do_import.callback
$.ajax.success
all-app.js:399
f.Callbacks.n
jquery.min.js:2
f.Callbacks.o.fireWith
jquery.min.js:2
w
jquery.min.js:4
f.support.ajax.f.ajaxTransport.send.d
jquery.min.js:4
-Mitesh
–
You received this message because you are subscribed to the Google Groups
“ERPNext Developer Forum” group.
To view this discussion on the web visit
https://groups.google.com/d/msg/erpnext-developer-forum/-/MDda_Rz8HUEJ.
To post to this group, send email to
er...@googlegroups.com.
To unsubscribe from this group, send email to
erpnext-developer-forum+un...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/erpnext-developer-forum?hl=en.
–
You received this message because you are subscribed to the Google Groups “ERPNext Developer Forum” group.
To post to this group, send email to er...@googlegroups.com.
To unsubscribe from this group, send email to erpnext-developer-forum+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/erpnext-developer-forum?hl=en.