2011-11-23 13:09:08 +00:00
|
|
|
"""
|
|
|
|
Reload DocLayer, DocLayerField and Print Format doctypes
|
|
|
|
"""
|
|
|
|
def execute():
|
|
|
|
from webnotes.modules.module_manager import reload_doc
|
|
|
|
reload_doc('core', 'doctype', 'print_format')
|
|
|
|
reload_doc('core', 'doctype', 'doclayer')
|
|
|
|
reload_doc('core', 'doctype', 'doclayerfield')
|
2011-11-24 08:27:46 +00:00
|
|
|
reload_doc('accounts', 'doctype', 'gl_entry')
|
2011-11-25 05:55:39 +00:00
|
|
|
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()
|