Hide "Reason" in Application PDF if there is none.
This commit is contained in:
parent
59e6218a80
commit
e4367051df
@ -828,6 +828,7 @@ class ApplicationPDF(PDFView):
|
||||
# text
|
||||
story.append(Paragraph("%s" % application.public_version.text.replace('\r\n','<br/>'), stylesheet['Paragraph']))
|
||||
# reason
|
||||
if application.public_version.reason:
|
||||
story.append(Paragraph(_("Reason")+":", stylesheet['Heading3']))
|
||||
story.append(Paragraph("%s" % application.public_version.reason.replace('\r\n','<br/>'), stylesheet['Paragraph']))
|
||||
return story
|
||||
|
Loading…
Reference in New Issue
Block a user