mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-25 21:05:19 +00:00
Merge branch 'latest' of github.com:webnotes/erpnext into latest
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