Fixed bug regarding setting of banner
This commit is contained in:
parent
8875d91a8e
commit
ed73fb2b26
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user