Modified patch install_print_formats to reload the newly added Print Formats

This commit is contained in:
Anand Doshi 2011-11-16 13:31:21 +05:30
parent e3559853bd
commit c573fb8eed

View File

@ -53,13 +53,14 @@ def execute():
Install print formats Install print formats
""" """
from webnotes.modules.module_manager import reload_doc from webnotes.modules.module_manager import reload_doc
reload_doc('core', 'doctype', 'print_format') #reload_doc('core', 'doctype', 'print_format')
copy_doctype_to_pfs() #copy_doctype_to_pfs()
global pf_to_install global pf_to_install
for pf in pf_to_install: for pf in pf_to_install:
install_print_format(pf) # install_print_format(pf)
print "Installed PF: " + pf['name'] # print "Installed PF: " + pf['name']
reload_doc(pf['module'], 'Print Format', pf['name'])
def copy_doctype_to_pfs(): def copy_doctype_to_pfs():