Skip to content

Commit 476aaf4

Browse files
committed
[ADD] project_task_progress: add new module
1 parent 16ab674 commit 476aaf4

File tree

13 files changed

+576
-0
lines changed

13 files changed

+576
-0
lines changed

project_task_progress/README.rst

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
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:2adb78bc859344f0fe6be5b6844c11689e60fcb36777408b40f32bcd41cb476b
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 assigning the percentage related to the advancement percentage for the Project task.
26+
27+
**Table of contents**
28+
29+
.. contents::
30+
:local:
31+
32+
Usage
33+
=====
34+
35+
To use this module you need:
36+
37+
1- You must have permissions to change a project task.
38+
2 - According to the actual progress of the task, fill in the field manually,
39+
this field is given as a percentage
40+
3 - After entering the value in the % Actual advancement field,
41+
it will fill in another field in the form of a progress bar that is located in the timesheet
42+
43+
Bug Tracker
44+
===========
45+
46+
Bugs are tracked on `GitHub Issues <https://github.com/Escodoo/project-addons/issues>`_.
47+
In case of trouble, please check there if your issue has already been reported.
48+
If you spotted it first, help us to smash it by providing a detailed and welcomed
49+
`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**>`_.
50+
51+
Do not contact contributors directly about support or help with technical issues.
52+
53+
Credits
54+
=======
55+
56+
Authors
57+
~~~~~~~
58+
59+
* Escodoo
60+
61+
Contributors
62+
~~~~~~~~~~~~
63+
64+
Marcel Savegnago <marcel.savegnago@escodoo.com.br>
65+
Matheus Marques <matheus.marques@escodoo.com.br>
66+
67+
Maintainers
68+
~~~~~~~~~~~
69+
70+
This module is part of the `Escodoo/project-addons <https://github.com/Escodoo/project-addons/tree/14.0/project_task_progress>`_ project on GitHub.
71+
72+
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 assigning the percentage related to the advancement percentage for the Project task.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
To use this module you need:
2+
3+
1- You must have permissions to change a project task.
4+
2 - According to the actual progress of the task, fill in the field manually,
5+
this field is given as a percentage
6+
3 - After entering the value in the % Actual advancement field,
7+
it will fill in another field in the form of a progress bar that is located in the timesheet
2.81 KB
Loading

0 commit comments

Comments
 (0)