Modified patch install_print_formats to reload the newly added Print Formats
This commit is contained in:
parent
e3559853bd
commit
c573fb8eed
@ -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():
|
||||
|
Loading…
x
Reference in New Issue
Block a user