diff --git a/project_by_phases/README.rst b/project_by_phases/README.rst new file mode 100644 index 000000000..5272f3b35 --- /dev/null +++ b/project_by_phases/README.rst @@ -0,0 +1,46 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Project Phases +============== +*This app allows you to manage different phases of project* + +Installation +============ +- www.odoo.com/documentation/16.0/setup/install.html +- Install our custom addon + +License +------- +GNU AFFERO GENERAL PUBLIC LICENSE v3.0 (AGPL-3) +(https://www.odoo.com/documentation/16.0/legal/licenses.html) + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developer:(V16) Anagha C + +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 `__ + +Further information +=================== +HTML Description: ``__ \ No newline at end of file diff --git a/project_by_phases/__init__.py b/project_by_phases/__init__.py new file mode 100644 index 000000000..4748c93aa --- /dev/null +++ b/project_by_phases/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import models diff --git a/project_by_phases/__manifest__.py b/project_by_phases/__manifest__.py new file mode 100644 index 000000000..bcdadddcd --- /dev/null +++ b/project_by_phases/__manifest__.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +{ + 'name': "Project Phases", + 'version': '16.0.1.0.0', + 'category': 'Project', + 'summary': """A Module For Managing Different Phases of Project.""", + 'description': 'Using Project By Phases,you can manage different phases ' + 'of project', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'license': 'AGPL-3', + 'depends': ['base', 'project'], + 'images': [ + 'static/description/banner.png', + ], + 'data': [ + 'security/ir.model.access.csv', + 'views/project_phase_views.xml' + ], + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/project_by_phases/doc/RELEASE_NOTES.md b/project_by_phases/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..6b184ffd4 --- /dev/null +++ b/project_by_phases/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 09.06.2023 +#### Version 16.0.1.0.0 +#### ADD +- Initial commit for Project Phases diff --git a/project_by_phases/models/__init__.py b/project_by_phases/models/__init__.py new file mode 100644 index 000000000..36e4c928a --- /dev/null +++ b/project_by_phases/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import project_phase diff --git a/project_by_phases/models/project_phase.py b/project_by_phases/models/project_phase.py new file mode 100644 index 000000000..508365806 --- /dev/null +++ b/project_by_phases/models/project_phase.py @@ -0,0 +1,97 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions (Contact : odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import fields, models + + +class ProjectPhase(models.Model): + """New model for create project phases in project module.""" + _name = 'project.phase' + _description = "project phase" + + name = fields.Char(string="Name", required=True, + help="Provide name for record.") + project_id = fields.Many2one('project.project', "Project", + help="Choose projects from existing records.") + start_date = fields.Date(string="Start date", help="Select start date") + responsible_user_id = fields.Many2one('res.users', + string='Responsible User', + required=True, + help="It's a mandatory field, so " + "please select any user from " + "the list.") + sequence = fields.Integer(string="Sequence", help="Give a sequence number.") + end_date = fields.Date(string="End date", help="Select end date.") + company_id = fields.Many2one('res.company', string='Company', + default=lambda self: self.env.company, + help="By default, current login company will " + "selected here. You can choose other " + "companies also.") + internal_notes = fields.Html(help="Add internal notes") + + def get_project_tasks(self): + """A smart tab added in the model, when open the smart tab it will + redirect to tasks where project phase is equal to the current project + phase.""" + return { + 'type': 'ir.actions.act_window', + 'name': 'Tasks', + 'view_mode': 'tree,form', + 'res_model': 'project.task', + 'domain': [('project_phase_id', '=', self.name)], + } + + def open_project_task(self): + """Function for open tasks related to the project phase in the + kanban view.""" + return { + 'type': 'ir.actions.act_window', + 'name': 'Tasks', + 'view_mode': 'tree,form', + 'res_model': 'project.task', + 'domain': [('project_phase_id', '=', self.name)], + } + + +class ProjectProject(models.Model): + """Inherits 'project.project' and define the action for open the related + project phase model from project module. """ + _inherit = 'project.project' + + def get_project_phases(self): + """Function for open project phases related to the project in the + kanban view.""" + return { + 'type': 'ir.actions.act_window', + 'name': 'Phases', + 'view_mode': 'kanban,tree,form', + 'res_model': 'project.phase', + 'domain': [('project_id', '=', self.display_name)], + } + + +class ProjectTask(models.Model): + """Inherits 'project.task' and adds a field for select project phases.""" + _inherit = 'project.task' + + project_phase_id = fields.Many2one('project.phase', "Project Phase", + help="Select any project phase " + "from the list.") diff --git a/project_by_phases/security/ir.model.access.csv b/project_by_phases/security/ir.model.access.csv new file mode 100644 index 000000000..390dd29f1 --- /dev/null +++ b/project_by_phases/security/ir.model.access.csv @@ -0,0 +1,2 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +project_by_phases.access_project_phase,access_project_phase,project_by_phases.model_project_phase,base.group_user,1,1,1,1 diff --git a/project_by_phases/static/description/assets/icons/check.png b/project_by_phases/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/project_by_phases/static/description/assets/icons/check.png differ diff --git a/project_by_phases/static/description/assets/icons/chevron.png b/project_by_phases/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/project_by_phases/static/description/assets/icons/chevron.png differ diff --git a/project_by_phases/static/description/assets/icons/cogs.png b/project_by_phases/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/project_by_phases/static/description/assets/icons/cogs.png differ diff --git a/project_by_phases/static/description/assets/icons/consultation.png b/project_by_phases/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/project_by_phases/static/description/assets/icons/consultation.png differ diff --git a/project_by_phases/static/description/assets/icons/ecom-black.png b/project_by_phases/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/project_by_phases/static/description/assets/icons/ecom-black.png differ diff --git a/project_by_phases/static/description/assets/icons/education-black.png b/project_by_phases/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/project_by_phases/static/description/assets/icons/education-black.png differ diff --git a/project_by_phases/static/description/assets/icons/hotel-black.png b/project_by_phases/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/project_by_phases/static/description/assets/icons/hotel-black.png differ diff --git a/project_by_phases/static/description/assets/icons/license.png b/project_by_phases/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/project_by_phases/static/description/assets/icons/license.png differ diff --git a/project_by_phases/static/description/assets/icons/lifebuoy.png b/project_by_phases/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/project_by_phases/static/description/assets/icons/lifebuoy.png differ diff --git a/project_by_phases/static/description/assets/icons/logo.png b/project_by_phases/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/project_by_phases/static/description/assets/icons/logo.png differ diff --git a/project_by_phases/static/description/assets/icons/manufacturing-black.png b/project_by_phases/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/project_by_phases/static/description/assets/icons/manufacturing-black.png differ diff --git a/project_by_phases/static/description/assets/icons/pos-black.png b/project_by_phases/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/project_by_phases/static/description/assets/icons/pos-black.png differ diff --git a/project_by_phases/static/description/assets/icons/puzzle.png b/project_by_phases/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/project_by_phases/static/description/assets/icons/puzzle.png differ diff --git a/project_by_phases/static/description/assets/icons/restaurant-black.png b/project_by_phases/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/project_by_phases/static/description/assets/icons/restaurant-black.png differ diff --git a/project_by_phases/static/description/assets/icons/service-black.png b/project_by_phases/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/project_by_phases/static/description/assets/icons/service-black.png differ diff --git a/project_by_phases/static/description/assets/icons/trading-black.png b/project_by_phases/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/project_by_phases/static/description/assets/icons/trading-black.png differ diff --git a/project_by_phases/static/description/assets/icons/training.png b/project_by_phases/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/project_by_phases/static/description/assets/icons/training.png differ diff --git a/project_by_phases/static/description/assets/icons/update.png b/project_by_phases/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/project_by_phases/static/description/assets/icons/update.png differ diff --git a/project_by_phases/static/description/assets/icons/user.png b/project_by_phases/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/project_by_phases/static/description/assets/icons/user.png differ diff --git a/project_by_phases/static/description/assets/icons/wrench.png b/project_by_phases/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/project_by_phases/static/description/assets/icons/wrench.png differ diff --git a/project_by_phases/static/description/assets/modules/print_minutes_of_meeting.png b/project_by_phases/static/description/assets/modules/print_minutes_of_meeting.png new file mode 100644 index 000000000..06d73ee7f Binary files /dev/null and b/project_by_phases/static/description/assets/modules/print_minutes_of_meeting.png differ diff --git a/project_by_phases/static/description/assets/modules/project_report_pdf.png b/project_by_phases/static/description/assets/modules/project_report_pdf.png new file mode 100644 index 000000000..57eebc5b2 Binary files /dev/null and b/project_by_phases/static/description/assets/modules/project_report_pdf.png differ diff --git a/project_by_phases/static/description/assets/modules/project_task_timer.png b/project_by_phases/static/description/assets/modules/project_task_timer.png new file mode 100644 index 000000000..5acf9a06a Binary files /dev/null and b/project_by_phases/static/description/assets/modules/project_task_timer.png differ diff --git a/project_by_phases/static/description/assets/modules/project_tasks_from_templates.png b/project_by_phases/static/description/assets/modules/project_tasks_from_templates.png new file mode 100644 index 000000000..4da0b5904 Binary files /dev/null and b/project_by_phases/static/description/assets/modules/project_tasks_from_templates.png differ diff --git a/project_by_phases/static/description/assets/modules/projects_task_checklists.png b/project_by_phases/static/description/assets/modules/projects_task_checklists.png new file mode 100644 index 000000000..bc5648b1a Binary files /dev/null and b/project_by_phases/static/description/assets/modules/projects_task_checklists.png differ diff --git a/project_by_phases/static/description/assets/modules/task_deadline_reminder.png b/project_by_phases/static/description/assets/modules/task_deadline_reminder.png new file mode 100644 index 000000000..f8aaeb32c Binary files /dev/null and b/project_by_phases/static/description/assets/modules/task_deadline_reminder.png differ diff --git a/project_by_phases/static/description/assets/screenshots/Screenshot1.png b/project_by_phases/static/description/assets/screenshots/Screenshot1.png new file mode 100644 index 000000000..ee4a4fb9d Binary files /dev/null and b/project_by_phases/static/description/assets/screenshots/Screenshot1.png differ diff --git a/project_by_phases/static/description/assets/screenshots/Screenshot2.png b/project_by_phases/static/description/assets/screenshots/Screenshot2.png new file mode 100644 index 000000000..734c161d9 Binary files /dev/null and b/project_by_phases/static/description/assets/screenshots/Screenshot2.png differ diff --git a/project_by_phases/static/description/assets/screenshots/Screenshot3.png b/project_by_phases/static/description/assets/screenshots/Screenshot3.png new file mode 100644 index 000000000..df6350c1e Binary files /dev/null and b/project_by_phases/static/description/assets/screenshots/Screenshot3.png differ diff --git a/project_by_phases/static/description/assets/screenshots/Screenshot4.png b/project_by_phases/static/description/assets/screenshots/Screenshot4.png new file mode 100644 index 000000000..6fc751789 Binary files /dev/null and b/project_by_phases/static/description/assets/screenshots/Screenshot4.png differ diff --git a/project_by_phases/static/description/assets/screenshots/Screenshot5.png b/project_by_phases/static/description/assets/screenshots/Screenshot5.png new file mode 100644 index 000000000..455411c17 Binary files /dev/null and b/project_by_phases/static/description/assets/screenshots/Screenshot5.png differ diff --git a/project_by_phases/static/description/assets/screenshots/Screenshot6.png b/project_by_phases/static/description/assets/screenshots/Screenshot6.png new file mode 100644 index 000000000..613af7381 Binary files /dev/null and b/project_by_phases/static/description/assets/screenshots/Screenshot6.png differ diff --git a/project_by_phases/static/description/assets/screenshots/Screenshot8.png b/project_by_phases/static/description/assets/screenshots/Screenshot8.png new file mode 100644 index 000000000..9bf26a93c Binary files /dev/null and b/project_by_phases/static/description/assets/screenshots/Screenshot8.png differ diff --git a/project_by_phases/static/description/assets/screenshots/Screenshot9.png b/project_by_phases/static/description/assets/screenshots/Screenshot9.png new file mode 100644 index 000000000..0a612592f Binary files /dev/null and b/project_by_phases/static/description/assets/screenshots/Screenshot9.png differ diff --git a/project_by_phases/static/description/assets/screenshots/Screenshot_7.png b/project_by_phases/static/description/assets/screenshots/Screenshot_7.png new file mode 100644 index 000000000..ee5e8a679 Binary files /dev/null and b/project_by_phases/static/description/assets/screenshots/Screenshot_7.png differ diff --git a/project_by_phases/static/description/assets/screenshots/Screenshots.zip b/project_by_phases/static/description/assets/screenshots/Screenshots.zip new file mode 100644 index 000000000..648a59d92 Binary files /dev/null and b/project_by_phases/static/description/assets/screenshots/Screenshots.zip differ diff --git a/project_by_phases/static/description/assets/screenshots/hero.gif b/project_by_phases/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..ec110a460 Binary files /dev/null and b/project_by_phases/static/description/assets/screenshots/hero.gif differ diff --git a/project_by_phases/static/description/banner.png b/project_by_phases/static/description/banner.png new file mode 100644 index 000000000..c2c620ba2 Binary files /dev/null and b/project_by_phases/static/description/banner.png differ diff --git a/project_by_phases/static/description/icon.png b/project_by_phases/static/description/icon.png new file mode 100644 index 000000000..571869ef9 Binary files /dev/null and b/project_by_phases/static/description/icon.png differ diff --git a/project_by_phases/static/description/index.html b/project_by_phases/static/description/index.html new file mode 100644 index 000000000..4f623d197 --- /dev/null +++ b/project_by_phases/static/description/index.html @@ -0,0 +1,580 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+
+
+

+ Project Phases

+

+ A Module For Managing Project Phases +

+ +
+
+ +
+
+

+ Overview +

+
+
+

+ Using Project By Phases, you can manage different phases of project.

+
+

+
+
+
+

+ Features +

+
+ +
+
+ +
+
+

+ Users can select project phases in project tasks.

+
+
+
+
+ +
+
+

+ Smart buttons added for quickly view the related task of the project phase.

+
+
+
+
+ +
+
+

+ Added group by filter option for project phase in views.

+
+
+ +
+ +
+
+

+ Screenshots +

+
+
+

+ 'Project Phases' Tab

+

+ In Project module, you can see a tab 'Project Phases'

+ +
+
+

+ Kanban view of project phases

+ +
+
+

+ Form view of project phases

+ +
+
+

+ List view of project phases

+ +
+
+

+ Smart Button 'Phases'

+

+ In form view of Project, you can see a smart button 'Phases' to view phases of corresponding project

+ +
+
+
+

+ Phases under project

+ +
+
+ +
+

+ Added field in project task for select project phases

+ +
+
+
+

+ Smart Button 'Tasks' in project phases

+ +
+
+
+

+ Corresponding task under each phase

+ +
+
+ + +
+ +
+
+

Suggested Products

+
+ +
+
+ + +
+
+
+

Our Services

+
+
+
+
+ +
+
+ Odoo + Customization
+
+
+
+ +
+
+ Odoo + Implementation
+
+
+
+ +
+
+ Odoo + Support
+
+
+
+ +
+
+ Hire + Odoo + Developer
+
+
+
+ +
+
+ Odoo + Integration
+
+
+
+ +
+
+ Odoo + Migration
+
+
+
+ +
+
+ Odoo + Consultancy
+
+
+
+ +
+
+ Odoo + Implementation
+
+
+
+ +
+
+ Odoo + Licensing Consultancy
+
+
+
+ + +
+
+
+

Our Industries

+
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

+
+
+
+
+ +
+ E-commerce & Website +
+

+ Mobile + friendly, + awe-inspiring product pages

+
+
+
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

+
+
+
+
+ + + +
+
+
+

Need Help?

+
+
+
+ +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ +
\ No newline at end of file diff --git a/project_by_phases/views/project_phase_views.xml b/project_by_phases/views/project_phase_views.xml new file mode 100644 index 000000000..8bee448e7 --- /dev/null +++ b/project_by_phases/views/project_phase_views.xml @@ -0,0 +1,141 @@ + + + + + Project Phase + project.phase + kanban,tree,form + + + + project.phase.view.form + project.phase + +
+ +
+ +
+ + + + + + + + + + + + + + + + + + +
+
+
+
+ + + project.phase.view.kanban + project.phase + + + + +
+
+
+

+ +

+
+
+
+
+
+

Project: + +

+
+
+
+
+
+
+
+
+
+ + + project.phase.view.tree + project.phase + + + + + + + + + + + + + + project.project.view.form.inherit.project.by.phases + project.project + + + + + + + + + + project.task.view.form.inherit.project.by.phases + project.task + + + + + + + + + + + project.task.view.search.inherit.project.by.phases + + project.task + + + + + + + + + + +
\ No newline at end of file