Esempio n. 1
0
def execute():
    from webnotes.modules import reload_doc
    reload_doc('core', 'doctype', 'print_format')
    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 = "Customize Form"
    d.dt_label = "Customize Form View"
    d.save(1)
    from webnotes.session_cache import clear
    clear()
Esempio n. 2
0
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')
	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()
Esempio n. 3
0
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")
    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()
Esempio n. 4
0
def clear_cache(user=None):
    """clear boot cache"""
    from webnotes.session_cache import clear

    clear(user)