show report title (in print) only if corresponding flag in report instance is set

This commit is contained in:
Helmut Merz 2025-12-13 08:32:56 +01:00
parent 7c85e5ac15
commit 02b8dd5d13
2 changed files with 2 additions and 0 deletions

View file

@ -38,6 +38,7 @@
<div metal:define-macro="header">
<h1 class="print-only"
tal:condition="report/show_report_title|nothing"
tal:content="report/context/title" />
<metal:block use-macro="view/concept_macros/concepttitle" />
<form method="get" name="report_data" class="report-meta noprint">

View file

@ -277,6 +277,7 @@ class WorkReportInstance(ReportInstance):
type = "work_statement"
label = u'Work Statement'
show_report_title = True
rowFactory = WorkRow