Skip to content

Commit 54526a7

Browse files
cvinhalan196
authored andcommitted
[IMP] It's better to take the task label from project than hard coded text (#1)
1 parent 8fa0b52 commit 54526a7

File tree

4 files changed

+47
-35
lines changed

4 files changed

+47
-35
lines changed

project_task_report/README.rst

+13-10
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,13 @@
22
Project Task Report
33
===================
44

5-
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
67
!! This file is generated by oca-gen-addon-readme !!
78
!! changes will be overwritten. !!
89
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:a7266ed5023248f83f992edd924330c9717cc502a547d800b51e206e014bc8d8
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
912
1013
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
1114
:target: https://odoo-community.org/page/development-status
@@ -14,16 +17,16 @@ Project Task Report
1417
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1518
:alt: License: AGPL-3
1619
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fproject--reporting-lightgray.png?logo=github
17-
:target: https://github.com/OCA/project-reporting/tree/14.0/project_task_report
20+
:target: https://github.com/OCA/project-reporting/tree/16.0/project_task_report
1821
:alt: OCA/project-reporting
1922
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
20-
:target: https://translation.odoo-community.org/projects/project-reporting-14-0/project-reporting-14-0-project_task_report
23+
:target: https://translation.odoo-community.org/projects/project-reporting-16-0/project-reporting-16-0-project_task_report
2124
:alt: Translate me on Weblate
22-
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
23-
:target: https://runbot.odoo-community.org/runbot/139/14.0
24-
:alt: Try me on Runbot
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/project-reporting&target_branch=16.0
27+
:alt: Try me on Runboat
2528

26-
|badge1| |badge2| |badge3| |badge4| |badge5|
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
2730

2831
This module adds a basic Qweb report to the tasks of Project Management App.
2932
The report has two versions: one with only the task information and
@@ -47,8 +50,8 @@ Bug Tracker
4750

4851
Bugs are tracked on `GitHub Issues <https://github.com/OCA/project-reporting/issues>`_.
4952
In case of trouble, please check there if your issue has already been reported.
50-
If you spotted it first, help us smashing it by providing a detailed and welcomed
51-
`feedback <https://github.com/OCA/project-reporting/issues/new?body=module:%20project_task_report%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
53+
If you spotted it first, help us to smash it by providing a detailed and welcomed
54+
`feedback <https://github.com/OCA/project-reporting/issues/new?body=module:%20project_task_report%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
5255

5356
Do not contact contributors directly about support or help with technical issues.
5457

@@ -80,6 +83,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
8083
mission is to support the collaborative development of Odoo features and
8184
promote its widespread use.
8285

83-
This module is part of the `OCA/project-reporting <https://github.com/OCA/project-reporting/tree/14.0/project_task_report>`_ project on GitHub.
86+
This module is part of the `OCA/project-reporting <https://github.com/OCA/project-reporting/tree/16.0/project_task_report>`_ project on GitHub.
8487

8588
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

project_task_report/static/description/index.html

+27-23
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
<?xml version="1.0" encoding="utf-8" ?>
21
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
32
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
43
<head>
54
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6-
<meta name="generator" content="Docutils: http://docutils.sourceforge.net/" />
5+
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
76
<title>Project Task Report</title>
87
<style type="text/css">
98

109
/*
1110
:Author: David Goodger (goodger@python.org)
12-
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
11+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
1312
:Copyright: This stylesheet has been placed in the public domain.
1413
1514
Default cascading style sheet for the HTML output of Docutils.
15+
Despite the name, some widely supported CSS2 features are used.
1616
17-
See http://docutils.sf.net/docs/howto/html-stylesheets.html for how to
17+
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
1818
customize this style sheet.
1919
*/
2020

@@ -275,7 +275,7 @@
275275
margin-left: 2em ;
276276
margin-right: 2em }
277277

