New DocType Issue

55 views
Skip to first unread message

MiteshC

unread,
Jun 15, 2012, 7:32:13 AM6/15/12
to erpnext-dev...@googlegroups.com
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

Anand Doshi

unread,
Jun 18, 2012, 2:30:23 AM6/18/12
to erpnext-dev...@googlegroups.com
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.
> --
> 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
> erpnext-dev...@googlegroups.com.
> To unsubscribe from this group, send email to
> erpnext-developer...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/erpnext-developer-forum?hl=en.
Reply all
Reply to author
Forward
0 new messages