diff --git a/app_category_view/README.rst b/app_category_view/README.rst new file mode 100755 index 000000000..454bc0b5a --- /dev/null +++ b/app_category_view/README.rst @@ -0,0 +1,47 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +App Category View +================ +This module helps you to style home screen dashboard accorindg to category you give + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +Credits +------- +* Developers: Cybrosys Techno Solutions odoo@cybrosys.com + Version 16: Mruthul @cybrosys + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + +License +------- +General Public License, Version 3 (AGPL v3). +(http://www.gnu.org/licenses/agpl-3.0-standalone.html) + +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/app_category_view/__init__.py b/app_category_view/__init__.py new file mode 100644 index 000000000..d7fdeb02b --- /dev/null +++ b/app_category_view/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Mruthul (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/app_category_view/__manifest__.py b/app_category_view/__manifest__.py new file mode 100644 index 000000000..480e0ca34 --- /dev/null +++ b/app_category_view/__manifest__.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Mruthul (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': 'App Category View', + 'version': '16.0.1.0.0', + 'category': 'Extra Tools', + 'summary': 'Make Apps category wise as you need', + 'description': 'The "App Category View" app allows users to efficiently' + 'categorize and organize the apps based on specific ' + 'category.', + 'author': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solution', + 'company': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'license': 'AGPL-3', + 'depends': ['base', 'web_enterprise'], + 'data': ['security/ir.model.access.csv', + 'data/ir_sequence.xml', + 'views/ir_app_category_views.xml', + ], + 'assets': { + 'web.assets_backend': [ + 'app_category_view/static/src/xml/home_dashboard_templates.xml', + 'app_category_view/static/src/js/home_menu.js', + 'app_category_view/static/src/js/app_move.js', + 'app_category_view/static/src/css/home_dashboard.css']}, + 'images': [ + 'static/description/banner.jpg' + ], + 'installable': True, + 'application': False, + 'auto_install': False, +} diff --git a/app_category_view/data/ir_sequence.xml b/app_category_view/data/ir_sequence.xml new file mode 100644 index 000000000..3336b68e3 --- /dev/null +++ b/app_category_view/data/ir_sequence.xml @@ -0,0 +1,10 @@ + + + + + App Category + ir.app.category + True + 1 + + diff --git a/app_category_view/doc/RELEASE_NOTES.md b/app_category_view/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..d57ce58f2 --- /dev/null +++ b/app_category_view/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 21.12.2023 +#### Version 16.0.1.0.0 +##### ADD +- Initial Commit for App Category View diff --git a/app_category_view/models/__init__.py b/app_category_view/models/__init__.py new file mode 100644 index 000000000..51f689aa8 --- /dev/null +++ b/app_category_view/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Mruthul (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 ir_app_category diff --git a/app_category_view/models/ir_app_category.py b/app_category_view/models/ir_app_category.py new file mode 100644 index 000000000..49dd7f872 --- /dev/null +++ b/app_category_view/models/ir_app_category.py @@ -0,0 +1,118 @@ +"""Modle for app category""" +# -*- coding: utf-8 -*- +################################################################################ +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies(). +# Author: Mruthul (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +################################################################################ +from odoo import _, api, fields, models +from odoo.exceptions import UserError + + +class IrAppCategory(models.Model): + """ + Model representing the category of installed apps in the home menu. + """ + _name = 'ir.app.category' + _description = 'category' + + name = fields.Char(string='Name', help='Enter category name') + installed_apps_ids = fields.Many2many('ir.ui.menu', + string='Apps Installed', + domain=[('parent_id', '=', False)], + help="You can add the installed apps " + "to display under the category " + "here", required=True) + sequence = fields.Integer(string="Sequence", help='Number sequence') + + @api.constrains('name') + def name_check(self): + """Check the same category name""" + names = self.env['ir.app.category'].search([]).mapped('name') + print(names) + if self.name in names: + existing_category = self.search([('name', '=', self.name)]) + if len(existing_category) > 1: + raise UserError( + _('Try different name,Already a category in this name')) + else: + pass + + @api.model + def create(self, vals): + """The `sequence` field will be automatically set to the next value in + the 'ir.sequence' sequence for 'ir.app.category.' + + :param vals: A dictionary of field values for the new record + :return: the new 'ir.app.category' Creates a new app category record. + """ + vals['sequence'] = self.env['ir.sequence'].next_by_code( + 'ir.app.category') + return super(IrAppCategory, self).create(vals) + + @api.model + def get_home_dashboard(self): + """Return the home dashboard configuration as a list of dictionaries. + + Each dictionary contains information about a category, including its + name and the IDs of the installed apps associated with it. The + categories are sorted by their sequence attribute. + Returns: + list: A list of dictionaries containing category information. + """ + categories = self.env['ir.app.category'].search([], order='sequence') + return [{'name': record.name, + 'installed_apps': record.installed_apps_ids.ids} for record in + categories] + + @api.model + def get_other_apps(self): + """Retrieve the IDs of apps that are not assigned to any category. + Returns: + list: List of IDs unassigned apps. + """ + installed_apps = self.env['ir.app.category'].search( + []).installed_apps_ids.ids + return self.env['ir.ui.menu'].search( + [('id', 'not in', installed_apps), ('parent_id', '=', False)]).ids + + @api.model + def apps_switching(self, menu_1, menu_2): + """Switches the sequence of two app menu items.""" + menu_item_1 = self.env['ir.ui.menu'].browse(int(menu_1)) + menu_item_2 = self.env['ir.ui.menu'].browse(int(menu_2)) + menu_item_1.sequence, menu_item_2.sequence = menu_item_2.sequence, menu_item_1.sequence + + @api.model + def category_change(self, menu_id, category_name): + """Moves an app from its current category to a new category.""" + current_category = self.env['ir.app.category'].search( + [('installed_apps_ids', 'in', int(menu_id))]) + if category_name != 'OtherApps': + category_id = self.env['ir.app.category'].search( + [('name', '=', category_name)]) + if category_id: + if current_category: + current_category.write( + {'installed_apps_ids': [(3, int(menu_id))]}) + category_id.write({'installed_apps_ids': [(4, int(menu_id))]}) + elif current_category: + current_category.write( + {'installed_apps_ids': [(3, int(menu_id))]}) + else: + current_category.write({'installed_apps_ids': [(3, int(menu_id))]}) diff --git a/app_category_view/security/ir.model.access.csv b/app_category_view/security/ir.model.access.csv new file mode 100644 index 000000000..c9fc11400 --- /dev/null +++ b/app_category_view/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_ir_app_category,access.ir.app.category,model_ir_app_category,base.group_user,1,1,1,1 diff --git a/app_category_view/static/description/assets/icons/check.png b/app_category_view/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/app_category_view/static/description/assets/icons/check.png differ diff --git a/app_category_view/static/description/assets/icons/chevron.png b/app_category_view/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/app_category_view/static/description/assets/icons/chevron.png differ diff --git a/app_category_view/static/description/assets/icons/cogs.png b/app_category_view/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/app_category_view/static/description/assets/icons/cogs.png differ diff --git a/app_category_view/static/description/assets/icons/consultation.png b/app_category_view/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/app_category_view/static/description/assets/icons/consultation.png differ diff --git a/app_category_view/static/description/assets/icons/ecom-black.png b/app_category_view/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/app_category_view/static/description/assets/icons/ecom-black.png differ diff --git a/app_category_view/static/description/assets/icons/education-black.png b/app_category_view/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/app_category_view/static/description/assets/icons/education-black.png differ diff --git a/app_category_view/static/description/assets/icons/hotel-black.png b/app_category_view/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/app_category_view/static/description/assets/icons/hotel-black.png differ diff --git a/app_category_view/static/description/assets/icons/license.png b/app_category_view/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/app_category_view/static/description/assets/icons/license.png differ diff --git a/app_category_view/static/description/assets/icons/lifebuoy.png b/app_category_view/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/app_category_view/static/description/assets/icons/lifebuoy.png differ diff --git a/app_category_view/static/description/assets/icons/manufacturing-black.png b/app_category_view/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/app_category_view/static/description/assets/icons/manufacturing-black.png differ diff --git a/app_category_view/static/description/assets/icons/pos-black.png b/app_category_view/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/app_category_view/static/description/assets/icons/pos-black.png differ diff --git a/app_category_view/static/description/assets/icons/puzzle.png b/app_category_view/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/app_category_view/static/description/assets/icons/puzzle.png differ diff --git a/app_category_view/static/description/assets/icons/restaurant-black.png b/app_category_view/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/app_category_view/static/description/assets/icons/restaurant-black.png differ diff --git a/app_category_view/static/description/assets/icons/service-black.png b/app_category_view/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/app_category_view/static/description/assets/icons/service-black.png differ diff --git a/app_category_view/static/description/assets/icons/trading-black.png b/app_category_view/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/app_category_view/static/description/assets/icons/trading-black.png differ diff --git a/app_category_view/static/description/assets/icons/training.png b/app_category_view/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/app_category_view/static/description/assets/icons/training.png differ diff --git a/app_category_view/static/description/assets/icons/update.png b/app_category_view/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/app_category_view/static/description/assets/icons/update.png differ diff --git a/app_category_view/static/description/assets/icons/user.png b/app_category_view/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/app_category_view/static/description/assets/icons/user.png differ diff --git a/app_category_view/static/description/assets/icons/wrench.png b/app_category_view/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/app_category_view/static/description/assets/icons/wrench.png differ diff --git a/app_category_view/static/description/assets/misc/categories.png b/app_category_view/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/app_category_view/static/description/assets/misc/categories.png differ diff --git a/app_category_view/static/description/assets/misc/check-box.png b/app_category_view/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/app_category_view/static/description/assets/misc/check-box.png differ diff --git a/app_category_view/static/description/assets/misc/compass.png b/app_category_view/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/app_category_view/static/description/assets/misc/compass.png differ diff --git a/app_category_view/static/description/assets/misc/corporate.png b/app_category_view/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/app_category_view/static/description/assets/misc/corporate.png differ diff --git a/app_category_view/static/description/assets/misc/customer-support.png b/app_category_view/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/app_category_view/static/description/assets/misc/customer-support.png differ diff --git a/app_category_view/static/description/assets/misc/cybrosys-logo.png b/app_category_view/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/app_category_view/static/description/assets/misc/cybrosys-logo.png differ diff --git a/app_category_view/static/description/assets/misc/features.png b/app_category_view/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/app_category_view/static/description/assets/misc/features.png differ diff --git a/app_category_view/static/description/assets/misc/logo.png b/app_category_view/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/app_category_view/static/description/assets/misc/logo.png differ diff --git a/app_category_view/static/description/assets/misc/pictures.png b/app_category_view/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/app_category_view/static/description/assets/misc/pictures.png differ diff --git a/app_category_view/static/description/assets/misc/pie-chart.png b/app_category_view/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/app_category_view/static/description/assets/misc/pie-chart.png differ diff --git a/app_category_view/static/description/assets/misc/right-arrow.png b/app_category_view/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/app_category_view/static/description/assets/misc/right-arrow.png differ diff --git a/app_category_view/static/description/assets/misc/star.png b/app_category_view/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/app_category_view/static/description/assets/misc/star.png differ diff --git a/app_category_view/static/description/assets/misc/support.png b/app_category_view/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/app_category_view/static/description/assets/misc/support.png differ diff --git a/app_category_view/static/description/assets/misc/whatsapp.png b/app_category_view/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/app_category_view/static/description/assets/misc/whatsapp.png differ diff --git a/app_category_view/static/description/assets/modules/1.png b/app_category_view/static/description/assets/modules/1.png new file mode 100644 index 000000000..ed175b076 Binary files /dev/null and b/app_category_view/static/description/assets/modules/1.png differ diff --git a/app_category_view/static/description/assets/modules/2.png b/app_category_view/static/description/assets/modules/2.png new file mode 100644 index 000000000..a3194264c Binary files /dev/null and b/app_category_view/static/description/assets/modules/2.png differ diff --git a/app_category_view/static/description/assets/modules/3.png b/app_category_view/static/description/assets/modules/3.png new file mode 100644 index 000000000..e894393ef Binary files /dev/null and b/app_category_view/static/description/assets/modules/3.png differ diff --git a/app_category_view/static/description/assets/modules/4.png b/app_category_view/static/description/assets/modules/4.png new file mode 100644 index 000000000..f3c986fc1 Binary files /dev/null and b/app_category_view/static/description/assets/modules/4.png differ diff --git a/app_category_view/static/description/assets/modules/5.png b/app_category_view/static/description/assets/modules/5.png new file mode 100644 index 000000000..b21837312 Binary files /dev/null and b/app_category_view/static/description/assets/modules/5.png differ diff --git a/app_category_view/static/description/assets/modules/6.png b/app_category_view/static/description/assets/modules/6.png new file mode 100644 index 000000000..e64a5b55c Binary files /dev/null and b/app_category_view/static/description/assets/modules/6.png differ diff --git a/app_category_view/static/description/assets/screenshots/categories.png b/app_category_view/static/description/assets/screenshots/categories.png new file mode 100644 index 000000000..98fbaa29f Binary files /dev/null and b/app_category_view/static/description/assets/screenshots/categories.png differ diff --git a/app_category_view/static/description/assets/screenshots/category.png b/app_category_view/static/description/assets/screenshots/category.png new file mode 100644 index 000000000..22b5389ce Binary files /dev/null and b/app_category_view/static/description/assets/screenshots/category.png differ diff --git a/app_category_view/static/description/assets/screenshots/hero.gif b/app_category_view/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..ae18899c4 Binary files /dev/null and b/app_category_view/static/description/assets/screenshots/hero.gif differ diff --git a/app_category_view/static/description/assets/screenshots/menu.png b/app_category_view/static/description/assets/screenshots/menu.png new file mode 100644 index 000000000..11b6473b7 Binary files /dev/null and b/app_category_view/static/description/assets/screenshots/menu.png differ diff --git a/app_category_view/static/description/assets/screenshots/scrnli_01_09_2023_15-41-35.gif b/app_category_view/static/description/assets/screenshots/scrnli_01_09_2023_15-41-35.gif new file mode 100644 index 000000000..cc89b9954 Binary files /dev/null and b/app_category_view/static/description/assets/screenshots/scrnli_01_09_2023_15-41-35.gif differ diff --git a/app_category_view/static/description/banner.jpg b/app_category_view/static/description/banner.jpg new file mode 100644 index 000000000..7b3807e80 Binary files /dev/null and b/app_category_view/static/description/banner.jpg differ diff --git a/app_category_view/static/description/icon.png b/app_category_view/static/description/icon.png new file mode 100644 index 000000000..8a58627f4 Binary files /dev/null and b/app_category_view/static/description/icon.png differ diff --git a/app_category_view/static/description/index.html b/app_category_view/static/description/index.html new file mode 100644 index 000000000..00e49cd34 --- /dev/null +++ b/app_category_view/static/description/index.html @@ -0,0 +1,647 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ App Category View

+

+ You can personalize apps to different categories as you + wish

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

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

+
+
+
+ This module in Odoo 16 Enterprise home dashboard is a + user-friendly feature that allows users to easily manage their apps and + categories. This module enables users to drag and drop their apps into + different categories, as well as create and rename categories. +
+
+ + + +
+
+ +
+

+ Features +

+
+
+
+
+ + Drag and drop app to other categories +
+
+ + Drag categories to different position +
+
+ + Add app under categories from setting +
+
+
+
+ + Available in Odoo 16 Enterprise. +
+
+
+ + + +
+
+ +
+

+ Screenshots +

+
+
+
+ +
+

+ Create category from App Category +

+ +
+
+

+ Create category +

+ +
+ +
+

+ Created categories will be displayed in the home menu +

+ +
+
+

+ Also, we can drag and drop these apps to different categories and switch their positions +

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

+ Related + Products +

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

+ Our Services +

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

+ Our + Industries +

+
+ +
+
+
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

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

+ Mobile + friendly, + awe-inspiring product pages

+
+
+ +
+
+ +
+ Service Management +
+

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

+
+
+ +
+
+ +
+ Hotel Management +
+

+ An + all-inclusive + hotel management application

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

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? + Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+ +91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/app_category_view/static/src/css/home_dashboard.css b/app_category_view/static/src/css/home_dashboard.css new file mode 100644 index 000000000..7194b647a --- /dev/null +++ b/app_category_view/static/src/css/home_dashboard.css @@ -0,0 +1,84 @@ +.o_home_menu_scrollable{ + align-items: stretch !important; +} +.collapse:not(.show) { + display: none !important; +} +.category-apps { + width: 29%; + position: relative; + backdrop-filter: blur(5px); /* Adjust the blur value to your preference */ + text-align: center; + cursor: pointer; + color: white; + overflow-y: scroll; + max-height: 100%; +} +.ui-state-highlight { + height: 10.5em; line-height: 20px; + background: blue; +} +.apps-sortable-div{ + border: none; + outline: none; + padding: 10px 16px; + cursor: pointer; + font-size: 18px; +} +.active-category, .apps-sortable-div:hover { + background-color: #362f2f38; + color: white; +} +.category-apps::-webkit-scrollbar-track { + padding: 2px 0; + background-color: #0000002b; +} + +.category-apps::-webkit-scrollbar { + width: 10px; +} +.category-apps::-webkit-scrollbar-thumb { + border-radius: 10px; + box-shadow: inset 0 0 6px rgba(0,0,0,.3); + background-color: black; + border: 1px solid #000; +} +@keyframes begindrag { + 0% { + transform: rotate(0deg) + } + 10% { + transform: rotate(-8deg) + } + 30% { + transform: rotate(6deg) + } + 55% { + transform: rotate(-3deg) + } + 80% { + transform: rotate(1deg) + } + 100% { + transform: rotate(-1deg) + } +} +@keyframes bye { + 0% { + transform: scale(1) rotate(-1deg) + } + 50% { + transform: scale(1.1) rotate(-2deg) + } + 100% { + transform: scale(0) rotate(3deg) + } +} +.beginDrag { + animation: begindrag .8s ease forwards; +} +.bye { + opacity: 1; + transition: opacity .5s ease; + animation: bye .4s ease forwards; +} \ No newline at end of file diff --git a/app_category_view/static/src/js/app_move.js b/app_category_view/static/src/js/app_move.js new file mode 100644 index 000000000..890b1ab9d --- /dev/null +++ b/app_category_view/static/src/js/app_move.js @@ -0,0 +1,70 @@ +/** @odoo-module **/ +import { patch } from "@web/core/utils/patch"; +import { HomeMenu } from "@web_enterprise/webclient/home_menu/home_menu" +var rpc = require('web.rpc'); +// Patch the HomeMenu prototype to add draggable_menu functionality +patch(HomeMenu.prototype, "menu_item_draggable.draggable_menu", { + // Call the original setup method and add onMounted hook + setup() { + this._super.apply(); + }, + /** + * Toggle the active class for the clicked category. + */ + _active: async function(ev) { + if (ev.currentTarget.closest('.apps-sortable-div')) { + const currentActiveDiv = ev.currentTarget.closest('.apps-sortable-div'); + const allDivs = currentActiveDiv.parentElement.querySelectorAll('.apps-sortable-div'); + allDivs.forEach(div => { + if (div !== currentActiveDiv) { + div.classList.remove('active-category'); + } + }); + currentActiveDiv.classList.add('active-category'); + } + }, + /** + * Handle the drag start event. + */ + dragStart: async function(e) { + e.dataTransfer.setData('Menu_id', e.target.id) + e.dataTransfer.effectAllowed = 'move'; + e.target.classList.add('beginDrag'); + }, + /** + * Handle the dropped event after dragging. + */ + dropped: async function(e) { + // get new and old index + var dragged_menu = e.dataTransfer.getData('Menu_id') + var previousElement = e.dataTransfer.getData('Element') + var dropped_menu = e.target.id + var categoryName = e.target.attributes[1].nodeValue + if (dragged_menu && dropped_menu) { + e.target.classList.add('bye') + await rpc.query({ + model: 'ir.app.category', + method: 'apps_switching', + args: [dragged_menu, dropped_menu] + }).then(function() { + window.location.reload() + }) + } else if (dragged_menu && categoryName) { + await rpc.query({ + model: 'ir.app.category', + method: 'category_change', + args: [dragged_menu, categoryName] + }).then(function() { + window.location.reload() + }) + } + }, + /** + * Prevent the default behavior of the event. + */ + cancelDefault: async function(e) { + e.preventDefault() + e.stopPropagation() + return false + }, +}); diff --git a/app_category_view/static/src/js/home_menu.js b/app_category_view/static/src/js/home_menu.js new file mode 100644 index 000000000..609da906d --- /dev/null +++ b/app_category_view/static/src/js/home_menu.js @@ -0,0 +1,28 @@ +/**@odoo-module**/ +import { patch } from "@web/core/utils/patch"; +import { url } from "@web/core/utils/urls"; +import { HomeMenu } from "@web_enterprise/webclient/home_menu/home_menu" +const { onMounted } = owl; +var rpc = require('web.rpc'); +patch(HomeMenu.prototype, "home_menu.AppCategory", { + async setup() { + this._super(...arguments); + const self = this; + await rpc.query({ + model: "ir.app.category", + method: "get_home_dashboard", + args: [] + }).then(function(data) { + self.appCategory = data; + self.render(); + }); + await rpc.query({ + model: "ir.app.category", + method: "get_other_apps", + args: [] + }).then(function(otherApps) { + self.otherApps = otherApps; + self.render(); + }); + }, +}); diff --git a/app_category_view/static/src/xml/home_dashboard_templates.xml b/app_category_view/static/src/xml/home_dashboard_templates.xml new file mode 100644 index 000000000..1566e2f0e --- /dev/null +++ b/app_category_view/static/src/xml/home_dashboard_templates.xml @@ -0,0 +1,172 @@ + + + + + + + + + + +
+
+ + + + + + +
+
+
+ + + +
+ +
+
+ + +
+ + +
+ +
+ No Apps +
+
+ + + + + +
+ +
+
+ + + + +
+
+
+
+
+
+ No result +
+ + + diff --git a/app_category_view/views/ir_app_category_views.xml b/app_category_view/views/ir_app_category_views.xml new file mode 100644 index 000000000..a6ff6a7c4 --- /dev/null +++ b/app_category_view/views/ir_app_category_views.xml @@ -0,0 +1,51 @@ + + + + + ir.app.category.view.form + ir.app.category + +
+ + + + + + + + + + +
+
+
+ + + ir.app.category.view.tree + ir.app.category + + + + + + + + + + + + + + App Category + ir.app.category + tree,form + + + +