diff --git a/allocation_time_approval/README.rst b/allocation_time_approval/README.rst new file mode 100755 index 000000000..d9e8ff324 --- /dev/null +++ b/allocation_time_approval/README.rst @@ -0,0 +1,46 @@ +.. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Allocation Time Approval +======================== +This module allows manager to approve project task allocation time. + +Configuration +============= +* Choose project administrator or user + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +GNU AFFERO General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +* Developers: (V16) Farhana Jahan PT, Contact: odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://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: ``__ diff --git a/allocation_time_approval/__init__.py b/allocation_time_approval/__init__.py new file mode 100755 index 000000000..69f69a54f --- /dev/null +++ b/allocation_time_approval/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Farhana Jahan PT(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/allocation_time_approval/__manifest__.py b/allocation_time_approval/__manifest__.py new file mode 100755 index 000000000..8159ea45e --- /dev/null +++ b/allocation_time_approval/__manifest__.py @@ -0,0 +1,45 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Farhana Jahan PT(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': 'Allocation Time Approval', + 'version': '16.0.1.0.0', + 'category': 'Project', + 'summary': """ Allocated Time Approval for Project task.""", + 'description': " This module allows Manager to Approve Project Task " + "Allocation Time.", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['hr_timesheet', 'project','hr'], + 'data': [ + 'security/ir.model.access.csv', + 'data/allocation_time_approval_data.xml', + 'views/project_task_views.xml', + 'views/manager_approval_views.xml', + ], + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/allocation_time_approval/data/allocation_time_approval_data.xml b/allocation_time_approval/data/allocation_time_approval_data.xml new file mode 100755 index 000000000..6f40f7d09 --- /dev/null +++ b/allocation_time_approval/data/allocation_time_approval_data.xml @@ -0,0 +1,15 @@ + + + + + + To Approve + 1 + + True + + + diff --git a/allocation_time_approval/doc/RELEASE_NOTES.md b/allocation_time_approval/doc/RELEASE_NOTES.md new file mode 100755 index 000000000..9df2a7102 --- /dev/null +++ b/allocation_time_approval/doc/RELEASE_NOTES.md @@ -0,0 +1,5 @@ +## Module +#### 30.12.2023 +#### Version 16.0.1.0.0 +##### ADD +- Initial commit for Allocation Time Approval diff --git a/allocation_time_approval/models/__init__.py b/allocation_time_approval/models/__init__.py new file mode 100755 index 000000000..75c3a5bef --- /dev/null +++ b/allocation_time_approval/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Farhana Jahan PT(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 manager_approval +from . import project_task diff --git a/allocation_time_approval/models/manager_approval.py b/allocation_time_approval/models/manager_approval.py new file mode 100755 index 000000000..d31c112a6 --- /dev/null +++ b/allocation_time_approval/models/manager_approval.py @@ -0,0 +1,66 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Farhana Jahan PT(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 ManagerApproval(models.Model): + """ Create a new model for obtaining + Project Time Approval Data for Manager Approval. """ + _name = 'manager.approval' + _description = "Manager Approval" + + task = fields.Char(string="Task", help="Task name for project") + project_id = fields.Many2one("project.project", string="Project", + help="Corresponding project name") + user_ids = fields.Many2many('res.users', string="Assignees", + help="Corresponding assignees name", + required=True) + planned_hours = fields.Float(string="Allocated Hours", + help="Allocation time for assignees") + button_view_boolean = fields.Boolean(string="Button view", + help="Button for approve button") + button_view_boolean_cancel = fields.Boolean(string="Cancel Button", + help="Button for cancel") + task_id = fields.Many2one("project.task", string="Project Task", + help="Getting corresponding task") + + def action_approve(self): + """ When click on 'Approve' button the datas are created + in project_task module""" + users = [rec for rec in self.user_ids.ids] + self.task_id.update({ + 'name': self.task, + 'project_id': self.project_id.id, + 'user_ids': users, + 'planned_hours': self.planned_hours, + 'stage_id': self.env.ref("project.project_stage_1").id, + 'manager_approval_id': self.id + }) + self.button_view_boolean = True + self.button_view_boolean_cancel = False + + def action_manager_cancel(self): + """When click on 'Cancel' button project.task got cancelled""" + self.task_id.write({'stage_id': self.env.ref( + "project.project_stage_3").id}) + self.button_view_boolean_cancel = True + self.button_view_boolean = False diff --git a/allocation_time_approval/models/project_task.py b/allocation_time_approval/models/project_task.py new file mode 100755 index 000000000..13ef4947a --- /dev/null +++ b/allocation_time_approval/models/project_task.py @@ -0,0 +1,215 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Farhana Jahan PT(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 api, fields, models, _ +from odoo.exceptions import ValidationError + + +class ProjectTask(models.Model): + """ Inherit project,so we are adding certain boolean + field for defining stages. """ + _inherit = 'project.task' + + new_stage = fields.Boolean(string="New", + help="Boolean to visible manager approve", + compute="_compute_new_stage") + to_approve_stage = fields.Boolean(string="To approve", + compute="_compute_to_approve_stage", + help="Boolean to change to approve") + to_progress_stage = fields.Boolean(string="Task Done", + compute="_compute_to_progress_stage", + help="Boolean to progress stage") + manager_approval_id = fields.Many2one("manager.approval", + string="Manager Approval", + help="Manager Approval") + task_create_boolean = fields.Boolean(string="Task Create Boolean", + help="Task Create Boolean", + default=True) + + @api.depends('stage_id') + def _compute_new_stage(self): + """Searches for 'New' stage from project.task.type, + When project_task on 'New' stage then New boolean field got True""" + for rec in self: + rec.new_stage = True if rec.stage_id.id == rec.env.ref( + "project.project_stage_0").id else False + + @api.depends('stage_id') + def _compute_to_approve_stage(self): + """Searches for 'To Approve' stage from project.task.type, + When project_task on 'To Approve' stage then To Approve + boolean field got True""" + for rec in self: + rec.to_approve_stage = True if rec.stage_id.id == rec.env.ref( + "allocation_time_approval.task_type_to_approve").id else False + + @api.depends('stage_id') + def _compute_to_progress_stage(self): + """Searches for 'In Progress' stage from project.task.type, + When project_task on 'In Progress' stage then In Progress + boolean field got True""" + for rec in self: + rec.to_progress_stage = True if rec.stage_id.id == rec.env.ref( + "project.project_stage_1").id else False + + def action_approval(self): + """ When click on 'Manager Approval' button the + datas are created in manager_approval module, + and the stage become 'To Approve'""" + self.task_create_boolean = False + self.write({'stage_id': self.env.ref( + "allocation_time_approval.task_type_to_approve").id}) + if not self.task_create_boolean: + users = [rec for rec in self.user_ids.ids] + self.env['manager.approval'].create({ + 'task': self.name, + 'project_id': self.project_id.id, + 'user_ids': users, + 'planned_hours': self.planned_hours, + 'task_id': self.id + }) + self.planned_hours = 0 + + def action_done(self): + """ When click on 'Done' the stage become 'Done'""" + self.write({'stage_id': self.env.ref('project.project_stage_2').id}) + self.manager_approval_id.button_view_boolean = True + self.manager_approval_id.button_view_boolean_cancel = True + + def action_cancel(self): + """ When click on 'Cancel' the stage become 'Cancel'""" + self.write({'stage_id': self.env.ref("project.project_stage_3").id}) + self.manager_approval_id.button_view_boolean = True + self.manager_approval_id.button_view_boolean_cancel = True + + def write(self, values): + """ Function for change stage only for Manager""" + current_stage = self.stage_id.name + if 'stage_id' in values: + new_state = values.get('stage_id') + if (current_stage == self.env.ref( + "allocation_time_approval.task_type_to_approve").name) and ( + not self.env.user.has_group( + 'project.group_project_manager')): + if new_state in (self.env.ref("project.project_stage_0").id, + self.env.ref("project.project_stage_1").id, + self.env.ref("project.project_stage_2").id, + self.env.ref("project.project_stage_3").id): + raise ValidationError(_( + "Only Managers can perform this move!")) + if (current_stage == self.env.ref( + "project.project_stage_0").name) and ( + not self.env.user.has_group( + 'project.group_project_manager')): + if new_state != self.env.ref( + "allocation_time_approval.task_type_to_approve").id: + raise ValidationError(_( + "Only Managers can perform this move!")) + if (current_stage == self.env.ref( + "project.project_stage_2").name) and ( + not self.env.user.has_group( + 'project.group_project_manager')): + if new_state in (self.env.ref( + "allocation_time_approval.task_type_to_approve").id, + self.env.ref("project.project_stage_0").id, + self.env.ref("project.project_stage_3").id): + raise ValidationError(_( + "Only Managers can perform this move!")) + if (current_stage == self.env.ref( + "project.project_stage_1").name) and ( + not self.env.user.has_group( + 'project.group_project_manager')): + if new_state in (self.env.ref("project.project_stage_0").id, + self.env.ref( + "allocation_time_approval.task_type_to_approve").id): + raise ValidationError(_( + "Only Managers can perform this move!")) + if (current_stage == self.env.ref( + "project.project_stage_3").name) and ( + not self.env.user.has_group( + 'project.group_project_manager')): + if new_state in (self.env.ref('project.project_stage_0').id, + self.env.ref('project.project_stage_1').id, + self.env.ref('project.project_stage_2').id, + self.env.ref( + 'allocation_time_approval.task_type_to_approve').id): + raise ValidationError(_( + "Only Managers can perform this move!")) + if (new_state == self.env.ref("project.project_stage_0").id) and ( + not self.env.user.has_group( + 'project.group_project_manager')): + raise ValidationError(_("Only Managers can perform this move!")) + if new_state == self.env.ref( + "allocation_time_approval.task_type_to_approve").id: + if self.task_create_boolean: + users = [rec for rec in self.user_ids.ids] + self.env['manager.approval'].create({ + 'task': self.name, + 'project_id': self.project_id.id, + 'user_ids': users, + 'planned_hours': self.planned_hours, + 'task_id': self.id + }) + self.planned_hours = 0 + if (current_stage == self.env.ref( + "project.project_stage_2").name) and ( + self.env.user.has_group('project.group_project_manager')): + if (new_state == self.env.ref( + "allocation_time_approval.task_type_to_approve").id): + raise ValidationError(_("You can't move this..!")) + if (current_stage == self.env.ref( + "allocation_time_approval.task_type_to_approve").name) and ( + self.env.user.has_group('project.group_project_manager')): + if (new_state == self.env.ref( + "project.project_stage_0").id): + task_name = self.env["manager.approval"].search( + [('task', '=', self.name)]) + task_name.unlink() + if (new_state == self.env.ref( + "project.project_stage_2").id): + task_name = self.env["manager.approval"].search( + [('task', '=', self.name)]) + task_name.unlink() + if (new_state == self.env.ref( + "project.project_stage_3").id): + task_name = self.env["manager.approval"].search( + [('task', '=', self.name)]) + task_name.button_view_boolean_cancel = True + if (new_state == self.env.ref( + "project.project_stage_1").id): + task_name = self.env["manager.approval"].search( + [('task', '=', self.name)]) + task_name.button_view_boolean = True + if current_stage == self.env.ref("project.project_stage_1").name: + if (new_state == self.env.ref( + "project.project_stage_2").id): + task_name = self.env["manager.approval"].search( + [('task', '=', self.name)]) + task_name.button_view_boolean = True + task_name.button_view_boolean_cancel = True + if current_stage == self.env.ref("project.project_stage_1").name: + if (new_state == self.env.ref( + "project.project_stage_3").id): + task_name = self.env["manager.approval"].search( + [('task', '=', self.name)]) + task_name.button_view_boolean = True + task_name.button_view_boolean_cancel = True + return super(ProjectTask, self).write(values) diff --git a/allocation_time_approval/security/ir.model.access.csv b/allocation_time_approval/security/ir.model.access.csv new file mode 100755 index 000000000..eaabefc04 --- /dev/null +++ b/allocation_time_approval/security/ir.model.access.csv @@ -0,0 +1,3 @@ +id,name,model_id/id,group_id/id,perm_read,perm_write,perm_create,perm_unlink +access_manager_approval_manager,access.manager.approval,model_manager_approval,project.group_project_manager,1,1,1,1 +access_manager_approval_user,access.manager.approval,model_manager_approval,project.group_project_user,0,0,1,0 diff --git a/allocation_time_approval/static/description/assets/icons/chevron.png b/allocation_time_approval/static/description/assets/icons/chevron.png new file mode 100755 index 000000000..2089293d6 Binary files /dev/null and b/allocation_time_approval/static/description/assets/icons/chevron.png differ diff --git a/allocation_time_approval/static/description/assets/icons/cogs.png b/allocation_time_approval/static/description/assets/icons/cogs.png new file mode 100755 index 000000000..95d0bad62 Binary files /dev/null and b/allocation_time_approval/static/description/assets/icons/cogs.png differ diff --git a/allocation_time_approval/static/description/assets/icons/consultation.png b/allocation_time_approval/static/description/assets/icons/consultation.png new file mode 100755 index 000000000..8319d4baa Binary files /dev/null and b/allocation_time_approval/static/description/assets/icons/consultation.png differ diff --git a/allocation_time_approval/static/description/assets/icons/ecom-black.png b/allocation_time_approval/static/description/assets/icons/ecom-black.png new file mode 100755 index 000000000..a9385ff13 Binary files /dev/null and b/allocation_time_approval/static/description/assets/icons/ecom-black.png differ diff --git a/allocation_time_approval/static/description/assets/icons/education-black.png b/allocation_time_approval/static/description/assets/icons/education-black.png new file mode 100755 index 000000000..3eb09b27b Binary files /dev/null and b/allocation_time_approval/static/description/assets/icons/education-black.png differ diff --git a/allocation_time_approval/static/description/assets/icons/hotel-black.png b/allocation_time_approval/static/description/assets/icons/hotel-black.png new file mode 100755 index 000000000..130f613be Binary files /dev/null and b/allocation_time_approval/static/description/assets/icons/hotel-black.png differ diff --git a/allocation_time_approval/static/description/assets/icons/license.png b/allocation_time_approval/static/description/assets/icons/license.png new file mode 100755 index 000000000..a5869797e Binary files /dev/null and b/allocation_time_approval/static/description/assets/icons/license.png differ diff --git a/allocation_time_approval/static/description/assets/icons/lifebuoy.png b/allocation_time_approval/static/description/assets/icons/lifebuoy.png new file mode 100755 index 000000000..658d56ccc Binary files /dev/null and b/allocation_time_approval/static/description/assets/icons/lifebuoy.png differ diff --git a/allocation_time_approval/static/description/assets/icons/manufacturing-black.png b/allocation_time_approval/static/description/assets/icons/manufacturing-black.png new file mode 100755 index 000000000..697eb0e9f Binary files /dev/null and b/allocation_time_approval/static/description/assets/icons/manufacturing-black.png differ diff --git a/allocation_time_approval/static/description/assets/icons/pos-black.png b/allocation_time_approval/static/description/assets/icons/pos-black.png new file mode 100755 index 000000000..97c0f90c1 Binary files /dev/null and b/allocation_time_approval/static/description/assets/icons/pos-black.png differ diff --git a/allocation_time_approval/static/description/assets/icons/puzzle.png b/allocation_time_approval/static/description/assets/icons/puzzle.png new file mode 100755 index 000000000..65cf854e7 Binary files /dev/null and b/allocation_time_approval/static/description/assets/icons/puzzle.png differ diff --git a/allocation_time_approval/static/description/assets/icons/restaurant-black.png b/allocation_time_approval/static/description/assets/icons/restaurant-black.png new file mode 100755 index 000000000..4a35eb939 Binary files /dev/null and b/allocation_time_approval/static/description/assets/icons/restaurant-black.png differ diff --git a/allocation_time_approval/static/description/assets/icons/service-black.png b/allocation_time_approval/static/description/assets/icons/service-black.png new file mode 100755 index 000000000..301ab51cb Binary files /dev/null and b/allocation_time_approval/static/description/assets/icons/service-black.png differ diff --git a/allocation_time_approval/static/description/assets/icons/trading-black.png b/allocation_time_approval/static/description/assets/icons/trading-black.png new file mode 100755 index 000000000..9398ba2f1 Binary files /dev/null and b/allocation_time_approval/static/description/assets/icons/trading-black.png differ diff --git a/allocation_time_approval/static/description/assets/icons/training.png b/allocation_time_approval/static/description/assets/icons/training.png new file mode 100755 index 000000000..884ca024d Binary files /dev/null and b/allocation_time_approval/static/description/assets/icons/training.png differ diff --git a/allocation_time_approval/static/description/assets/icons/update.png b/allocation_time_approval/static/description/assets/icons/update.png new file mode 100755 index 000000000..ecbc5a01a Binary files /dev/null and b/allocation_time_approval/static/description/assets/icons/update.png differ diff --git a/allocation_time_approval/static/description/assets/icons/user.png b/allocation_time_approval/static/description/assets/icons/user.png new file mode 100755 index 000000000..6ffb23d9f Binary files /dev/null and b/allocation_time_approval/static/description/assets/icons/user.png differ diff --git a/allocation_time_approval/static/description/assets/icons/wrench.png b/allocation_time_approval/static/description/assets/icons/wrench.png new file mode 100755 index 000000000..6c04dea0f Binary files /dev/null and b/allocation_time_approval/static/description/assets/icons/wrench.png differ diff --git a/allocation_time_approval/static/description/assets/misc/categories.png b/allocation_time_approval/static/description/assets/misc/categories.png new file mode 100755 index 000000000..bedf1e0b1 Binary files /dev/null and b/allocation_time_approval/static/description/assets/misc/categories.png differ diff --git a/allocation_time_approval/static/description/assets/misc/check-box.png b/allocation_time_approval/static/description/assets/misc/check-box.png new file mode 100755 index 000000000..42caf24b9 Binary files /dev/null and b/allocation_time_approval/static/description/assets/misc/check-box.png differ diff --git a/allocation_time_approval/static/description/assets/misc/compass.png b/allocation_time_approval/static/description/assets/misc/compass.png new file mode 100755 index 000000000..d5fed8faa Binary files /dev/null and b/allocation_time_approval/static/description/assets/misc/compass.png differ diff --git a/allocation_time_approval/static/description/assets/misc/corporate.png b/allocation_time_approval/static/description/assets/misc/corporate.png new file mode 100755 index 000000000..2eb13edbf Binary files /dev/null and b/allocation_time_approval/static/description/assets/misc/corporate.png differ diff --git a/allocation_time_approval/static/description/assets/misc/customer-support.png b/allocation_time_approval/static/description/assets/misc/customer-support.png new file mode 100755 index 000000000..79efc72ed Binary files /dev/null and b/allocation_time_approval/static/description/assets/misc/customer-support.png differ diff --git a/allocation_time_approval/static/description/assets/misc/cybrosys-logo.png b/allocation_time_approval/static/description/assets/misc/cybrosys-logo.png new file mode 100755 index 000000000..cc3cc0ccf Binary files /dev/null and b/allocation_time_approval/static/description/assets/misc/cybrosys-logo.png differ diff --git a/allocation_time_approval/static/description/assets/misc/features.png b/allocation_time_approval/static/description/assets/misc/features.png new file mode 100755 index 000000000..b41769f77 Binary files /dev/null and b/allocation_time_approval/static/description/assets/misc/features.png differ diff --git a/allocation_time_approval/static/description/assets/misc/logo.png b/allocation_time_approval/static/description/assets/misc/logo.png new file mode 100755 index 000000000..478462d3e Binary files /dev/null and b/allocation_time_approval/static/description/assets/misc/logo.png differ diff --git a/allocation_time_approval/static/description/assets/misc/pictures.png b/allocation_time_approval/static/description/assets/misc/pictures.png new file mode 100755 index 000000000..56d255fe9 Binary files /dev/null and b/allocation_time_approval/static/description/assets/misc/pictures.png differ diff --git a/allocation_time_approval/static/description/assets/misc/pie-chart.png b/allocation_time_approval/static/description/assets/misc/pie-chart.png new file mode 100755 index 000000000..426e05244 Binary files /dev/null and b/allocation_time_approval/static/description/assets/misc/pie-chart.png differ diff --git a/allocation_time_approval/static/description/assets/misc/right-arrow.png b/allocation_time_approval/static/description/assets/misc/right-arrow.png new file mode 100755 index 000000000..730984a06 Binary files /dev/null and b/allocation_time_approval/static/description/assets/misc/right-arrow.png differ diff --git a/allocation_time_approval/static/description/assets/misc/star.png b/allocation_time_approval/static/description/assets/misc/star.png new file mode 100755 index 000000000..2eb9ab29f Binary files /dev/null and b/allocation_time_approval/static/description/assets/misc/star.png differ diff --git a/allocation_time_approval/static/description/assets/misc/support.png b/allocation_time_approval/static/description/assets/misc/support.png new file mode 100755 index 000000000..4f18b8b82 Binary files /dev/null and b/allocation_time_approval/static/description/assets/misc/support.png differ diff --git a/allocation_time_approval/static/description/assets/misc/whatsapp.png b/allocation_time_approval/static/description/assets/misc/whatsapp.png new file mode 100755 index 000000000..d513a5356 Binary files /dev/null and b/allocation_time_approval/static/description/assets/misc/whatsapp.png differ diff --git a/allocation_time_approval/static/description/assets/modules/1.png b/allocation_time_approval/static/description/assets/modules/1.png new file mode 100755 index 000000000..3415917c2 Binary files /dev/null and b/allocation_time_approval/static/description/assets/modules/1.png differ diff --git a/allocation_time_approval/static/description/assets/modules/2.png b/allocation_time_approval/static/description/assets/modules/2.png new file mode 100755 index 000000000..31ed46762 Binary files /dev/null and b/allocation_time_approval/static/description/assets/modules/2.png differ diff --git a/allocation_time_approval/static/description/assets/modules/3.png b/allocation_time_approval/static/description/assets/modules/3.png new file mode 100755 index 000000000..25ed3e0b6 Binary files /dev/null and b/allocation_time_approval/static/description/assets/modules/3.png differ diff --git a/allocation_time_approval/static/description/assets/modules/4.png b/allocation_time_approval/static/description/assets/modules/4.png new file mode 100755 index 000000000..359d3e4d6 Binary files /dev/null and b/allocation_time_approval/static/description/assets/modules/4.png differ diff --git a/allocation_time_approval/static/description/assets/modules/5.png b/allocation_time_approval/static/description/assets/modules/5.png new file mode 100755 index 000000000..3add135c3 Binary files /dev/null and b/allocation_time_approval/static/description/assets/modules/5.png differ diff --git a/allocation_time_approval/static/description/assets/modules/6.png b/allocation_time_approval/static/description/assets/modules/6.png new file mode 100755 index 000000000..be454ea44 Binary files /dev/null and b/allocation_time_approval/static/description/assets/modules/6.png differ diff --git a/allocation_time_approval/static/description/assets/screenshots/all_1.png b/allocation_time_approval/static/description/assets/screenshots/all_1.png new file mode 100755 index 000000000..b886913b4 Binary files /dev/null and b/allocation_time_approval/static/description/assets/screenshots/all_1.png differ diff --git a/allocation_time_approval/static/description/assets/screenshots/all_10.png b/allocation_time_approval/static/description/assets/screenshots/all_10.png new file mode 100755 index 000000000..74b849b58 Binary files /dev/null and b/allocation_time_approval/static/description/assets/screenshots/all_10.png differ diff --git a/allocation_time_approval/static/description/assets/screenshots/all_11.png b/allocation_time_approval/static/description/assets/screenshots/all_11.png new file mode 100755 index 000000000..4f2406911 Binary files /dev/null and b/allocation_time_approval/static/description/assets/screenshots/all_11.png differ diff --git a/allocation_time_approval/static/description/assets/screenshots/all_12.png b/allocation_time_approval/static/description/assets/screenshots/all_12.png new file mode 100755 index 000000000..d27796085 Binary files /dev/null and b/allocation_time_approval/static/description/assets/screenshots/all_12.png differ diff --git a/allocation_time_approval/static/description/assets/screenshots/all_13.png b/allocation_time_approval/static/description/assets/screenshots/all_13.png new file mode 100755 index 000000000..948e25165 Binary files /dev/null and b/allocation_time_approval/static/description/assets/screenshots/all_13.png differ diff --git a/allocation_time_approval/static/description/assets/screenshots/all_2.png b/allocation_time_approval/static/description/assets/screenshots/all_2.png new file mode 100755 index 000000000..a763e7955 Binary files /dev/null and b/allocation_time_approval/static/description/assets/screenshots/all_2.png differ diff --git a/allocation_time_approval/static/description/assets/screenshots/all_3.png b/allocation_time_approval/static/description/assets/screenshots/all_3.png new file mode 100755 index 000000000..0b47d6eca Binary files /dev/null and b/allocation_time_approval/static/description/assets/screenshots/all_3.png differ diff --git a/allocation_time_approval/static/description/assets/screenshots/all_4.png b/allocation_time_approval/static/description/assets/screenshots/all_4.png new file mode 100755 index 000000000..54f92268a Binary files /dev/null and b/allocation_time_approval/static/description/assets/screenshots/all_4.png differ diff --git a/allocation_time_approval/static/description/assets/screenshots/all_5.png b/allocation_time_approval/static/description/assets/screenshots/all_5.png new file mode 100755 index 000000000..3998c4068 Binary files /dev/null and b/allocation_time_approval/static/description/assets/screenshots/all_5.png differ diff --git a/allocation_time_approval/static/description/assets/screenshots/all_6.png b/allocation_time_approval/static/description/assets/screenshots/all_6.png new file mode 100755 index 000000000..1bab1268c Binary files /dev/null and b/allocation_time_approval/static/description/assets/screenshots/all_6.png differ diff --git a/allocation_time_approval/static/description/assets/screenshots/all_7.png b/allocation_time_approval/static/description/assets/screenshots/all_7.png new file mode 100755 index 000000000..6ccd13212 Binary files /dev/null and b/allocation_time_approval/static/description/assets/screenshots/all_7.png differ diff --git a/allocation_time_approval/static/description/assets/screenshots/all_8.png b/allocation_time_approval/static/description/assets/screenshots/all_8.png new file mode 100755 index 000000000..5871dc8e7 Binary files /dev/null and b/allocation_time_approval/static/description/assets/screenshots/all_8.png differ diff --git a/allocation_time_approval/static/description/assets/screenshots/all_9.png b/allocation_time_approval/static/description/assets/screenshots/all_9.png new file mode 100755 index 000000000..7b927ede5 Binary files /dev/null and b/allocation_time_approval/static/description/assets/screenshots/all_9.png differ diff --git a/allocation_time_approval/static/description/assets/screenshots/hero.gif b/allocation_time_approval/static/description/assets/screenshots/hero.gif new file mode 100755 index 000000000..a84a23ce7 Binary files /dev/null and b/allocation_time_approval/static/description/assets/screenshots/hero.gif differ diff --git a/allocation_time_approval/static/description/banner.jpg b/allocation_time_approval/static/description/banner.jpg new file mode 100755 index 000000000..1356d9756 Binary files /dev/null and b/allocation_time_approval/static/description/banner.jpg differ diff --git a/allocation_time_approval/static/description/icon.png b/allocation_time_approval/static/description/icon.png new file mode 100755 index 000000000..66c183866 Binary files /dev/null and b/allocation_time_approval/static/description/icon.png differ diff --git a/allocation_time_approval/static/description/index.html b/allocation_time_approval/static/description/index.html new file mode 100755 index 000000000..cc7fe1b8e --- /dev/null +++ b/allocation_time_approval/static/description/index.html @@ -0,0 +1,607 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+
+ +
+
+
+ +

