Esempio n. 1
0
def clear_cache(user=None, doctype=None):
	"""clear boot cache"""
	if doctype:
		from webnotes.model.doctype import clear_cache
		clear_cache(doctype)
	else:
		from webnotes.sessions import clear
		clear(user)
Esempio n. 2
0
def clear_cache(user=None, doctype=None):
    """clear boot cache"""
    if doctype:
        from webnotes.model.doctype import clear_cache
        clear_cache(doctype)
    else:
        from webnotes.sessions import clear
        clear(user)
Esempio n. 3
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.sessions import clear
	clear()
Esempio n. 4
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.sessions import clear
    clear()