@ -0,0 +1,42 @@ |
|||
.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg |
|||
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html |
|||
:alt: License: LGPL-3 |
|||
|
|||
Project and Task Progress Status |
|||
================================ |
|||
* The module refers to a comprehensive update of a project and its individual tasks |
|||
|
|||
Company |
|||
------- |
|||
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
|||
|
|||
License |
|||
------- |
|||
Affero General Public License, Version 3 (AGPL v3). |
|||
(https://www.gnu.org/licenses/agpl-3.0-standalone.html) |
|||
|
|||
Credits |
|||
------- |
|||
* Developer: (V17) Ammu Raj, Ayana KP, |
|||
Contact: odoo@cybrosys. |
|||
|
|||
Contacts |
|||
-------- |
|||
* Mail Contact : odoo@cybrosys.com |
|||
|
|||
Bug Tracker |
|||
----------- |
|||
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. |
|||
|
|||
Maintainer |
|||
========== |
|||
.. image:: https://cybrosys.com/images/logo.png |
|||
:target: https://cybrosys.com |
|||
|
|||
This module is maintained by Cybrosys Technologies. |
|||
|
|||
For support and more information, please visit `Our Website <https://cybrosys.com/>`__ |
|||
|
|||
Further information |
|||
=================== |
|||
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,22 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ammu Raj (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from . import models |
@ -0,0 +1,51 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ammu Raj (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
{ |
|||
'name': 'Project and Task Progress Status', |
|||
'version': '18.0.1.0.0', |
|||
'category': 'Project', |
|||
'summary': 'Keep your finger on the projects pulse with this module. ' |
|||
'Featuring a dynamic progress bar, it provides a visual snapshot' |
|||
'of project and task advancement. Toggle effortlessly between' |
|||
'Kanban and list views for a personalized project tracking ' |
|||
'experience.', |
|||
'description': 'Dive into project progression with a sleek module offering' |
|||
' a task-focused progress bar. Switch between Kanban and ' |
|||
'list views seamlessly, ensuring a comprehensive ' |
|||
'understanding of your projects evolving landscape. ' |
|||
'Streamline your workflow and meet deadlines with ease.', |
|||
'author': 'Cybrosys Techno Solutions', |
|||
'company': 'Cybrosys Techno Solutions', |
|||
'maintainer': 'Cybrosys Techno Solutions', |
|||
'website': 'https://www.cybrosys.com', |
|||
'depends': ['hr_timesheet', 'project'], |
|||
'data': [ |
|||
'views/project_task_types_views.xml', |
|||
'views/project_project_views.xml', |
|||
'views/project_task_views.xml', |
|||
], |
|||
'images': ['static/description/banner.png'], |
|||
'license': 'LGPL-3', |
|||
'installable': True, |
|||
'auto_install': False, |
|||
'application': False, |
|||
} |
@ -0,0 +1,7 @@ |
|||
## Module <project_progress_bar> |
|||
|
|||
#### 10.10.2024 |
|||
#### Version 18.0.1.0.0 |
|||
#### ADD |
|||
|
|||
- Initial commit for Project and Task Progress Status |
@ -0,0 +1,24 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ammu Raj (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from . import project_project |
|||
from . import project_task |
|||
from . import project_task_type |
@ -0,0 +1,47 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ammu Raj (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from odoo import api, fields, models |
|||
|
|||
|
|||
class ProjectProject(models.Model): |
|||
"""Inherits the project Model for adding new fields and functions""" |
|||
_inherit = "project.project" |
|||
|
|||
progressbar = fields.Float(string='Progress Bar', |
|||
compute='_compute_progress_bar', |
|||
help='Calculate the progress of the task ' |
|||
'based on the task stage') |
|||
is_progress_bar = fields.Boolean(string='Is Progress Bar', |
|||
help='Status of the task based the ' |
|||
'stage') |
|||
|
|||
@api.depends() |
|||
def _compute_progress_bar(self): |
|||
"""Compute functionality for the task based on the progress bar""" |
|||
for rec in self: |
|||
progressbar_tasks = rec.task_ids.filtered( |
|||
lambda progress: progress.stage_id.is_progress_stage == True) |
|||
if progressbar_tasks: |
|||
rec.progressbar = (sum(progressbar_tasks.mapped( |
|||
'progress_bar'))) / len(progressbar_tasks) |
|||
else: |
|||
rec.progressbar = 0 |
@ -0,0 +1,42 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ammu Raj (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from odoo import models, fields, api |
|||
|
|||
|
|||
class ProjectTask(models.Model): |
|||
"""Inherits the project Task Model for adding new fields and functions""" |
|||
_inherit = "project.task" |
|||
|
|||
progress_bar = fields.Float(string='Progress Bar', |
|||
help='Calculate the progress of the task ' |
|||
'based on the task stage', |
|||
compute='_compute_task__progress_bar') |
|||
stage_is_progress = fields.Boolean(related='stage_id.is_progress_stage', |
|||
help='Status of the task based the ' |
|||
'stage') |
|||
|
|||
@api.depends('stage_id') |
|||
@api.onchange('stage_id') |
|||
def _compute_task__progress_bar(self): |
|||
"""Compute functionality for the task based on the progress bar""" |
|||
for rec in self: |
|||
rec.progress_bar = rec.stage_id.progress_bar |
@ -0,0 +1,69 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ammu Raj (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from odoo import api, fields, models |
|||
from odoo.exceptions import UserError |
|||
|
|||
|
|||
class ProjectTaskType(models.Model): |
|||
"""Inherits the project Task Type Model for adding new fields |
|||
and functions""" |
|||
_inherit = 'project.task.type' |
|||
|
|||
progress_bar = fields.Float(string='Progress (%)', |
|||
help='Set your progress of the stage') |
|||
is_progress_stage = fields.Boolean(string='Is Progress Bar', |
|||
help='You can only see the progress ' |
|||
'if you enable this ') |
|||
|
|||
@api.constrains('progress_bar', 'sequence') |
|||
def project_progress_bar(self): |
|||
"""The Constraints for the project Task Type Model""" |
|||
all_progress = self.env['project.task.type'].search([]).filtered( |
|||
lambda |
|||
progress: progress.is_progress_stage == True and progress.id != self.id) |
|||
res1 = {} |
|||
for rec in all_progress: |
|||
res1[rec.progress_bar] = rec.sequence |
|||
if self.progress_bar in res1.keys(): |
|||
raise UserError('Ensure that the progress is not duplicated.') |
|||
for rec in self.env['project.task.type'].search([]).filtered( |
|||
lambda progress: progress.is_progress_stage == True and progress.id != self.id).mapped( |
|||
'progress_bar'): |
|||
value = [i for i in res1 if i == rec] |
|||
if self.progress_bar < rec: |
|||
if float(self.sequence) >= res1[value[0]]: |
|||
raise UserError( |
|||
'The progress in this stage must greater than that of the ' |
|||
'other stages progress bars. Alternatively, reassess ' |
|||
'the priority assigned to this stage.') |
|||
else: |
|||
continue |
|||
else: |
|||
if float(self.sequence) < res1[value[0]]: |
|||
raise UserError( |
|||
'The progress in this stage must less than that of the' |
|||
'other stages progress bars. Alternatively, reassess ' |
|||
'the priority assigned to this stage.') |
|||
else: |
|||
continue |
|||
if self.progress_bar > 100: |
|||
raise UserError('The progress must be less than or equal to 100') |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 28 KiB |
After Width: | Height: | Size: 628 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 210 KiB |
After Width: | Height: | Size: 209 KiB |
After Width: | Height: | Size: 109 KiB |
After Width: | Height: | Size: 495 B |
After Width: | Height: | Size: 1.0 KiB |
After Width: | Height: | Size: 624 B |
After Width: | Height: | Size: 136 KiB |
After Width: | Height: | Size: 214 KiB |
After Width: | Height: | Size: 36 KiB |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 929 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 3.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 17 KiB |
After Width: | Height: | Size: 542 B |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 4.0 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 738 KiB |
After Width: | Height: | Size: 2.2 KiB |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 600 B |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 2.0 KiB |
After Width: | Height: | Size: 462 B |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 926 B |
After Width: | Height: | Size: 9.0 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 7.0 KiB |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 800 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 189 KiB |
After Width: | Height: | Size: 4.3 KiB |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 5.9 KiB |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 34 KiB |
After Width: | Height: | Size: 26 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 23 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 3.7 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 875 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 912 KiB |
After Width: | Height: | Size: 1.3 MiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 44 KiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 85 KiB |
After Width: | Height: | Size: 52 KiB |
After Width: | Height: | Size: 70 KiB |
After Width: | Height: | Size: 88 KiB |
After Width: | Height: | Size: 67 KiB |
After Width: | Height: | Size: 35 KiB |
After Width: | Height: | Size: 54 KiB |
After Width: | Height: | Size: 52 KiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 43 KiB |
After Width: | Height: | Size: 64 KiB |
After Width: | Height: | Size: 61 KiB |
After Width: | Height: | Size: 213 KiB |
After Width: | Height: | Size: 880 KiB |
After Width: | Height: | Size: 94 KiB |
After Width: | Height: | Size: 11 KiB |
@ -0,0 +1,52 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<!--Inherited tree, form and kanban view of project for adding progress |
|||
bar--> |
|||
<record id="view_project_kanban" model="ir.ui.view"> |
|||
<field name="name"> |
|||
project.project.view.kanban.inherit.project.progress.bar |
|||
</field> |
|||
<field name="model">project.project</field> |
|||
<field name="inherit_id" ref="project.view_project_kanban"/> |
|||
<field name="priority">24</field> |
|||
<field name="arch" type="xml"> |
|||
<field name="tag_ids" position="after"> |
|||
<field name="is_progress_bar" invisible="1"/> |
|||
<field name="progressbar" widget="progressbar" |
|||
invisible="not is_progress_bar"/> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
<record id="edit_project" model="ir.ui.view"> |
|||
<field name="name"> |
|||
project.project.view.kanban.inherit.project.progress.bar |
|||
</field> |
|||
<field name="model">project.project</field> |
|||
<field name="inherit_id" ref="project.edit_project"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="tag_ids" position="after"> |
|||
<field name="is_progress_bar"/> |
|||
<field name="progressbar" |
|||
class="d-flex align-items-center ps-0 ps-lg-5" |
|||
widget="progressbar" |
|||
invisible="not is_progress_bar"/> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
<record id="view_project" model="ir.ui.view"> |
|||
<field name="name"> |
|||
project.project.view.tree.inherit.project.progress.bar |
|||
</field> |
|||
<field name="model">project.project</field> |
|||
<field name="inherit_id" ref="project.view_project"/> |
|||
<field name="arch" type="xml"> |
|||
<field name="partner_id" position="after"> |
|||
<field name="is_progress_bar"/> |
|||
<field name="progressbar" |
|||
class="d-flex align-items-center ps-0 ps-lg-5" |
|||
widget="progressbar" |
|||
invisible="not is_progress_bar"/> |
|||
</field> |
|||
</field> |
|||
</record> |
|||
</odoo> |
@ -0,0 +1,19 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<!-- Added progress bar in project task type--> |
|||
<record id="task_type_edit" model="ir.ui.view"> |
|||
<field name="name"> |
|||
project.task.type.view.form.inherit.project.progress.bar |
|||
</field> |
|||
<field name="model">project.task.type</field> |
|||
<field name="inherit_id" ref="project.task_type_edit"/> |
|||
<field name="priority">24</field> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='project_ids']" position='after'> |
|||
<field name="is_progress_stage"/> |
|||
<field name="progress_bar" |
|||
invisible="is_progress_stage != True"/> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
</odoo> |