From c573fb8eed21a732bacc68f0b1e55445bce59fdc Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Wed, 16 Nov 2011 13:31:21 +0530 Subject: [PATCH] Modified patch install_print_formats to reload the newly added Print Formats --- erpnext/patches/install_print_formats.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/erpnext/patches/install_print_formats.py b/erpnext/patches/install_print_formats.py index dfae08f532..3b5627bba0 100644 --- a/erpnext/patches/install_print_formats.py +++ b/erpnext/patches/install_print_formats.py @@ -53,13 +53,14 @@ def execute(): 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():