Modified patch to create a DocType Label record for DocLayer

This commit is contained in:
Anand Doshi 2011-11-25 11:25:39 +05:30
parent 82573a1c44
commit 8c10de6c1a

View File

@ -7,3 +7,10 @@ def execute():
reload_doc('core', 'doctype', 'doclayer')
reload_doc('core', 'doctype', 'doclayerfield')
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()