Skip to content

Commit ae3713e

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

File tree

12 files changed

+151
-0
lines changed

12 files changed

+151
-0
lines changed

project_task_progress/README.rst

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
=====================
2+
Project Task Progress
3+
=====================
4+
.. |badge1| image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
5+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
6+
:alt: License: AGPL-3
7+
8+
|badge1|
9+
10+
Manage current task advancement
11+
12+
**Table of contents**
13+
14+
.. contents::
15+
:local:
16+
17+
Configuration
18+
=============
19+
20+
To Configure...
21+
22+
Usage
23+
=====
24+
25+
To usage...
26+
27+
Bug Tracker
28+
===========
29+
30+
Bugs are tracked on `GitHub Issues
31+
<https://github.com/Escodoo/{project_repo}/issues>`_. In case of trouble, please
32+
check there if your issue has already been reported. If you spotted it first,
33+
help us smash it by providing detailed and welcomed feedback.
34+
35+
Do not contact contributors directly about support or help with technical issues.
36+
37+
Credits
38+
=======
39+
40+
Authors
41+
~~~~~~~
42+
43+
* Escodoo
44+
45+
Contributors
46+
~~~~~~~~~~~~
47+
48+
* Marcel Savegnago <marcel.savegnago@escodoo.com.br>
49+
50+
Other credits
51+
~~~~~~~~~~~~~
52+
53+
The development of this module has been financially supported by:
54+
55+
* Escodoo - `https://www.escodoo.com.br <https://www.escodoo.com.br>`_
56+
57+
Maintainers
58+
~~~~~~~~~~~
59+
60+
This module is maintained by the Escodoo.
61+
62+
.. |maintainer-escodoo| image:: https://github.com/escodoo.png?size=80px
63+
:target: https://github.com/Escodoo
64+
:alt: escodoo
65+
66+
|maintainer-escodoo|
67+
68+
We at Escodoo are exclusively dedicated to deploying the Odoo Platform and are
69+
focused on providing solutions that make our customers more competitive, lowering
70+
costs, making technology more accessible and ensuring it is used strategically to
71+
add even more value to the business.
72+
73+
.. |maintainer-marcelsavegnago| image:: https://github.com/marcelsavegnago.png?size=40px
74+
:target: https://github.com/marcelsavegnago
75+
:alt: marcelsavegnago
76+
77+
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
78+
79+
|maintainer-marcelsavegnago|
80+
81+
To contribute to this module, please visit https://www.escodoo.com.br.

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

project_task_progress/readme/CONTRIBUTORS.rst

Whitespace-only changes.

project_task_progress/readme/DESCRIPTION.rst

Whitespace-only changes.

project_task_progress/readme/USAGE.rst

Whitespace-only changes.
2.81 KB
Loading
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="utf-8" ?>
2+
<!-- Copyright 2023 - TODAY, Matheus Marques <matheus.marques@escodoo.com.br>
3+
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
4+
<odoo>
5+
<record id="view_task_form2_inherit" model="ir.ui.view">
6+
<field name="name">project.task.inherit.advancement</field>
7+
<field name="model">project.task</field>
8+
<field name="inherit_id" ref="project.view_task_form2" />
9+
<field name="arch" type="xml">
10+
11+
<field name="partner_id" position="after">
12+
13+
<field name="advancement_percentage" widget="percentage" />
14+
15+
</field>
16+
<field name="progress" position="after">
17+
18+
<field name="advancement_progress" widget="progressbar" />
19+
20+
</field>
21+
</field>
22+
</record>
23+
</odoo>

0 commit comments

Comments
 (0)