diff --git a/activity_dashboard_mngmnt/README.rst b/activity_dashboard_mngmnt/README.rst new file mode 100644 index 000000000..657543ce2 --- /dev/null +++ b/activity_dashboard_mngmnt/README.rst @@ -0,0 +1,49 @@ +.. 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 + +Activity Management +=================== +Simplify activity management with a comprehensive dashboard, offering +centralized control and oversight for seamless organization-wide coordination +and tracking. + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Affero General Public License, Version 3 (AGPL v3). +(https://www.gnu.org/licenses/agpl-3.0-standalone.html) + +Credits +------- +* Developer:(V17) Unnimaya C O, + (V18) Jumana Jabin MP ,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/activity_dashboard_mngmnt/__init__.py b/activity_dashboard_mngmnt/__init__.py new file mode 100644 index 000000000..0175de083 --- /dev/null +++ b/activity_dashboard_mngmnt/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Jumana Jabin MP (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/activity_dashboard_mngmnt/__manifest__.py b/activity_dashboard_mngmnt/__manifest__.py new file mode 100644 index 000000000..59c045a57 --- /dev/null +++ b/activity_dashboard_mngmnt/__manifest__.py @@ -0,0 +1,55 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Jumana Jabin MP (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': 'Activity Management', + 'version': '18.0.1.0.0', + 'category': 'Extra Tools', + 'summary': """Dashboard for streamlined management of all activities.""", + 'description': """Simplify activity management with a comprehensive + dashboard, offering centralized control and oversight for seamless + organization-wide coordination and tracking.""", + 'author': 'Cybrosys Techno solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['mail'], + 'data': [ + 'security/ir.model.access.csv', + 'views/activity_tag_views.xml', + 'views/activity_dashbord_views.xml', + 'views/mail_activity_views.xml' + ], + 'assets': { + 'web.assets_backend': [ + 'activity_dashboard_mngmnt/static/src/css/dashboard.css', + 'activity_dashboard_mngmnt/static/src/css/style.scss', + 'activity_dashboard_mngmnt/static/src/css/material-gauge.css', + 'activity_dashboard_mngmnt/static/src/xml/activity_dashboard_template.xml', + 'activity_dashboard_mngmnt/static/src/js/activity_dashboard.js', + ], + }, + 'images': ['static/description/Banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': True, +} diff --git a/activity_dashboard_mngmnt/doc/RELEASE_NOTES.md b/activity_dashboard_mngmnt/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..595f6e0bf --- /dev/null +++ b/activity_dashboard_mngmnt/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 19.04.2025 +#### Version 18.0.1.0.0 +##### ADD +- Initial commit for Activity Management diff --git a/activity_dashboard_mngmnt/models/__init__.py b/activity_dashboard_mngmnt/models/__init__.py new file mode 100644 index 000000000..1446523dc --- /dev/null +++ b/activity_dashboard_mngmnt/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Jumana Jabin MP (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 activity_tag +from . import mail_activity diff --git a/activity_dashboard_mngmnt/models/activity_tag.py b/activity_dashboard_mngmnt/models/activity_tag.py new file mode 100644 index 000000000..118f772ab --- /dev/null +++ b/activity_dashboard_mngmnt/models/activity_tag.py @@ -0,0 +1,40 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Jumana Jabin MP (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 random import randint +from odoo import fields, models + + +class ActivityTag(models.Model): + """Model to add tags to an activity""" + _name = "activity.tag" + _description = "Activity Tag" + + name = fields.Char(string='Tag Name', + help='Name of the activity tag.', + required=True, + translate=True) + color = fields.Integer(string='Color', + help='Field that gives color to the tag.', + default=randint(1, 11)) + + _sql_constraints = [ + ('name_uniq', 'unique (name)', "Tag name already exists !"), ] diff --git a/activity_dashboard_mngmnt/models/mail_activity.py b/activity_dashboard_mngmnt/models/mail_activity.py new file mode 100644 index 000000000..ae974b37c --- /dev/null +++ b/activity_dashboard_mngmnt/models/mail_activity.py @@ -0,0 +1,113 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies(). +# Author: Jumana Jabin MP (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 collections import defaultdict +from odoo import fields, models + + +class MailActivity(models.Model): + """Inherited mail.activity model mostly to add dashboard functionalities""" + _inherit = "mail.activity" + + activity_tag_ids = fields.Many2many('activity.tag', + string='Activity Tags', + help='Select activity tags.') + state = fields.Selection([ + ('planned', 'Planned'), + ('today', 'Today'), + ('done', 'Done'), + ('overdue', 'Overdue')], string='State', help='State of the activity', + compute='_compute_state', store=True) + + def _action_done(self, feedback=False, attachment_ids=None): + """Override _action_done to remove the unlink code""" + # marking as 'done' + messages = self.env['mail.message'] + next_activities_values = [] + # Search for all attachments linked to the activities we are about to + # unlink. This way, we + # can link them to the message posted and prevent their deletion. + attachments = self.env['ir.attachment'].search_read([ + ('res_model', '=', self._name), + ('res_id', 'in', self.ids), + ], ['id', 'res_id']) + activity_attachments = defaultdict(list) + for attachment in attachments: + activity_id = attachment['res_id'] + activity_attachments[activity_id].append(attachment['id']) + for model, activity_data in self._classify_by_model().items(): + records = self.env[model].browse(activity_data['record_ids']) + for record, activity in zip(records, activity_data['activities']): + # extract value to generate next activities + if activity.chaining_type == 'trigger': + vals = (activity.with_context( + activity_previous_deadline=activity.date_deadline). + _prepare_next_activity_values()) + next_activities_values.append(vals) + # post message on activity, before deleting it + activity_message = record.message_post_with_source( + 'mail.message_activity_done', + attachment_ids=attachment_ids, + render_values={ + 'activity': activity, + 'feedback': feedback, + 'display_assignee': activity.user_id != self.env.user + }, + mail_activity_type_id=activity.activity_type_id.id, + subtype_xmlid='mail.mt_activities', + ) + if activity.activity_type_id.keep_done: + attachment_ids = ((attachment_ids or []) + + activity_attachments.get(activity.id, + [])) + if attachment_ids: + activity.attachment_ids = attachment_ids + # Moving the attachments in the message + # TODO: Fix void res_id on attachment when you create an + # activity with an image + # directly, see route /web_editor/attachment/add + if activity_attachments[activity.id]: + message_attachments = self.env['ir.attachment'].browse( + activity_attachments[activity.id]) + if message_attachments: + message_attachments.write({ + 'res_id': activity_message.id, + 'res_model': activity_message._name, + }) + activity_message.attachment_ids = message_attachments + messages += activity_message + next_activities = self.env['mail.activity'] + if next_activities_values: + next_activities = self.env['mail.activity'].create( + next_activities_values) + for rec in self: + if rec.state != 'done': + rec.state = 'done' + rec.active = False + return messages, next_activities + + def get_activity(self, activity_id): + """Method for returning model and id of activity""" + activity = self.env['mail.activity'].browse(activity_id) + return { + 'model': activity.res_model, + 'res_id': activity.res_id + } diff --git a/activity_dashboard_mngmnt/security/ir.model.access.csv b/activity_dashboard_mngmnt/security/ir.model.access.csv new file mode 100644 index 000000000..c417458ef --- /dev/null +++ b/activity_dashboard_mngmnt/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 +access_activity_tag_user,access.activity.tag.user,model_activity_tag,base.group_user,1,1,1,1 diff --git a/activity_dashboard_mngmnt/static/description/Banner.jpg b/activity_dashboard_mngmnt/static/description/Banner.jpg new file mode 100644 index 000000000..d1e6c1d76 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/Banner.jpg differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/arrows-repeat.svg b/activity_dashboard_mngmnt/static/description/assets/icons/arrows-repeat.svg new file mode 100644 index 000000000..1d7efabc5 --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/arrows-repeat.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/banner-1.png b/activity_dashboard_mngmnt/static/description/assets/icons/banner-1.png new file mode 100644 index 000000000..c180db172 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/banner-1.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/banner-2.svg b/activity_dashboard_mngmnt/static/description/assets/icons/banner-2.svg new file mode 100644 index 000000000..e606d97d9 --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/banner-2.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/banner-bg.png b/activity_dashboard_mngmnt/static/description/assets/icons/banner-bg.png new file mode 100644 index 000000000..a8238d3c0 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/banner-bg.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/banner-bg.svg b/activity_dashboard_mngmnt/static/description/assets/icons/banner-bg.svg new file mode 100644 index 000000000..b1378103e --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/banner-bg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/banner-call.svg b/activity_dashboard_mngmnt/static/description/assets/icons/banner-call.svg new file mode 100644 index 000000000..96c687e81 --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/banner-call.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/banner-mail.svg b/activity_dashboard_mngmnt/static/description/assets/icons/banner-mail.svg new file mode 100644 index 000000000..cbf0d158d --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/banner-mail.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/banner-pattern.svg b/activity_dashboard_mngmnt/static/description/assets/icons/banner-pattern.svg new file mode 100644 index 000000000..9c1c7e101 --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/banner-pattern.svg @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/banner-promo.svg b/activity_dashboard_mngmnt/static/description/assets/icons/banner-promo.svg new file mode 100644 index 000000000..d52791b11 --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/banner-promo.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/brand-pair.svg b/activity_dashboard_mngmnt/static/description/assets/icons/brand-pair.svg new file mode 100644 index 000000000..d8db7fc1e --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/brand-pair.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/check.png b/activity_dashboard_mngmnt/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/check.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/chevron.png b/activity_dashboard_mngmnt/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/chevron.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/close-icon.svg b/activity_dashboard_mngmnt/static/description/assets/icons/close-icon.svg new file mode 100644 index 000000000..df8cce37a --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/close-icon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/cogs.png b/activity_dashboard_mngmnt/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/cogs.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/collabarate-icon.svg b/activity_dashboard_mngmnt/static/description/assets/icons/collabarate-icon.svg new file mode 100644 index 000000000..dd4e10518 --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/collabarate-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/consultation.png b/activity_dashboard_mngmnt/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/consultation.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/cybro-logo.png b/activity_dashboard_mngmnt/static/description/assets/icons/cybro-logo.png new file mode 100644 index 000000000..ff4b78220 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/cybro-logo.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/down.svg b/activity_dashboard_mngmnt/static/description/assets/icons/down.svg new file mode 100644 index 000000000..f21c36271 --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/ecom-black.png b/activity_dashboard_mngmnt/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/ecom-black.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/education-black.png b/activity_dashboard_mngmnt/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/education-black.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/faq.png b/activity_dashboard_mngmnt/static/description/assets/icons/faq.png new file mode 100644 index 000000000..4250b5b81 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/faq.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/feature-icon.svg b/activity_dashboard_mngmnt/static/description/assets/icons/feature-icon.svg new file mode 100644 index 000000000..fa0ea6850 --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/feature-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/feature.png b/activity_dashboard_mngmnt/static/description/assets/icons/feature.png new file mode 100644 index 000000000..ac7a785c0 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/feature.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/gear.svg b/activity_dashboard_mngmnt/static/description/assets/icons/gear.svg new file mode 100644 index 000000000..0cc66b6ea --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/gear.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/hero.gif b/activity_dashboard_mngmnt/static/description/assets/icons/hero.gif new file mode 100644 index 000000000..380654dfe Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/hero.gif differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/hire-odoo.svg b/activity_dashboard_mngmnt/static/description/assets/icons/hire-odoo.svg new file mode 100644 index 000000000..e1ac089b0 --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/hire-odoo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/hotel-black.png b/activity_dashboard_mngmnt/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/hotel-black.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/license.png b/activity_dashboard_mngmnt/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/license.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/life-ring-icon.svg b/activity_dashboard_mngmnt/static/description/assets/icons/life-ring-icon.svg new file mode 100644 index 000000000..3ae6e1d89 --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/life-ring-icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/lifebuoy.png b/activity_dashboard_mngmnt/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/lifebuoy.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/mail.svg b/activity_dashboard_mngmnt/static/description/assets/icons/mail.svg new file mode 100644 index 000000000..1eedde695 --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/mail.svg @@ -0,0 +1,3 @@ + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/manufacturing-black.png b/activity_dashboard_mngmnt/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/manufacturing-black.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/notes.png b/activity_dashboard_mngmnt/static/description/assets/icons/notes.png new file mode 100644 index 000000000..ee5e95404 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/notes.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/notification icon.svg b/activity_dashboard_mngmnt/static/description/assets/icons/notification icon.svg new file mode 100644 index 000000000..053189973 --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/notification icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/odoo-consultancy.svg b/activity_dashboard_mngmnt/static/description/assets/icons/odoo-consultancy.svg new file mode 100644 index 000000000..e05f65bde --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/odoo-consultancy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/odoo-licencing.svg b/activity_dashboard_mngmnt/static/description/assets/icons/odoo-licencing.svg new file mode 100644 index 000000000..2606c88b0 --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/odoo-licencing.svg @@ -0,0 +1,3 @@ + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/odoo-logo.png b/activity_dashboard_mngmnt/static/description/assets/icons/odoo-logo.png new file mode 100644 index 000000000..0e4d0eb5a Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/odoo-logo.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/patter.svg b/activity_dashboard_mngmnt/static/description/assets/icons/patter.svg new file mode 100644 index 000000000..25c9c0a8f --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/patter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/pattern1.png b/activity_dashboard_mngmnt/static/description/assets/icons/pattern1.png new file mode 100644 index 000000000..09ab0fb2d Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/pattern1.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/pos-black.png b/activity_dashboard_mngmnt/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/pos-black.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/puzzle-piece-icon.svg b/activity_dashboard_mngmnt/static/description/assets/icons/puzzle-piece-icon.svg new file mode 100644 index 000000000..3e9ad9373 --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/puzzle-piece-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/puzzle.png b/activity_dashboard_mngmnt/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/puzzle.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/replace-icon.svg b/activity_dashboard_mngmnt/static/description/assets/icons/replace-icon.svg new file mode 100644 index 000000000..d0e3a7af1 --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/replace-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/restaurant-black.png b/activity_dashboard_mngmnt/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/restaurant-black.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/screenshot-main.png b/activity_dashboard_mngmnt/static/description/assets/icons/screenshot-main.png new file mode 100644 index 000000000..575f8e676 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/screenshot-main.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/screenshot.png b/activity_dashboard_mngmnt/static/description/assets/icons/screenshot.png new file mode 100644 index 000000000..cef272529 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/screenshot.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/service-black.png b/activity_dashboard_mngmnt/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/service-black.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/skype-fill.svg b/activity_dashboard_mngmnt/static/description/assets/icons/skype-fill.svg new file mode 100644 index 000000000..c17423639 --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/skype-fill.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/skype.png b/activity_dashboard_mngmnt/static/description/assets/icons/skype.png new file mode 100644 index 000000000..51b409fb3 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/skype.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/skype.svg b/activity_dashboard_mngmnt/static/description/assets/icons/skype.svg new file mode 100644 index 000000000..df3dad39b --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/skype.svg @@ -0,0 +1,3 @@ + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/star-1.svg b/activity_dashboard_mngmnt/static/description/assets/icons/star-1.svg new file mode 100644 index 000000000..7e55ab162 --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/star-1.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/star-2.svg b/activity_dashboard_mngmnt/static/description/assets/icons/star-2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/star-2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/support.png b/activity_dashboard_mngmnt/static/description/assets/icons/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/support.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/test-1 - Copy.png b/activity_dashboard_mngmnt/static/description/assets/icons/test-1 - Copy.png new file mode 100644 index 000000000..f6a902663 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/test-1 - Copy.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/test-1.png b/activity_dashboard_mngmnt/static/description/assets/icons/test-1.png new file mode 100644 index 000000000..0908add2b Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/test-1.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/test-2.png b/activity_dashboard_mngmnt/static/description/assets/icons/test-2.png new file mode 100644 index 000000000..4671fe91e Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/test-2.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/trading-black.png b/activity_dashboard_mngmnt/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/trading-black.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/training.png b/activity_dashboard_mngmnt/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/training.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/translate.svg b/activity_dashboard_mngmnt/static/description/assets/icons/translate.svg new file mode 100644 index 000000000..af9c8a1aa --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/translate.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/update.png b/activity_dashboard_mngmnt/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/update.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/user.png b/activity_dashboard_mngmnt/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/user.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/video.png b/activity_dashboard_mngmnt/static/description/assets/icons/video.png new file mode 100644 index 000000000..576705b17 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/video.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/whatsapp.png b/activity_dashboard_mngmnt/static/description/assets/icons/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/whatsapp.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/wrench-icon.svg b/activity_dashboard_mngmnt/static/description/assets/icons/wrench-icon.svg new file mode 100644 index 000000000..174b5a465 --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/assets/icons/wrench-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/activity_dashboard_mngmnt/static/description/assets/icons/wrench.png b/activity_dashboard_mngmnt/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/icons/wrench.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/modules/courier_management.jpg b/activity_dashboard_mngmnt/static/description/assets/modules/courier_management.jpg new file mode 100644 index 000000000..3e4a22c32 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/modules/courier_management.jpg differ diff --git a/activity_dashboard_mngmnt/static/description/assets/modules/cw_sale.png b/activity_dashboard_mngmnt/static/description/assets/modules/cw_sale.png new file mode 100644 index 000000000..1b75c62d5 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/modules/cw_sale.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/modules/cw_stock.png b/activity_dashboard_mngmnt/static/description/assets/modules/cw_stock.png new file mode 100644 index 000000000..62af09ec6 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/modules/cw_stock.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/modules/delivery_split.jpg b/activity_dashboard_mngmnt/static/description/assets/modules/delivery_split.jpg new file mode 100644 index 000000000..76724ebda Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/modules/delivery_split.jpg differ diff --git a/activity_dashboard_mngmnt/static/description/assets/modules/multi_product_return_from_website.jpg b/activity_dashboard_mngmnt/static/description/assets/modules/multi_product_return_from_website.jpg new file mode 100644 index 000000000..7f2cc2ab5 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/modules/multi_product_return_from_website.jpg differ diff --git a/activity_dashboard_mngmnt/static/description/assets/modules/purchase_history_of_product.jpg b/activity_dashboard_mngmnt/static/description/assets/modules/purchase_history_of_product.jpg new file mode 100644 index 000000000..dab7b184c Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/modules/purchase_history_of_product.jpg differ diff --git a/activity_dashboard_mngmnt/static/description/assets/screenshots/1.png b/activity_dashboard_mngmnt/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..840d50457 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/screenshots/1.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/screenshots/10.png b/activity_dashboard_mngmnt/static/description/assets/screenshots/10.png new file mode 100644 index 000000000..cec86f5a6 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/screenshots/10.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/screenshots/2.png b/activity_dashboard_mngmnt/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..dd1a0b400 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/screenshots/2.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/screenshots/3.png b/activity_dashboard_mngmnt/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..00869c653 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/screenshots/3.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/screenshots/4.png b/activity_dashboard_mngmnt/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..af76ad9b5 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/screenshots/4.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/screenshots/5.png b/activity_dashboard_mngmnt/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..b88e4ffb9 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/screenshots/5.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/screenshots/6.png b/activity_dashboard_mngmnt/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..624671afe Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/screenshots/6.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/screenshots/7.png b/activity_dashboard_mngmnt/static/description/assets/screenshots/7.png new file mode 100644 index 000000000..7117b2490 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/screenshots/7.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/screenshots/8.png b/activity_dashboard_mngmnt/static/description/assets/screenshots/8.png new file mode 100644 index 000000000..014b3eca5 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/screenshots/8.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/screenshots/9.png b/activity_dashboard_mngmnt/static/description/assets/screenshots/9.png new file mode 100644 index 000000000..2112e9967 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/screenshots/9.png differ diff --git a/activity_dashboard_mngmnt/static/description/assets/screenshots/Gif.gif b/activity_dashboard_mngmnt/static/description/assets/screenshots/Gif.gif new file mode 100644 index 000000000..5476f7d8a Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/assets/screenshots/Gif.gif differ diff --git a/activity_dashboard_mngmnt/static/description/icon.png b/activity_dashboard_mngmnt/static/description/icon.png new file mode 100644 index 000000000..275292bf7 Binary files /dev/null and b/activity_dashboard_mngmnt/static/description/icon.png differ diff --git a/activity_dashboard_mngmnt/static/description/index.html b/activity_dashboard_mngmnt/static/description/index.html new file mode 100644 index 000000000..2d83bd5f6 --- /dev/null +++ b/activity_dashboard_mngmnt/static/description/index.html @@ -0,0 +1,1153 @@ + + + + + + Odoo App 3 Index + + + + + + + + + + +
+
+ + + +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+
+

+ Dashboard for Streamlined Management of All Activities +

+

Activity Management +

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

Key + Highlights

+
+
+
+
+ +
+
+ Provides Activity + Dashboard +
+

+

+
+
+
+
+
+ +
+
+ Manages origin of activity. +
+

+

+
+
+
+
+ +
+
+
+ Activity Management +

+ Are you ready to make your business more + organized? +
Improve now! +

+ +
+
+ +
+
+
+ + + +
+
+ +
+
+
+
+ acc_bg +
+ +
+
+
+
+

+ Activity Dashboard + View +

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

+ Activity + Management +

+
+
+

+ List view of Planned, Today's, + Completed and Overdue Activities. +

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

+ Tile + View +

+
+
+

+ Clicking any tile will navigate to its corresponding view. +

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

+ List view + of corresponding tile +

+
+
+

+

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

+ Click View button + in List view +

+
+
+

+

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

+ + View +

+
+
+

+ It leads to the form view of corresponding + activity. +

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

+ Click Origin button + in List view +

+
+
+

+

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

+ origin + View +

+
+
+

+ It leads to the origin of corresponding + activity. +

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

+ Activity + Tag +

+
+
+

+ Navigate to Activity Tag under Configuration to create new Tags. +

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

+ Activity + Types +

+
+
+

+ Navigate to Activity Type under Configuration to create new Activity + Types

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

+ Delivers + comprehensive Activity insights through a + Dashboard. +

+
+
+

+

+
+
+
+
+
+
+
+ +
+

+ Effectively + orchestrates the Source of Activities.

+
+
+

+

+
+
+
+
+
+
+
+ +
+

+ Facilitates + Activity Tags for efficient categorization. +

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

+ From the activity list view, you can click the "View" button + next to any activity to open its detailed form view. +

+
+
+ +
+ +
+

+ To create new tags or types, go to the Configuration menu + and navigate to Activity Tags or Activity Types + respectively. +

+
+
+ +
+ +
+

+ The Activity Dashboard provides a visual overview of + planned, completed, overdue, and today’s activities, making + it easier to track and manage daily tasks efficiently. +

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

+ Latest Release 18.0.1.0.0 +

+ + 19th April, 2025 + +
+
+
+
+
+ Add +
+
+
+
    +
  • + Initial commit for Activity Management +
  • + +
+
+
+
+
+
+
+
+
+
+ + + +
+

+ Related Products +

+ +
+ + +
+

+ Our Services

+ +
+ +
+
+ .... +
+
+ +
+ + +
+
+ + + + + + diff --git a/activity_dashboard_mngmnt/static/src/css/dashboard.css b/activity_dashboard_mngmnt/static/src/css/dashboard.css new file mode 100644 index 000000000..50670d92f --- /dev/null +++ b/activity_dashboard_mngmnt/static/src/css/dashboard.css @@ -0,0 +1,90 @@ +p, span, a, ul, li, button { + font-size: inherit; + font-weight: inherit; + line-height: inherit; +} + +strong { + font-weight: 600; +} + +.head { + line-height: 1.5em; + font-weight: 300; +} + +strong { + font-weight: 400; +} + +.sub_title { + font-size: 14px; +} + +.sub_title div span { + font-weight: 600; +} + +.chart #canvas_graph { + height: 400px !important; +} + +.highcharts-background { + fill: none; +} +.text-mauve{ + padding-right: 10px; + font-size: 30px; + padding-left: 0px; + padding-bottom: 5px; + padding-top: 10px; +} + +.dashboard-card__detail { + flex-grow: 1; + display: flex; + flex-direction: column; + justify-content: center; + padding-left: 0px; + padding-bottom: 5px; + padding-top: 10px; + margin:15px +} + +/* Apply common styles to all tables */ +.table_activity { + width: 100%; + padding: 24px; + background-color: white; + color: #454748; + border-collapse: separate; + margin-top: 20px; /* Adjust the margin-top value as needed */ +} + +/* Apply specific styles to the table headers */ +.table_activity thead { + background-color: #f5f5f5; /* Add a background color to the header */ +} + +/* Apply styles to the table head cells */ +.table_activity th { + text-align: left; /* Adjust text alignment as needed */ +} + +.activity_head{ +font-weight: bold; +font-size: 20px; +} + +.click-view{ +border-radius: 8px; +background-color: #c4c4f2; +width: 100px;height: 35px; +} + +.click-origin-view{ +border-radius: 8px; +background-color: #c4c4f2; +width: 100px; +height: 35px; +} diff --git a/activity_dashboard_mngmnt/static/src/css/material-gauge.css b/activity_dashboard_mngmnt/static/src/css/material-gauge.css new file mode 100644 index 000000000..7f553df9a --- /dev/null +++ b/activity_dashboard_mngmnt/static/src/css/material-gauge.css @@ -0,0 +1,194 @@ +/* + * #### Gauge Component + * + * The standard markup for the component is: + * + *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ *
+ * No + * + * Yes + *
+ *
+ */ + +/* + * First define all of the relevant rules that aren't dependent + * on the size of the gauge. We want to collect the size-depenent + * rules in one place to make it easier to adjust the size. + */ + +.gauge { + position: relative; +} + +.gauge__container { + margin: 0; + padding: 0; + position: absolute; + left: 50%; + overflow: hidden; + text-align: center; + -webkit-transform: translateX(-50%); + -moz-transform: translateX(-50%); + -ms-transform: translateX(-50%); + -o-transform: translateX(-50%); + transform: translateX(-50%); +} + +.gauge__background { + z-index: 0; + position: absolute; + background-color: #d8f0de; + top: 0; + border-radius: 300px 300px 0 0; +} + +.gauge__data { + z-index: 1; + position: absolute; + background-color: #00c29d; + margin-left: auto; + margin-right: auto; + border-radius: 300px 300px 0 0; + -webkit-transform-origin: center bottom; + -moz-transform-origin: center bottom; + -ms-transform-origin: center bottom; + -o-transform-origin: center bottom; + transform-origin: center bottom; +} + +.gauge__center { + z-index: 2; + position: absolute; + background-color: #f9f9f9; + margin-right: auto; + border-radius: 300px 300px 0 0; +} + +.gauge__marker { + z-index: 3; + background-color: #fff; + position: absolute; + width: 1px; +} + +.gauge__needle { + z-index: 4; + background-color: #21242c; + height: 3px; + position: absolute; + -webkit-transform-origin: left center; + -moz-transform-origin: left center; + -ms-transform-origin: left center; + -o-transform-origin: left center; + transform-origin: left center; +} + +.gauge__labels { + display: table; + margin: 0 auto; + position: relative; +} + +.gauge__label--low { + display: table-cell; + text-align: center; + color: #00c29d; +} + +.gauge__label--spacer { + display: table-cell; +} + +.gauge__label--high { + display: table-cell; + text-align: center; + color: #979f99; +} + +/* + * Now define the rules that depend on the size of + * the gauge. We start with sizing for a small mobile + * device. + */ + +.gauge { height: calc(120px + 3em); } +.gauge__container { width: 240px; height: 120px; } +.gauge__marker { height: 120px; left: 119.5px; } +.gauge__background { width: 240px; height: 120px; } +.gauge__center { width: 144px; height: 72px; top: 48px; margin-left: 48px; } +.gauge__data { width: 240px; height: 120px; } +.gauge__needle { left: 120px; top: 117px; width: 120px; } +.gauge__labels { top: 120px; width: 240px; } +.gauge__label--low { width: 48px; } +.gauge__label--spacer { width: 144px; } +.gauge__label--high { width: 48px; } + +/* + * Increase the gauge size slightly on larger viewports. + */ + + @media only screen and (min-width: 400px) { + .gauge { height: calc(150px + 3em); } + .gauge__container { width: 300px; height: 150px; } + .gauge__marker { height: 150px; left: 149.5px; } + .gauge__background { width: 300px; height: 150px; } + .gauge__center { width: 180px; height: 90px; top: 60px; margin-left: 60px; } + .gauge__data { width: 300px; height: 150px; } + .gauge__needle { left: 150px; top: 147px; width: 150px; } + .gauge__labels { top: 160px; width: 300px; font-size: 20px;} + .gauge__label--low { width: 60px; } + .gauge__label--spacer { width: 180px; } + .gauge__label--high { width: 60px; } +} + +/* + * As an option, the `gauge--liveupdate` class can be added + * to the main gauge element. When this class is present, + * we add a transition that animates any changes to the gauge + * value. Currently, the app does not use this option because + * all the inputs that can change gauge values are present + * on tab panels that are different from the gauge itself. + * Therefore, users won't be able to see any gauge changes + * when they make input changes. The code is available, though, + * should this change. + */ + +.gauge--liveupdate .gauge__data, +.gauge--liveupdate .gauge__needle { + -webkit-transition: all 1s ease-in-out; + -moz-transition: all 1s ease-in-out; + -ms-transition: all 1s ease-in-out; + -o-transition: all 1s ease-in-out; + transition: all 1s ease-in-out; +} + +/* + * For a given gauge value, x, ranging from 0.0 to 1.0, set + * the `transform: rotate()` property according to the + * following equation: `-0.5 + 0.5x turns` The default + * properties below represent an x value of 0. + */ + +.gauge__data { + -webkit-transform: rotate(-.50turn); + -moz-transform: rotate(-.50turn); + -ms-transform: rotate(-.50turn); + -o-transform: rotate(-.50turn); + transform: rotate(-.50turn); +} +.gauge__needle { + -webkit-transform: rotate(-.50turn); + -moz-transform: rotate(-.50turn); + -ms-transform: rotate(-.50turn); + -o-transform: rotate(-.50turn); + transform: rotate(-.50turn); +} diff --git a/activity_dashboard_mngmnt/static/src/css/style.scss b/activity_dashboard_mngmnt/static/src/css/style.scss new file mode 100644 index 000000000..1b76379da --- /dev/null +++ b/activity_dashboard_mngmnt/static/src/css/style.scss @@ -0,0 +1,55 @@ +.o_action_manager { + direction: ltr; + webkit-box-flex: 1; + webkit-flex: 1 1 auto; + flex: 1 1 auto; + overflow: scroll !important; +} +.activity-dashboard-card { + display: flex; + flex-direction: row; /* Change to row for linear arrangement */ + justify-content: center; + border-radius: 0.3rem; + padding: 1.7rem 1.5rem 1.5rem 1.5rem; + margin: 1rem auto; + height: 100px; + cursor: pointer; + align-items: center; + box-sizing: border-box; + border-radius: 10px; + font-size: 35px; +} + + +.activity-dashboard-card__icon-container { + height: 50px; + border-radius: 50%; +} +.my_activity { + background-color: #229db9; +} +.all_activity{ + background: #88dfdf; +} +.planned_activity { + background-color: #e8c5ac; +} +.completed_activity{ + background: #a7a1f4; +} + +.today_activity{ + background: #f3bdf4; +} +.overdue_activity { + background-color: #a2d2fb; +} +.cancelled_activity{ + background: #beeecc; +} +.activity_type { + background-color: #ecb9b9; +} +.dashboard_main_section { + margin: 20px; +} diff --git a/activity_dashboard_mngmnt/static/src/js/activity_dashboard.js b/activity_dashboard_mngmnt/static/src/js/activity_dashboard.js new file mode 100644 index 000000000..8aa99f138 --- /dev/null +++ b/activity_dashboard_mngmnt/static/src/js/activity_dashboard.js @@ -0,0 +1,204 @@ +/** @odoo-module **/ +import { registry } from "@web/core/registry"; +import { useService } from "@web/core/utils/hooks"; +import { Layout } from "@web/search/layout"; +import { Component, onWillStart } from "@odoo/owl"; +import { _t } from "@web/core/l10n/translation"; +export class ActivityDashboard extends Component { + setup() { + super.setup(); + this.orm = useService('orm'); + onWillStart(async () => await this.render_dashboards()); + } + async render_dashboards (ev) { + //Method for rendering dashboard. + var self = this; + const planned_activity = await self.orm.call('mail.activity', + 'search_read', [], { + domain: [["state", "=", 'planned']] + }); + const today_activity = await self.orm.call('mail.activity', + 'search_read', [], { + domain: [["state", "=", 'today']] + }); + const overdue_activity = await self.orm.call('mail.activity', + 'search_read', [], { + domain: [["state", "=", 'overdue']] + }); + const done_activity = await self.orm.call('mail.activity', + 'search_read', [], + { + domain: [["state", "=", 'done'],['active','in',[true,false]]] + }); + const activity_type = await self.orm.call('mail.activity.type', + 'search_count', [], + {domain:[]}) + self.len_all= planned_activity.length+done_activity + .length+today_activity.length+overdue_activity.length + self.len_planned=planned_activity.length + self.len_done=done_activity.length + self.len_today=today_activity.length + self.len_overdue=overdue_activity.length + self.done_activity=done_activity + self.planned_activity=planned_activity + self.today_activity=today_activity + self.overdue_activity=overdue_activity + self.activity_type=await self.orm.call('mail.activity.type', + 'search_count', [], + {domain:[]}); + } + /** + * Event handler to open the list of all activities. + */ + show_all_activities(e) { + e.stopPropagation(); + e.preventDefault(); + var options = { + on_reverse_breadcrumb: self.on_reverse_breadcrumb, + }; + this.env.services.action.doAction({ + name: _t("All Activities"), + type: 'ir.actions.act_window', + res_model: 'mail.activity', + view_mode: 'list,form', + domain: [['active', 'in', [true,false]]], + views: [[false, 'list'], [false, 'form']], + view_mode: 'form', + target: 'current' + }, options); + } + /** + * Event handler to open the list of planned activities. + */ + show_planned_activities(e) { + e.stopPropagation(); + e.preventDefault(); + var options = { + on_reverse_breadcrumb: self.on_reverse_breadcrumb, + }; + this.env.services.action.doAction({ + name: _t("Planned Activities"), + type: 'ir.actions.act_window', + res_model: 'mail.activity', + domain: [['state', '=', 'planned']], + view_mode: 'list,form', + views: [[false, 'list'], [false, 'form']], + view_mode: 'form', + target: 'current' + }, options); + } + /** + * Event handler to open the list of completed activities. + */ + show_completed_activities(e) { + e.stopPropagation(); + e.preventDefault(); + var options = { + on_reverse_breadcrumb: self.on_reverse_breadcrumb, + }; + this.env.services.action.doAction({ + name: _t("Completed Activities"), + type: 'ir.actions.act_window', + res_model: 'mail.activity', + domain: [['state', '=', 'done'],['active','in',[true,false]]], + view_mode: 'list,form', + views: [[false, 'list'], [false, 'form']], + view_mode: 'form', + target: 'current' + }, options); + } + /** + * Event handler to open the list of today's activities. + */ + show_today_activities(e) { + e.stopPropagation(); + e.preventDefault(); + var options = { + on_reverse_breadcrumb: self.on_reverse_breadcrumb, + }; + this.env.services.action.doAction({ + name: _t("Today's Activities"), + type: 'ir.actions.act_window', + res_model: 'mail.activity', + domain: [['state', '=', 'today']], + view_mode: 'list,form', + views: [[false, 'list'], [false, 'form']], + view_mode: 'form', + target: 'current' + }, options); + }/** + * Event handler to open the list of overdue activities. + */ + show_overdue_activities(e) { + e.stopPropagation(); + e.preventDefault(); + var options = { + on_reverse_breadcrumb: self.on_reverse_breadcrumb, + }; + this.env.services.action.doAction({ + name: _t("Overdue Activities"), + type: 'ir.actions.act_window', + res_model: 'mail.activity', + domain: [['state', '=', 'overdue']], + view_mode: 'list,form', + views: [[false, 'list'], [false, 'form']], + view_mode: 'form', + target: 'current' + }, options); + } + /** + * Event handler to open the list of activity types. + */ + show_activity_types(e) { + e.stopPropagation(); + e.preventDefault(); + var options = { + on_reverse_breadcrumb: self.on_reverse_breadcrumb, + }; + this.env.services.action.doAction({ + name: _t("Activity Type"), + type: 'ir.actions.act_window', + res_model: 'mail.activity.type', + view_mode: 'list,form', + views: [[false, 'list'], [false, 'form']], + view_mode: 'form', + target: 'current' + }, options); + } + /** + * Event handler for view button click. + */ + click_view(e) { + var id = e.target.value; + this.env.services.action.doAction({ + type: 'ir.actions.act_window', + name: 'All Activity', + res_model: 'mail.activity', + res_id: parseInt(id), + views: [[false, 'form']], + view_mode: 'form', + target: 'current' + }); + } + /** + * Event handler for view button click. + */ + async click_origin(e) { + var id = e.target.value; + var self = this; + var result =await self.orm.call('mail.activity', 'get_activity', + [0,parseInt(id)],{}) + self.env.services.action.doAction({ + type: 'ir.actions.act_window', + name: 'Activity Origin', + res_model: result.model, + res_id: result.res_id, + views: [[false, 'form']], + view_mode: 'form', + target: 'current' + }); + } +} +ActivityDashboard.template = "ActivityDashboard"; +ActivityDashboard.components = { Layout }; +registry.category("actions").add("activity_dashboard", ActivityDashboard); diff --git a/activity_dashboard_mngmnt/static/src/xml/activity_dashboard_template.xml b/activity_dashboard_mngmnt/static/src/xml/activity_dashboard_template.xml new file mode 100644 index 000000000..6e3db53d3 --- /dev/null +++ b/activity_dashboard_mngmnt/static/src/xml/activity_dashboard_template.xml @@ -0,0 +1,336 @@ + + + + +
+
+

Activity Dashboard

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

All Activities

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

Planned Activities

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

Completed Activities

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

Today's Activities

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

Overdue Activities

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

Activity Types

+
+
+
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Planned + Activities +
No Data Available
NameActivity TypeAssigned toDead Line DateViewOrigin
+ + + + + + + + + + + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Today's + Activities +
No Data Available
NameActivity TypeAssigned toDead Line DateViewOrigin
+ + + + + + + + + + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Completed + Activities +
No Data Available
NameActivity TypeAssigned toDead Line DateViewOrigin
+ + + + + + + + + + + +
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Overdue + Activities +
No Data Available
NameActivity TypeAssigned toDead Line DateViewOrigin
+ + + + + + + + + + + +
+
+ + diff --git a/activity_dashboard_mngmnt/views/activity_dashbord_views.xml b/activity_dashboard_mngmnt/views/activity_dashbord_views.xml new file mode 100644 index 000000000..d909f1e38 --- /dev/null +++ b/activity_dashboard_mngmnt/views/activity_dashbord_views.xml @@ -0,0 +1,15 @@ + + + + + Dashboard + activity_dashboard + current + + + + diff --git a/activity_dashboard_mngmnt/views/activity_tag_views.xml b/activity_dashboard_mngmnt/views/activity_tag_views.xml new file mode 100644 index 000000000..fa26509de --- /dev/null +++ b/activity_dashboard_mngmnt/views/activity_tag_views.xml @@ -0,0 +1,68 @@ + + + + + activity.tag.view.form + activity.tag + +
+ +
+
+ + + + + +
+
+
+
+ + + activity.tag.view.tree + activity.tag + + + + + + + + + + Activity Tag + activity.tag + list,form + +

+ No tags found. Let's create one! +

+

+ Tags are perfect to categorize. +

+
+
+ + + + + + + + +
diff --git a/activity_dashboard_mngmnt/views/mail_activity_views.xml b/activity_dashboard_mngmnt/views/mail_activity_views.xml new file mode 100644 index 000000000..2abfa8b1b --- /dev/null +++ b/activity_dashboard_mngmnt/views/mail_activity_views.xml @@ -0,0 +1,69 @@ + + + + + mail.activity.view.form + mail.activity + +
+
+ +
+ + + + + + + + + + + + + + + + +
+
+
+ + + mail.activity.view.tree.inherit.activity.dashboard + .mngmnt + + mail.activity + + + + + + + + + + + + +