Browse Source

July 25: [ADD] Initital Commits 'volunteers_donors_management'

pull/331/head
Cybrosys Technologies 9 months ago
parent
commit
0fa3bc11c4
  1. 44
      volunteers_donors_management/README.rst
  2. 22
      volunteers_donors_management/__init__.py
  3. 58
      volunteers_donors_management/__manifest__.py
  4. 7
      volunteers_donors_management/doc/RELEASE_NOTES.md
  5. 28
      volunteers_donors_management/models/__init__.py
  6. 48
      volunteers_donors_management/models/crm_lead.py
  7. 35
      volunteers_donors_management/models/donor_type.py
  8. 35
      volunteers_donors_management/models/project.py
  9. 76
      volunteers_donors_management/models/project_task.py
  10. 46
      volunteers_donors_management/models/res_partner.py
  11. 49
      volunteers_donors_management/models/volunteer_skill.py
  12. 38
      volunteers_donors_management/models/volunteer_type.py
  13. 194
      volunteers_donors_management/report/project_report_templates.xml
  14. 13
      volunteers_donors_management/report/project_reports.xml
  15. 4
      volunteers_donors_management/security/ir.model.access.csv
  16. 14
      volunteers_donors_management/security/volunteers_donors_management_groups.xml
  17. BIN
      volunteers_donors_management/static/description/assets/icons/check.png
  18. BIN
      volunteers_donors_management/static/description/assets/icons/chevron.png
  19. BIN
      volunteers_donors_management/static/description/assets/icons/cogs.png
  20. BIN
      volunteers_donors_management/static/description/assets/icons/consultation.png
  21. BIN
      volunteers_donors_management/static/description/assets/icons/ecom-black.png
  22. BIN
      volunteers_donors_management/static/description/assets/icons/education-black.png
  23. BIN
      volunteers_donors_management/static/description/assets/icons/hotel-black.png
  24. BIN
      volunteers_donors_management/static/description/assets/icons/license.png
  25. BIN
      volunteers_donors_management/static/description/assets/icons/lifebuoy.png
  26. BIN
      volunteers_donors_management/static/description/assets/icons/manufacturing-black.png
  27. BIN
      volunteers_donors_management/static/description/assets/icons/pos-black.png
  28. BIN
      volunteers_donors_management/static/description/assets/icons/puzzle.png
  29. BIN
      volunteers_donors_management/static/description/assets/icons/restaurant-black.png
  30. BIN
      volunteers_donors_management/static/description/assets/icons/service-black.png
  31. BIN
      volunteers_donors_management/static/description/assets/icons/trading-black.png
  32. BIN
      volunteers_donors_management/static/description/assets/icons/training.png
  33. BIN
      volunteers_donors_management/static/description/assets/icons/update.png
  34. BIN
      volunteers_donors_management/static/description/assets/icons/user.png
  35. BIN
      volunteers_donors_management/static/description/assets/icons/wrench.png
  36. BIN
      volunteers_donors_management/static/description/assets/misc/Cybrosys R.png
  37. BIN
      volunteers_donors_management/static/description/assets/misc/categories.png
  38. BIN
      volunteers_donors_management/static/description/assets/misc/check-box.png
  39. BIN
      volunteers_donors_management/static/description/assets/misc/compass.png
  40. BIN
      volunteers_donors_management/static/description/assets/misc/corporate.png
  41. BIN
      volunteers_donors_management/static/description/assets/misc/customer-support.png
  42. BIN
      volunteers_donors_management/static/description/assets/misc/cybrosys-logo.png
  43. BIN
      volunteers_donors_management/static/description/assets/misc/features.png
  44. BIN
      volunteers_donors_management/static/description/assets/misc/logo.png
  45. BIN
      volunteers_donors_management/static/description/assets/misc/pictures.png
  46. BIN
      volunteers_donors_management/static/description/assets/misc/pie-chart.png
  47. BIN
      volunteers_donors_management/static/description/assets/misc/right-arrow.png
  48. BIN
      volunteers_donors_management/static/description/assets/misc/star.png
  49. BIN
      volunteers_donors_management/static/description/assets/misc/support.png
  50. BIN
      volunteers_donors_management/static/description/assets/misc/whatsapp.png
  51. BIN
      volunteers_donors_management/static/description/assets/modules/1.png
  52. BIN
      volunteers_donors_management/static/description/assets/modules/2.png
  53. BIN
      volunteers_donors_management/static/description/assets/modules/3.png
  54. BIN
      volunteers_donors_management/static/description/assets/modules/4.png
  55. BIN
      volunteers_donors_management/static/description/assets/modules/5.png
  56. BIN
      volunteers_donors_management/static/description/assets/modules/6.png
  57. BIN
      volunteers_donors_management/static/description/assets/screenshot/1.png
  58. BIN
      volunteers_donors_management/static/description/assets/screenshot/10.png
  59. BIN
      volunteers_donors_management/static/description/assets/screenshot/11.png
  60. BIN
      volunteers_donors_management/static/description/assets/screenshot/12.png
  61. BIN
      volunteers_donors_management/static/description/assets/screenshot/13.png
  62. BIN
      volunteers_donors_management/static/description/assets/screenshot/14.png
  63. BIN
      volunteers_donors_management/static/description/assets/screenshot/15.png
  64. BIN
      volunteers_donors_management/static/description/assets/screenshot/16.png
  65. BIN
      volunteers_donors_management/static/description/assets/screenshot/17.png
  66. BIN
      volunteers_donors_management/static/description/assets/screenshot/18.png
  67. BIN
      volunteers_donors_management/static/description/assets/screenshot/19.png
  68. BIN
      volunteers_donors_management/static/description/assets/screenshot/2.png
  69. BIN
      volunteers_donors_management/static/description/assets/screenshot/20.png
  70. BIN
      volunteers_donors_management/static/description/assets/screenshot/21.png
  71. BIN
      volunteers_donors_management/static/description/assets/screenshot/22.png
  72. BIN
      volunteers_donors_management/static/description/assets/screenshot/3.png
  73. BIN
      volunteers_donors_management/static/description/assets/screenshot/4.png
  74. BIN
      volunteers_donors_management/static/description/assets/screenshot/5.png
  75. BIN
      volunteers_donors_management/static/description/assets/screenshot/6.png
  76. BIN
      volunteers_donors_management/static/description/assets/screenshot/7.png
  77. BIN
      volunteers_donors_management/static/description/assets/screenshot/8.png
  78. BIN
      volunteers_donors_management/static/description/assets/screenshot/9.png
  79. BIN
      volunteers_donors_management/static/description/assets/screenshot/hero.gif
  80. BIN
      volunteers_donors_management/static/description/assets/screenshots/1.png
  81. BIN
      volunteers_donors_management/static/description/assets/screenshots/10.png
  82. BIN
      volunteers_donors_management/static/description/assets/screenshots/11.png
  83. BIN
      volunteers_donors_management/static/description/assets/screenshots/12.png
  84. BIN
      volunteers_donors_management/static/description/assets/screenshots/13.png
  85. BIN
      volunteers_donors_management/static/description/assets/screenshots/14.png
  86. BIN
      volunteers_donors_management/static/description/assets/screenshots/15.png
  87. BIN
      volunteers_donors_management/static/description/assets/screenshots/18.png
  88. BIN
      volunteers_donors_management/static/description/assets/screenshots/19.png
  89. BIN
      volunteers_donors_management/static/description/assets/screenshots/2.png
  90. BIN
      volunteers_donors_management/static/description/assets/screenshots/22.png
  91. BIN
      volunteers_donors_management/static/description/assets/screenshots/3.png
  92. BIN
      volunteers_donors_management/static/description/assets/screenshots/4.png
  93. BIN
      volunteers_donors_management/static/description/assets/screenshots/5.png
  94. BIN
      volunteers_donors_management/static/description/assets/screenshots/6.png
  95. BIN
      volunteers_donors_management/static/description/assets/screenshots/7.png
  96. BIN
      volunteers_donors_management/static/description/assets/screenshots/8.png
  97. BIN
      volunteers_donors_management/static/description/assets/screenshots/9.png
  98. BIN
      volunteers_donors_management/static/description/assets/screenshots/99.png
  99. BIN
      volunteers_donors_management/static/description/assets/screenshots/Report_template.png
  100. BIN
      volunteers_donors_management/static/description/assets/screenshots/hey.png

