Skip to content

Commit 15b6612

Browse files
authored
[IMP] It's better to take the task label from project than hard coded text (#1)
1 parent b7726be commit 15b6612

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

project_task_report/views/project_task_chatter_report.xml

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
<br />
1111
<br />
1212
<center>
13-
<h2>Task: <span t-field="o.name" /></h2>
13+
<h2><span t-esc="o.project_id and o.project_id.label_tasks or 'Task'"/>: <span t-field="o.name" /></h2>
14+
1415
</center>
1516
<table class="table table-bordered">
1617
<tr>

project_task_report/views/project_task_report.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<br />
1111
<br />
1212
<center>
13-
<h2>Task: <span t-field="o.name" /></h2>
13+
<h2><span t-esc="o.project_id and o.project_id.label_tasks or 'Task'"/>: <span t-field="o.name" /></h2>
1414
</center>
1515
<table class="table table-bordered">
1616
<tr>

0 commit comments

Comments
 (0)