creating new doctype .

38 views
Skip to first unread message

gangadhar kadam

unread,
Feb 1, 2013, 9:51:43 AM2/1/13
to erpnext-dev...@googlegroups.com
Hello All,
   In old version(webnotes) to create new instance of a doctype we were using 

  exam=Document('EXAM') 
  exam.abc=abc
  exam.save(new=1)   
  
 how can I implement this in erpnext ?

Thank You.

Nabin Hait

unread,
Feb 1, 2013, 10:35:02 AM2/1/13
to erpnext-dev...@googlegroups.com

Hi,
This will also work. But better way to create a document is using of wrapper.insert() method. That will call valudate and on_update function automatically.

Regards,
Nabin Hait

--
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 post to this group, send email to erpnext-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/erpnext-developer-forum/-/juHC6_K1xNUJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 
Reply all
Reply to author
Forward
0 new messages