+ Allocated Hour Approval

+

+ This Module Allows Manager To Approve Project Task Allocation Time.

+ + +
+
+
+ + +
+ + +
+
+ +
+

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

+
+
+
+ This module helps to approve allocation time that given by user,Also manager can edit the task details
+
+ + + +
+
+ +
+

Features +

+
+
+
+
+ + Community and Enterprise Support. +
+
+ + + Managers Can Approve Allocation Time. + +
+
+ + + Managers Can Edit Task Details. + +
+
+ + + Managers Can Cancel The Task. + +
+
+
+ + + +
+
+ +
+

Screenshots +

+
+
+
+ +
+

+ Set user access for one of the users. + +

+ +
+ +
+

+ Also set manager access for a user. + +

+ +
+ +
+

+ On user account create a task. + +

+ +
+ +
+

+ Also set allocation time,assignees,etc.,then click on 'MANAGER APPROVAL' + +

+ +
+ +
+

+ Stage changes to 'TO APPROVE'. + +

+ +
+ +
+

+ On Manager account,can see the 'Allocation Time Approval' menu in timesheet.Where can assign task to more assignees and also can edit the allocation time,After editing click on APPROVE. + +

+ +
+ +
+

+ On user account,can see the task stage is changes to 'In Progress'. Click on that task. + +

+ +
+ +
+

+ Now we can see the all changes that manager applied,After completing the task user can click on 'DONE'. + +

+ +
+
+

+ In case manager wants to cancel the task,can click on 'CANCEL' button. + +

+ +
+ +
+

+ On user account can see the cancelled task. + +

+ +
+ +
+
+ + + +
+
+ +
+

Related + 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

+
+
+
+
+ + + + +
+
+ +
+

Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
diff --git a/allocation_time_approval/views/manager_approval_views.xml b/allocation_time_approval/views/manager_approval_views.xml new file mode 100755 index 000000000..35b98725e --- /dev/null +++ b/allocation_time_approval/views/manager_approval_views.xml @@ -0,0 +1,37 @@ + + + + + manager.approval.view.list + manager.approval + + + + + + + + + + + + + + + + + + + + + + + + {'readonly':[('to_approve_stage', '=', True)]} + + + + {'readonly':[('to_progress_stage', '=', True)]} + + + +