mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 10:11:20 +00:00
Fixed bug regarding setting of banner
This commit is contained in:
@@ -14,7 +14,8 @@ class DocType:
|
|||||||
# on update
|
# on update
|
||||||
#
|
#
|
||||||
def validate(self):
|
def validate(self):
|
||||||
if self.doc.file_list and self.doc.set_from_attachment:
|
from webnotes.utils import cint
|
||||||
|
if self.doc.file_list and cint(self.doc.set_from_attachment):
|
||||||
self.set_html_from_image()
|
self.set_html_from_image()
|
||||||
|
|
||||||
# update control panel - so it loads new letter directly
|
# update control panel - so it loads new letter directly
|
||||||
|
|||||||
Reference in New Issue
Block a user