mirror of
https://github.com/frappe/erpnext.git
synced 2026-09-02 08:03:21 +00:00
fixed old style file names
This commit is contained in:
@@ -29,4 +29,6 @@ class DocType:
|
||||
#
|
||||
def set_html_from_image(self):
|
||||
file_name = self.doc.file_list.split(',')[0]
|
||||
self.doc.header_html = '<div><img style="max-height: 120px; max-width: 600px" src="index.cgi?cmd=get_file&fname=' + file_name + '"/></div>'
|
||||
self.doc.header_html = """<div>
|
||||
<img style="max-height: 120px; max-width: 600px" src="files/%s"/>
|
||||
</div>""" % file_name
|
||||
|
||||
Reference in New Issue
Block a user