Runtime Doctype Creation

Hi,

I have to create doctype through code. Should I create it using Document or bean object, is there another method for doing the same?

Regards.
Saurabh



Note:

 

If you are posting an issue,

  1. 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.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. 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/05bd94ea-7745-4b6d-9540-6dc5be8169c1%40googlegroups.com.

    For more options, visit https://groups.google.com/d/optout.
frappe.new_doc in v4
frappe.new_bean in v3


On Wednesday, April 30, 2014 12:57:21 PM UTC+5:30, saurabh palande wrote:
Hi,

I have to create doctype through code. Should I create it using Document or bean object, is there another method for doing the same?

Regards.
Saurabh



Note:

 

If you are posting an issue,

  1. 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.
  2. Paste your code at http://pastebin.com or http://gist.github.com and send only the URL via email
  3. 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/59e64596-5837-4edf-bcdb-c4ad76705986%40googlegroups.com.

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