278-
pre.code .ln { color: grey; } /* line numbers */
278+
pre.code .ln { color: gray; } /* line numbers */
279279
pre.code, code { background-color: #eeeeee }
280280
pre.code .comment, code .comment { color: #5C6576 }
281281
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -301,7 +301,7 @@
301301
span.pre {
302302
white-space: pre }
303303

304-
span.problematic {
304+
span.problematic, pre.problematic {
305305
color: red }
306306

307307
span.section-subtitle {
@@ -366,64 +366,68 @@ <h1 class="title">Project Task Report</h1>
366366
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
367367
!! This file is generated by oca-gen-addon-readme !!
368368
!! changes will be overwritten. !!
369+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370+
!! source digest: sha256:a7266ed5023248f83f992edd924330c9717cc502a547d800b51e206e014bc8d8
369371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
370-
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/project-reporting/tree/14.0/project_task_report"><img alt="OCA/project-reporting" src="https://img.shields.io/badge/github-OCA%2Fproject--reporting-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/project-reporting-14-0/project-reporting-14-0-project_task_report"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/139/14.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
372+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/project-reporting/tree/16.0/project_task_report"><img alt="OCA/project-reporting" src="https://img.shields.io/badge/github-OCA%2Fproject--reporting-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/project-reporting-16-0/project-reporting-16-0-project_task_report"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/project-reporting&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
371373
<p>This module adds a basic Qweb report to the tasks of Project Management App.
372374
The report has two versions: one with only the task information and
373375
another including the chatter messages as well.</p>
374376
<p><strong>Table of contents</strong></p>
375377
<div class="contents local topic" id="contents">
376378
<ul class="simple">
377-
<li><a class="reference internal" href="#usage" id="id1">Usage</a></li>
378-
<li><a class="reference internal" href="#bug-tracker" id="id2">Bug Tracker</a></li>
379-
<li><a class="reference internal" href="#credits" id="id3">Credits</a><ul>
380-
<li><a class="reference internal" href="#authors" id="id4">Authors</a></li>
381-
<li><a class="reference internal" href="#contributors" id="id5">Contributors</a></li>
382-
<li><a class="reference internal" href="#maintainers" id="id6">Maintainers</a></li>
379+
<li><a class="reference internal" href="#usage" id="toc-entry-1">Usage</a></li>
380+
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-2">Bug Tracker</a></li>
381+
<li><a class="reference internal" href="#credits" id="toc-entry-3">Credits</a><ul>
382+
<li><a class="reference internal" href="#authors" id="toc-entry-4">Authors</a></li>
383+
<li><a class="reference internal" href="#contributors" id="toc-entry-5">Contributors</a></li>
384+
<li><a class="reference internal" href="#maintainers" id="toc-entry-6">Maintainers</a></li>
383385
</ul>
384386
</li>
385387
</ul>
386388
</div>
387389
<div class="section" id="usage">
388-
<h1><a class="toc-backref" href="#id1">Usage</a></h1>
390+
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
389391
<p>To use this module, you need to:</p>
390392
<ol class="arabic simple">
391393
<li>Go to ‘Project &gt; Tasks’ and open a task.</li>
392394
<li>Click ‘Print &gt; Print Task’ or ‘Print &gt; Print Task and Chatter’.</li>
393395
</ol>
394396
</div>
395397
<div class="section" id="bug-tracker">
396-
<h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1>
398+
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
397399
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/project-reporting/issues">GitHub Issues</a>.
398400
In case of trouble, please check there if your issue has already been reported.
399-
If you spotted it first, help us smashing it by providing a detailed and welcomed
400-
<a class="reference external" href="https://github.com/OCA/project-reporting/issues/new?body=module:%20project_task_report%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
401+
If you spotted it first, help us to smash it by providing a detailed and welcomed
402+
<a class="reference external" href="https://github.com/OCA/project-reporting/issues/new?body=module:%20project_task_report%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
401403
<p>Do not contact contributors directly about support or help with technical issues.</p>
402404
</div>
403405
<div class="section" id="credits">
404-
<h1><a class="toc-backref" href="#id3">Credits</a></h1>
406+
<h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
405407
<div class="section" id="authors">
406-
<h2><a class="toc-backref" href="#id4">Authors</a></h2>
408+
<h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
407409
<ul class="simple">
408410
<li>Eficent</li>
409411
</ul>
410412
</div>
411413
<div class="section" id="contributors">
412-
<h2><a class="toc-backref" href="#id5">Contributors</a></h2>
414+
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
413415
<ul class="simple">
414416
<li>Lois Rilo &lt;<a class="reference external" href="mailto:lois.rilo&#64;eficent.com">lois.rilo&#64;eficent.com</a>&gt;</li>
415417
<li>Serpent Consulting Services Pvt. Ltd. &lt;<a class="reference external" href="mailto:contact&#64;serpentcs.com">contact&#64;serpentcs.com</a>&gt;</li>
416418
<li>Alan Ramos &lt;<a class="reference external" href="mailto:alan.ramos&#64;jarsa.com.mx">alan.ramos&#64;jarsa.com.mx</a>&gt;</li>
417419
</ul>
418420
</div>
419421
<div class="section" id="maintainers">
420-
<h2><a class="toc-backref" href="#id6">Maintainers</a></h2>
422+
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
421423
<p>This module is maintained by the OCA.</p>
422-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
424+
<a class="reference external image-reference" href="https://odoo-community.org">
425+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
426+
</a>
423427
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
424428
mission is to support the collaborative development of Odoo features and
425429
promote its widespread use.</p>
426-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/project-reporting/tree/14.0/project_task_report">OCA/project-reporting</a> project on GitHub.</p>
430+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/project-reporting/tree/16.0/project_task_report">OCA/project-reporting</a> project on GitHub.</p>
427431
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
428432
</div>
429433
</div>

project_task_report/views/project_task_chatter_report.xml

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@
1010
<br />
1111
<br />
1212
<center>
13-
<h2>Task: <span t-field="o.name" /></h2>
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+
1417
</center>
1518
<table class="table table-bordered">
1619
<tr>

project_task_report/views/project_task_report.xml

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

0 commit comments

Comments
 (0)