Modified patch install_print_formats to reload the newly added Print Formats
diff --git a/erpnext/patches/install_print_formats.py b/erpnext/patches/install_print_formats.py
index dfae08f..3b5627b 100644
--- a/erpnext/patches/install_print_formats.py
+++ b/erpnext/patches/install_print_formats.py
@@ -53,13 +53,14 @@
Install print formats
"""
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
for pf in pf_to_install:
- install_print_format(pf)
- print "Installed PF: " + pf['name']
+ # install_print_format(pf)
+ # print "Installed PF: " + pf['name']
+ reload_doc(pf['module'], 'Print Format', pf['name'])
def copy_doctype_to_pfs():