44
volunteers_donors_management/README.rst

@ -0,0 +1,44 @@
.. 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
Volunteers and Donors Management
================================
This app allows you to manage your volunteers and donors in Odoo and allows you to create projects and tasks with volunteers . It also allows you to select volunteer and donor details on CRM of lead / pipelines
License
-------
General Public License, Version 3 (AGPL v3).
(https://www.gnu.org/licenses/agpl-3.0-standalone.html)
Company
-------
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__
Credits
-------
Developer: (V17) Nandakishore M, Contact: odoo@cybrosys.com
(V16) Anfas Faisal K, Contact: odoo@cybrosys.com
(V15) Nandakishore M, 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 <https://cybrosys.com/>`__
Further information
===================
HTML Description: `<static/description/index.html>`__

22
volunteers_donors_management/__init__.py

@ -0,0 +1,22 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Nandakishore M (odoo@cybrosys.info)
#
# 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 <http://www.gnu.org/licenses/>.
#
################################################################################
from . import models

58
volunteers_donors_management/__manifest__.py

@ -0,0 +1,58 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Nandakishore M (odoo@cybrosys.info)
#
# 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 <http://www.gnu.org/licenses/>.
#
################################################################################
{
'name': "Volunteers and Donors Management",
'version': "17.0.1.0.0",
'category': 'Extra Tools',
'summary': "The app helps manage volunteers and donors in Odoo, allowing "
"assign volunteers and donors in Project and CRM ",
'description': "This app allows you to manage your volunteers and donors "
"in Odoo and allows you to create projects and tasks with "
"volunteers and activities volunteers . It also allows you"
"to select volunteer and donor details on CRM of lead / "
"pipelines.",
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',
'maintainer': 'Cybrosys Techno Solutions',
'website': 'https://www.cybrosys.com',
'depends': ['crm', 'hr', 'project', 'sale_management', 'sale_timesheet'],
'data': [
'security/ir.model.access.csv',
'security/volunteers_donors_management_groups.xml',
'report/project_reports.xml',
'report/project_report_templates.xml',
'views/res_partner_views.xml',
'views/project_project_views.xml',
'views/project_task_views.xml',
'views/crm_lead_views.xml',
'views/volunteer_type_views.xml',
'views/volunteer_skill_views.xml',
'views/donor_type_views.xml',
'views/volunteers_and_donors_management_menu.xml'
],
'images': ['static/description/banner.png'],
'license': 'AGPL-3',
'installable': True,
'auto_install': False,
'application': True,
}

7
volunteers_donors_management/doc/RELEASE_NOTES.md

@ -0,0 +1,7 @@
## Module <volunteers_donors_management>
#### 03.05.2024
#### Version 17.0.1.0.0
#### ADD
- Initial Commit for Volunteers and Donors Management

28
volunteers_donors_management/models/__init__.py

@ -0,0 +1,28 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Nandakishore M (odoo@cybrosys.info)
#
# 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 <http://www.gnu.org/licenses/>.
#
################################################################################
from . import crm_lead
from . import donor_type
from . import project
from . import project_task
from . import res_partner
from . import volunteer_skill
from . import volunteer_type

48
volunteers_donors_management/models/crm_lead.py

@ -0,0 +1,48 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Nandakishore M (odoo@cybrosys.info)
#
# 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 <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class CrmLead(models.Model):
"""This class extends the 'crm.lead' model to add custom fields related
to donor and volunteer information."""
_inherit = "crm.lead"
donor_type_id = fields.Many2one('donor.type', string='Donor Type',
related='partner_id.donor_type_id',
help='The type of donor associated with '
'this lead',
readonly=False)
volunteer_type_id = fields.Many2one('volunteer.type',
string='Volunteer Type',
related='partner_id.volunteer_type_id',
help='The type of volunteer '
'associated with this lead',
readonly=False)
volunteer_skill_ids = fields.Many2many('volunteer.skill',
string='Volunteer Skill',
help='The skills possessed by the '
'volunteer associated with '
'this lead',
related=
'partner_id.volunteer_skill_ids',
readonly=False)

35
volunteers_donors_management/models/donor_type.py

@ -0,0 +1,35 @@
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Nandakishore M (odoo@cybrosys.info)
#
# 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
# If not, see <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class DonorType(models.Model):
"""This class represents the donor type model, which stores
information related to different types of donors."""
_name = "donor.type"
_description = "Donor Type"
_rec_name = 'donor_type'
donor_type = fields.Char(String='Name', help='The name of the donor type',
required=True)
donor_code = fields.Char(string='Donor Code', required=True,
help='The code of the donor code')
description = fields.Html(string='Description', translate=True,
help='A description of the donor type')

35
volunteers_donors_management/models/project.py

@ -0,0 +1,35 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Nandakishore M (odoo@cybrosys.info)
#
# 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 <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class ProjectProject(models.Model):
"""This class extends the 'project.project' model to add a many-to-many
field for storing volunteer details associated with a project."""
_inherit = "project.project"
project_partner_ids = fields.Many2many(
'res.partner',
string='Volunteer Details',
domain=[('is_volunteer', '=', True)],
help='The volunteers associated '
'with this project')

76
volunteers_donors_management/models/project_task.py

@ -0,0 +1,76 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Nandakishore M (odoo@cybrosys.info)
#
# 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 <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import api, fields, models
class ProjectTask(models.Model):
""" This class extends the 'project.task' model to add a many-to-many
field for storing volunteer details associated with a task.
Methods:
_compute_followers(): Compute method to update task followers based on
project_task_partner_ids.
"""
_inherit = "project.task"
project_task_partner_ids = fields.Many2many(
'res.partner',
string='Volunteer Details',
help='The volunteers associated with this task',
readonly=False)
project_invisible_partner_ids = fields.Many2many(
'res.partner', string="Project Volunteers",
related='project_id.project_partner_ids', )
@api.depends('project_invisible_partner_ids')
def _compute_volunteer_domain(self):
"""Compute method to update project_task_partner_ids
based on project_invisible_partner_ids."""
for task in self:
task.project_task_partner_ids = [
(6, 0, task.project_invisible_partner_ids.ids)]
@api.onchange('project_task_partner_ids')
def _onchange_project_task_partner_ids(self):
"""Automatically add followers when project_task_partner_ids changes."""
self.message_subscribe(partner_ids=self.project_task_partner_ids.ids)
def write(self, vals):
"""
Override the write method to handle changes in project_task_partner_ids.
When the project_task_partner_ids field is updated, this method
calculates the partner IDs that are being removed and unsubscribes
them as followers.
:param vals: A dictionary of field values to update.
:return: The result of the original write method.
"""
res = super(ProjectTask, self).write(vals)
follower_ids = self.message_follower_ids.mapped('partner_id').ids
task_partner_ids = self.project_task_partner_ids.ids
user_ids = self.user_ids.mapped('partner_id').ids
non_intersecting = set(task_partner_ids) ^ set(follower_ids)
assignees_non_intersecting = set(user_ids) ^ non_intersecting
partner_ids = self.env['res.partner'].browse(assignees_non_intersecting)
self.message_unsubscribe(partner_ids=partner_ids.ids)
return res

46
volunteers_donors_management/models/res_partner.py

@ -0,0 +1,46 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Nandakishore M (odoo@cybrosys.info)
#
# 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 <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class ResPartner(models.Model):
""" This class extends the 'res.partner' model to add fields for storing
information about volunteers and donors.
"""
_inherit = "res.partner"
is_volunteer = fields.Boolean(string='Is Volunteer', help='Check this box '
'if the partner '
'is a volunteer')
is_donor = fields.Boolean(string='Is Donor', help='Check this box if the '
'partner is a donor')
volunteer_type_id = fields.Many2one('volunteer.type',
String='Volunteer Type',
help='The type of volunteer '
'associated with this partner')
volunteer_skill_ids = fields.Many2many('volunteer.skill',
String='Volunteer Skill',
help='The skills of the volunteer '
'associated with this partner')
donor_type_id = fields.Many2one('donor.type', String='Donor Types',
help='The type of donor associated with '
'this partner')

49
volunteers_donors_management/models/volunteer_skill.py

@ -0,0 +1,49 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Nandakishore M (odoo@cybrosys.info)
#
# 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 <http://www.gnu.org/licenses/>.
#
################################################################################
from random import randint
from odoo import fields, models
class VolunteerSkills(models.Model):
"""This class represents the skills that a volunteer can possess.
Methods: _default_color(): Set the Color based on VolunteerSkills
inside the tree view"""
_name = "volunteer.skill"
_description = "Volunteer Skill"
_rec_name = 'volunteer_skill'
def _default_color(self):
"""Set the Color based on VolunteerSkills inside the tree view"""
return randint(1, 11)
volunteer_skill = fields.Char(String='Name', help='The name of the '
'volunteer skill',
required=True)
volunteer_skill_code = fields.Char(String='code', help='The code of the '
'volunteer skill',
required=True,)
color = fields.Integer(string='Color', default=_default_color,
help='The color code of the volunteer skill')
description = fields.Html(string='Description', translate=True,
help='A description of the volunteer skill')

38
volunteers_donors_management/models/volunteer_type.py

@ -0,0 +1,38 @@
# -*- coding: utf-8 -*-
################################################################################
#
# Cybrosys Technologies Pvt. Ltd.
#
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Author: Nandakishore M (odoo@cybrosys.info)
#
# 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 <http://www.gnu.org/licenses/>.
#
################################################################################
from odoo import fields, models
class VolunteerType(models.Model):
"""This class represents the different types of volunteers."""
_name = "volunteer.type"
_description = "Volunteer Type"
_rec_name = 'volunteer_type'
volunteer_type = fields.Char(String='Name', help='The name of the '
'volunteer type',
required=True)
volunteer_code = fields.Char(String='code', help='The code of the '
'volunteer type',
required=True)
description = fields.Html(String='Description', translate=True,
help='A description of the volunteer type')

194
volunteers_donors_management/report/project_report_templates.xml

@ -0,0 +1,194 @@
<?xml version="1.0" encoding="UTF-8" ?>
<odoo>
<!-- Report Template-->
<template id="report_project_details">
<t t-call="web.html_container">
<t t-foreach="docs" t-as="data">
<t t-call="web.external_layout">
<div class="page">
<div class="text-center">
<h1>
<u>Project Report</u>
</h1>
</div>
<br>
</br>
<h3>
Project Name :
<t t-esc="data.name"/>
</h3>
<table class="table table-sm"
style="border: 1px solid black;">
<tr>
<td>
<strong>Customer Name:</strong>
</td>
<td>
<t t-if="data.partner_id.name">
<t t-esc="data.partner_id.name"/>
</t>
</td>
</tr>
<tr>
<td>
<strong>Project Manger:</strong>
</td>
<td>
<t t-if="data.user_id.name">
<t t-esc="data.user_id.name"/>
</t>
</td>
</tr>
<tr>
<td>
<strong>Planned Date</strong>
</td>
<td>
<t t-if="data.date_start">
<t t-esc="data.date_start"/>
</t>
</td>
</tr>
<tr>
<td>
<strong>Allocated Hours</strong>
</td>
<td>
<t t-if="data.allocated_hours">
<t t-esc="data.allocated_hours"/>
</t>
</td>
</tr>
</table>
<br>
</br>
<t t-if="data.task_ids">
<h3>Tasks:</h3>
<style>
table, thead, th, td, tr, tbody {
border: 1px solid black;
border-collapse: collapse;
padding: 5px;
}
</style>
<table class="table table-sm"
style="border: 2px solid black;">
<thead>
<tr>
<strong>
<th>Task Name</th>
<th>Planned Hours</th>
<th>Spent Hours</th>
<th>Remaining Hours</th>
<th>Assigned To</th>
<th>Assigning Date</th>
<th>Deadline</th>
<th>Stage</th>
</strong>
</tr>
</thead>
<tbody>
<t t-foreach="data.task_ids" t-as="task">
<tr>
<td>
<t t-esc="task.name"/>
</td>
<td>
<t t-if="task.allocated_hours">
<t t-esc="task.allocated_hours"/>
</t>
</td>
<td>
<t t-set="total_amount" t-value="0.0"/>
<t t-if="task.timesheet_ids">
<t t-foreach="task.timesheet_ids" t-as="time">
<t t-if="time.unit_amount">
<t t-set="total_amount" t-value="total_amount + time.unit_amount"/>
</t>
</t>
</t>
<t t-esc="total_amount"/>
</td>
<td>
<t t-if="task.remaining_hours">
<t t-esc="task.remaining_hours"/>
</t>
</td>
<td>
<t t-esc="', '.join(user.name for user in task.user_ids)"/>
</td>
<td>
<t t-if="task.date_assign">
<t t-esc="task.date_assign.strftime('%d-%m-%Y')"/>
</t>
</td>
<td>
<t t-if="task.date_deadline">
<t t-esc="task.date_deadline.strftime('%d-%m-%Y')"/>
</t>
</td>
<td>
<t t-esc="task.stage_id.name"/>
</td>
</tr>
</t>
</tbody>
</table>
</t>
<br>
</br>
<t t-if="data.project_partner_ids">
<h3>Volunteer Details</h3>
<style>
table, thead, th, td, tr, tbody {
border: 1px solid black;
border-collapse: collapse;
padding: 5px;
}
</style>
<table class="table table-sm"
style="border: 2px solid black;">
<thead>
<tr>
<strong>
<th>Volunteer</th>
<th>Volunteer Type</th>
<th>Volunteer Skill</th>
<th>Phone</th>
<th>Email</th>
</strong>
</tr>
</thead>
<tbody>
<t t-foreach="data.project_partner_ids"
t-as="request">
<tr>
<td>
<t t-esc="request.display_name"/>
</td>
<td>
<t t-esc="request.volunteer_type_id.volunteer_type"/>
</td>
<td>
<t t-esc="', '.join(skill.volunteer_skill for skill in request.volunteer_skill_ids)"/>
</td>
<td>
<t t-esc="request.phone"/>
</td>
<td>
<t t-esc="request.email"/>
</td>
</tr>
</t>
</tbody>
</table>
</t>
</div>
</t>
</t>
</t>
</template>
</odoo>

13
volunteers_donors_management/report/project_reports.xml

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<!-- Define the action for the project report -->
<record id="project_report_action" model="ir.actions.report">
<field name="name">Project Report</field>
<field name="model">project.project</field>
<field name="report_type">qweb-pdf</field>
<field name="report_name">volunteers_donors_management.report_project_details</field>
<field name="report_file">volunteers_donors_management.report_project_details</field>
<field name="binding_model_id" ref="model_project_project"/>
<field name="binding_type">report</field>
</record>
</odoo>

4
volunteers_donors_management/security/ir.model.access.csv

@ -0,0 +1,4 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
access_volunteer_type_user,access.volunteer.type.user,model_volunteer_type,base.group_user,1,1,1,1
access_volunteer_skill_user,access.volunteer.skill.user,model_volunteer_skill,base.group_user,1,1,1,1
access_donor_type_user,access.donor.type.user,model_donor_type,base.group_user,1,1,1,1
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink
2 access_volunteer_type_user access.volunteer.type.user model_volunteer_type base.group_user 1 1 1 1
3 access_volunteer_skill_user access.volunteer.skill.user model_volunteer_skill base.group_user 1 1 1 1
4 access_donor_type_user access.donor.type.user model_donor_type base.group_user 1 1 1 1

14
volunteers_donors_management/security/volunteers_donors_management_groups.xml

@ -0,0 +1,14 @@
<?xml version="1.0" ?>
<odoo>
<data>
<record model="ir.module.category" id="volunteers_donors_management_category">
<field name="name">Volunteers Donors Management</field>
</record>
<record id="volunteers_donors_management_user" model="res.groups">
<field name="name">User</field>
<field name="category_id"
ref="volunteers_donors_management.volunteers_donors_management_category"/>
</record>
</data>
</odoo>

BIN
volunteers_donors_management/static/description/assets/icons/check.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
volunteers_donors_management/static/description/assets/icons/chevron.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 310 B

BIN
volunteers_donors_management/static/description/assets/icons/cogs.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

BIN
volunteers_donors_management/static/description/assets/icons/consultation.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
volunteers_donors_management/static/description/assets/icons/ecom-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 576 B

BIN
volunteers_donors_management/static/description/assets/icons/education-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 733 B

BIN
volunteers_donors_management/static/description/assets/icons/hotel-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 911 B

BIN
volunteers_donors_management/static/description/assets/icons/license.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
volunteers_donors_management/static/description/assets/icons/lifebuoy.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
volunteers_donors_management/static/description/assets/icons/manufacturing-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 673 B

BIN
volunteers_donors_management/static/description/assets/icons/pos-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 878 B

BIN
volunteers_donors_management/static/description/assets/icons/puzzle.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 653 B

BIN
volunteers_donors_management/static/description/assets/icons/restaurant-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

BIN
volunteers_donors_management/static/description/assets/icons/service-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 839 B

BIN
volunteers_donors_management/static/description/assets/icons/trading-black.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 B

BIN
volunteers_donors_management/static/description/assets/icons/training.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 627 B

BIN
volunteers_donors_management/static/description/assets/icons/update.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
volunteers_donors_management/static/description/assets/icons/user.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 988 B

BIN
volunteers_donors_management/static/description/assets/icons/wrench.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

BIN
volunteers_donors_management/static/description/assets/misc/Cybrosys R.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
volunteers_donors_management/static/description/assets/misc/categories.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

BIN
volunteers_donors_management/static/description/assets/misc/check-box.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
volunteers_donors_management/static/description/assets/misc/compass.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

BIN
volunteers_donors_management/static/description/assets/misc/corporate.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
volunteers_donors_management/static/description/assets/misc/customer-support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
volunteers_donors_management/static/description/assets/misc/cybrosys-logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.4 KiB

BIN
volunteers_donors_management/static/description/assets/misc/features.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 589 B

BIN
volunteers_donors_management/static/description/assets/misc/logo.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
volunteers_donors_management/static/description/assets/misc/pictures.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

BIN
volunteers_donors_management/static/description/assets/misc/pie-chart.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
volunteers_donors_management/static/description/assets/misc/right-arrow.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 967 B

BIN
volunteers_donors_management/static/description/assets/misc/star.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

BIN
volunteers_donors_management/static/description/assets/misc/support.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

BIN
volunteers_donors_management/static/description/assets/misc/whatsapp.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
volunteers_donors_management/static/description/assets/modules/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

BIN
volunteers_donors_management/static/description/assets/modules/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
volunteers_donors_management/static/description/assets/modules/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

BIN
volunteers_donors_management/static/description/assets/modules/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 79 KiB

BIN
volunteers_donors_management/static/description/assets/modules/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
volunteers_donors_management/static/description/assets/modules/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

BIN
volunteers_donors_management/static/description/assets/screenshot/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 622 KiB

BIN
volunteers_donors_management/static/description/assets/screenshot/10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 380 KiB

BIN
volunteers_donors_management/static/description/assets/screenshot/11.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 326 KiB

BIN
volunteers_donors_management/static/description/assets/screenshot/12.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 353 KiB

BIN
volunteers_donors_management/static/description/assets/screenshot/13.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 374 KiB

BIN
volunteers_donors_management/static/description/assets/screenshot/14.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 380 KiB

BIN
volunteers_donors_management/static/description/assets/screenshot/15.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 KiB

BIN
volunteers_donors_management/static/description/assets/screenshot/16.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 377 KiB

BIN
volunteers_donors_management/static/description/assets/screenshot/17.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 282 KiB

BIN
volunteers_donors_management/static/description/assets/screenshot/18.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 320 KiB

BIN
volunteers_donors_management/static/description/assets/screenshot/19.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 306 KiB

BIN
volunteers_donors_management/static/description/assets/screenshot/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 454 KiB

BIN
volunteers_donors_management/static/description/assets/screenshot/20.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 286 KiB

BIN
volunteers_donors_management/static/description/assets/screenshot/21.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 KiB

BIN
volunteers_donors_management/static/description/assets/screenshot/22.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 414 KiB

BIN
volunteers_donors_management/static/description/assets/screenshot/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 442 KiB

BIN
volunteers_donors_management/static/description/assets/screenshot/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

BIN
volunteers_donors_management/static/description/assets/screenshot/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 KiB

BIN
volunteers_donors_management/static/description/assets/screenshot/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 174 KiB

BIN
volunteers_donors_management/static/description/assets/screenshot/7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 162 KiB

BIN
volunteers_donors_management/static/description/assets/screenshot/8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 161 KiB

BIN
volunteers_donors_management/static/description/assets/screenshot/9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 KiB

BIN
volunteers_donors_management/static/description/assets/screenshot/hero.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 389 KiB

BIN
volunteers_donors_management/static/description/assets/screenshots/1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 448 KiB

BIN
volunteers_donors_management/static/description/assets/screenshots/10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 118 KiB

BIN
volunteers_donors_management/static/description/assets/screenshots/11.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 105 KiB

BIN
volunteers_donors_management/static/description/assets/screenshots/12.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 120 KiB

BIN
volunteers_donors_management/static/description/assets/screenshots/13.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

BIN
volunteers_donors_management/static/description/assets/screenshots/14.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

BIN
volunteers_donors_management/static/description/assets/screenshots/15.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

BIN
volunteers_donors_management/static/description/assets/screenshots/18.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 115 KiB

BIN
volunteers_donors_management/static/description/assets/screenshots/19.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 148 KiB

BIN
volunteers_donors_management/static/description/assets/screenshots/2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 299 KiB

BIN
volunteers_donors_management/static/description/assets/screenshots/22.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

BIN
volunteers_donors_management/static/description/assets/screenshots/3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

BIN
volunteers_donors_management/static/description/assets/screenshots/4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
volunteers_donors_management/static/description/assets/screenshots/5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

BIN
volunteers_donors_management/static/description/assets/screenshots/6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

BIN
volunteers_donors_management/static/description/assets/screenshots/7.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

BIN
volunteers_donors_management/static/description/assets/screenshots/8.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 121 KiB

BIN
volunteers_donors_management/static/description/assets/screenshots/9.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 122 KiB

BIN
volunteers_donors_management/static/description/assets/screenshots/99.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1016 KiB

BIN
volunteers_donors_management/static/description/assets/screenshots/Report_template.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 141 KiB

BIN
volunteers_donors_management/static/description/assets/screenshots/hey.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 933 KiB

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save