Skip to content

Commit 969fc37

Browse files
committed
[MIG] project_task_report: Migration to 17.0
1 parent 20b9a58 commit 969fc37

File tree

3 files changed

+29
-20
lines changed

3 files changed

+29
-20
lines changed

project_task_report/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"name": "Project Task Report",
77
"summary": "Basic report for project tasks.",
8-
"version": "16.0.1.0.0",
8+
"version": "17.0.1.0.0",
99
"author": "Eficent, Odoo Community Association (OCA)",
1010
"website": "https://github.com/OCA/project-reporting",
1111
"category": "Project Management",

project_task_report/views/project_task_chatter_report.xml

Lines changed: 19 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@
1010
<br />
1111
<br />
1212
<center>
13-
<h2><span
14-
t-esc="o.project_id and o.project_id.label_tasks or 'Task'"
15-
/>: <span t-field="o.name" /></h2>
16-
13+
<h2>
14+
<span
15+
t-out="o.project_id and o.project_id.label_tasks or 'Task'"
16+
/>:
17+
<span t-field="o.name" />
18+
</h2>
1719
</center>
1820
<table class="table table-bordered">
1921
<tr>
@@ -26,20 +28,20 @@
2628
<th>Assigned to</th>
2729
<td>
2830
<span
29-
t-esc="', '.join(o.user_ids.mapped('name'))"
31+
t-out="', '.join(o.user_ids.mapped('name'))"
3032
/>
3133
</td>
3234
</tr>
3335
<tr t-if="o.date_deadline">
3436
<th>Deadline</th>
3537
<td>
36-
<span t-esc="o.date_deadline" />
38+
<span t-out="o.date_deadline" />
3739
</td>
3840
</tr>
3941
<tr t-if="o.date_assign">
4042
<th>Assigning Date</th>
4143
<td>
42-
<span t-esc="o.date_assign" />
44+
<span t-out="o.date_assign" />
4345
</td>
4446
</tr>
4547
<tr t-if="o.date_last_stage_update">
@@ -82,24 +84,28 @@
8284
<span t-field="msg.author_id" />
8385
<br />
8486
<div style="font-size:75%; padding-left: 3mm;">
85-
(<span t-field="msg.date" />)
87+
(
88+
<span t-field="msg.date" />)
8689
</div>
8790
</td>
8891
<td>
89-
<div t-if="msg.subject"><span
90-
t-field="msg.subject"
91-
/>: </div>
92+
<div t-if="msg.subject">
93+
<span t-field="msg.subject" />:
94+
</div>
9295
<div t-if="msg.message_type == 'notification'">
9396
<span t-field="msg.subtype_id.name" />
9497
<t
9598
t-foreach='msg.sudo().tracking_value_ids'
9699
t-as='value'
97100
>
98101
<li>
99-
<t t-esc="value.field_desc" />:
102+
<t
103+
t-if="value.field_info"
104+
t-out="value.field_info.get('desc', False)"
105+
/>:
100106
<span>
101107
<t
102-
t-esc="value.new_value_char"
108+
t-out="value.new_value_char"
103109
/>
104110
</span>
105111
</li>

project_task_report/views/project_task_report.xml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,12 @@
1010
<br />
1111
<br />
1212
<center>
13-
<h2><span
14-
t-esc="o.project_id and o.project_id.label_tasks or 'Task'"
15-
/>: <span t-field="o.name" /></h2>
13+
<h2>
14+
<span
15+
t-out="o.project_id and o.project_id.label_tasks or 'Task'"
16+
/>:
17+
<span t-field="o.name" />
18+
</h2>
1619
</center>
1720
<table class="table table-bordered">
1821
<tr>
@@ -25,20 +28,20 @@
2528
<th>Assigned to</th>
2629
<td>
2730
<span
28-
t-esc="', '.join(o.user_ids.mapped('name'))"
31+
t-out="', '.join(o.user_ids.mapped('name'))"
2932
/>
3033
</td>
3134
</tr>
3235
<tr t-if="o.date_deadline">
3336
<th>Deadline</th>
3437
<td>
35-
<span t-esc="o.date_deadline" />
38+
<span t-out="o.date_deadline" />
3639
</td>
3740
</tr>
3841
<tr t-if="o.date_assign">
3942
<th>Assigning Date</th>
4043
<td>
41-
<span t-esc="o.date_assign" />
44+
<span t-out="o.date_assign" />
4245
</td>
4346
</tr>
4447
<tr t-if="o.date_last_stage_update">

0 commit comments

Comments
 (0)