Skip to content

Commit 38efed4

Browse files
Matthwhykaynnan
authored andcommitted
[ADD] project_task_progress: add new module
1 parent 16ab674 commit 38efed4

File tree

13 files changed

+566
-0
lines changed

13 files changed

+566
-0
lines changed

project_task_progress/README.rst

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
=====================
2+
Project Task Progress
3+
=====================
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:55a75cc341267b7173dc5b15c32ce682ab2414c1b6716fa4894696f9debd51dc
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-Escodoo%2Fproject--addons-lightgray.png?logo=github
20+
:target: https://github.com/Escodoo/project-addons/tree/14.0/project_task_progress
21+
:alt: Escodoo/project-addons
22+
23+
|badge1| |badge2| |badge3|
24+
25+
This module allows you to assign a percentage that reflects the progress of a project task.
26+
27+
**Table of contents**
28+
29+
.. contents::
30+
:local:
31+
32+
Usage
33+
=====
34+
35+
To use this module, you need to:
36+
37+
1 - Have the necessary permissions to modify a project task.
38+
2 - Manually enter the current progress of the task as a percentage in the specified field.
39+
3 - Once you input a value in the "% Actual Progress" field, it will automatically update another field as a progress bar located in the timesheet.
40+
41+
Bug Tracker
42+
===========
43+
44+
Bugs are tracked on `GitHub Issues <https://github.com/Escodoo/project-addons/issues>`_.
45+
In case of trouble, please check there if your issue has already been reported.
46+
If you spotted it first, help us to smash it by providing a detailed and welcomed
47+
`feedback <https://github.com/Escodoo/project-addons/issues/new?body=module:%20project_task_progress%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
48+
49+
Do not contact contributors directly about support or help with technical issues.
50+
51+
Credits
52+
=======
53+
54+
Authors
55+
~~~~~~~
56+
57+
* Escodoo
58+
59+
Contributors
60+
~~~~~~~~~~~~
61+
62+
Marcel Savegnago <marcel.savegnago@escodoo.com.br>
63+
Matheus Marques <matheus.marques@escodoo.com.br>
64+
65+
Maintainers
66+
~~~~~~~~~~~
67+
68+
This module is part of the `Escodoo/project-addons <https://github.com/Escodoo/project-addons/tree/14.0/project_task_progress>`_ project on GitHub.
69+
70+
You are welcome to contribute.

project_task_progress/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2023 - TODAY, Escodoo
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
{
5+
"name": "Project Task Progress",
6+
"summary": """
7+
Manage current task advancement""",
8+
"version": "14.0.1.0.0",
9+
"license": "AGPL-3",
10+
"author": "Escodoo",
11+
"website": "https://github.com/Escodoo/project-addons",
12+
"depends": ["hr_timesheet"],
13+
"data": [
14+
"views/project_task.xml",
15+
],
16+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import project_task
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Copyright 2023 - TODAY, Matheus Marques <matheus.marques@escodoo.com.br>
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
3+
4+
from odoo import api, fields, models
5+
6+
7+
class ProjectTask(models.Model):
8+
_inherit = "project.task"
9+
10+
advancement_percentage = fields.Float(string="% " "Actual advancement")
11+
12+
advancement_progress = fields.Float(
13+
string="Actual advancement",
14+
compute="_compute_progress_bar",
15+
store=True,
16+
readonly=True,
17+
)
18+
19+
@api.depends("advancement_percentage")
20+
def _compute_progress_bar(self):
21+
for task in self:
22+
task.advancement_progress = task.advancement_percentage * 100
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Marcel Savegnago <marcel.savegnago@escodoo.com.br>
2+
Matheus Marques <matheus.marques@escodoo.com.br>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This module allows you to assign a percentage that reflects the progress of a project task.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
To use this module, you need to:
2+
3+
1 - Have the necessary permissions to modify a project task.
4+
2 - Manually enter the current progress of the task as a percentage in the specified field.
5+
3 - Once you input a value in the "% Actual Progress" field, it will automatically update another field as a progress bar located in the timesheet.
2.81 KB
Loading

0 commit comments

Comments
 (0)