Merge pull request #150 from anandpdoshi/master

Modified Patch to create a DocType Label entry for DocLayer
This commit is contained in:
Anand Doshi 2011-11-24 21:57:31 -08:00
commit 2dd7863b1d

View File

@ -7,3 +7,10 @@ def execute():
reload_doc('core', 'doctype', 'doclayer') reload_doc('core', 'doctype', 'doclayer')
reload_doc('core', 'doctype', 'doclayerfield') reload_doc('core', 'doctype', 'doclayerfield')
reload_doc('accounts', 'doctype', 'gl_entry') reload_doc('accounts', 'doctype', 'gl_entry')
from webnotes.model.doc import Document
d = Document('DocType Label')
d.dt = "DocLayer"
d.dt_label = "Customize Form View"
d.save(1)
from webnotes.session_cache import clear
clear()