diff --git a/hide_filters_groupby/README.rst b/hide_filters_groupby/README.rst new file mode 100644 index 000000000..d43ce03bc --- /dev/null +++ b/hide_filters_groupby/README.rst @@ -0,0 +1,46 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +Hide Filters Groupby +===================== +Hide Filters Groupby helps you to hide filter and group by option. + +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 +------- +* Developers: (V15): Rosmy John + +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/hide_filters_groupby/__init__.py b/hide_filters_groupby/__init__.py new file mode 100644 index 000000000..5fb957762 --- /dev/null +++ b/hide_filters_groupby/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### +from . import models diff --git a/hide_filters_groupby/__manifest__.py b/hide_filters_groupby/__manifest__.py new file mode 100644 index 000000000..c57a4b6f5 --- /dev/null +++ b/hide_filters_groupby/__manifest__.py @@ -0,0 +1,53 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### +{ + 'name': 'Hide Filters GroupBy', + 'version': '15.0.1.0.0', + 'category': 'Extra Tools', + 'summary': 'Hide Filters GroupBy Helps You to Hide Filter And' + ' GroupBy Option.', + 'description': 'Hide Filters GroupBy Helps you to Hide Filter and' + ' Group by Option on the Basis of Globally or Custom. On ' + 'Choosing Option Globally Filter and Group by Option of' + ' all Models will be Hide and on Choosing Option Custom,' + ' Filter and Group by Option of all Selected Models will' + ' be Hidden.', + 'author': 'Cybrosys Techno solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['base', 'base_setup', 'web'], + 'data': [ + 'views/res_config_settings_views.xml', + ], + 'assets': { + 'web.assets_backend': [ + 'hide_filters_groupby/static/src/css/hide_filters_groupby.css', + 'hide_filters_groupby/static/src/control_panel/control_panels.js', + ], + }, + 'images': ['static/description/banner.png'], + 'license': 'AGPL-3', + 'installable': True, + 'application': False, + 'auto_install': False, +} diff --git a/hide_filters_groupby/doc/RELEASE_NOTES.md b/hide_filters_groupby/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..c4c76007e --- /dev/null +++ b/hide_filters_groupby/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 25.07.2024 +#### Version 15.0.1.0.0 +#### ADD + - Initial Commit for Hide Filters GroupBy diff --git a/hide_filters_groupby/models/__init__.py b/hide_filters_groupby/models/__init__.py new file mode 100644 index 000000000..73ff7a6d5 --- /dev/null +++ b/hide_filters_groupby/models/__init__.py @@ -0,0 +1,23 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### +from . import ir_http +from . import res_config_settings diff --git a/hide_filters_groupby/models/ir_http.py b/hide_filters_groupby/models/ir_http.py new file mode 100644 index 000000000..1520b893e --- /dev/null +++ b/hide_filters_groupby/models/ir_http.py @@ -0,0 +1,42 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### +from odoo import models + + +class IrHttp(models.AbstractModel): + """This class is used to add additional functionality to the 'ir.http' + model. It inherits from the models.AbstractModel' class, allowing it to + extend the behavior of the 'ir.http' model.""" + _inherit = 'ir.http' + + def session_info(self): + """Get additional session information.""" + res = super(IrHttp, self).session_info() + res['hide_filters_groupby'] = self.env['ir.config_parameter'] \ + .sudo().get_param('hide_filters_groupby.hide_filters_groupby') + res['ir_model_ids'] = self.env[ + 'ir.config_parameter'].sudo().get_param( + 'hide_filters_groupby.ir_model_ids') + res['is_hide_filters_groupby_enabled'] = self.env[ + 'ir.config_parameter'].sudo().get_param( + 'hide_filters_groupby.is_hide_filters_groupby_enabled') + return res diff --git a/hide_filters_groupby/models/res_config_settings.py b/hide_filters_groupby/models/res_config_settings.py new file mode 100644 index 000000000..f685e4240 --- /dev/null +++ b/hide_filters_groupby/models/res_config_settings.py @@ -0,0 +1,63 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions () +# +# This program is free software: you can modify +# it under the terms of the GNU Affero General Public License (AGPL) as +# published by the Free Software Foundation, either version 3 of the +# License, or (at your option) any later version. +# +# 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 for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program. If not, see . +# +############################################################################### +from ast import literal_eval +from odoo import fields, models + + +class ResConfigSettings(models.TransientModel): + """Inheriting ResConfigSettings Model""" + _inherit = 'res.config.settings' + + is_hide_filters_groupby_enabled = fields.Boolean( + string='Hide Filters and Group By Enabled', default=False, + config_parameter='hide_filters_groupby.is_hide_filters_groupby_enabled', + help='If set to True, it enables hiding filters and group by globally.') + hide_filters_groupby = fields.Selection(selection=[ + ('global', 'Globally'), ('custom', 'Custom'), ], + string='Hide Filters and Group By', default='global', + config_parameter='hide_filters_groupby.hide_filters_groupby', + help='Choose the option to hide filters and group by globally or' + ' use custom settings.') + ir_model_ids = fields.Many2many('ir.model', + 'res_config_ir_model_rel', + 'res_config', 'model', + string='Models', + help='Models that are affected by the ' + 'hide filters and group by settings.') + + def set_values(self): + """Update the values of the configuration settings""" + res = super(ResConfigSettings, self).set_values() + self.env['ir.config_parameter'].sudo().set_param( + 'hide_filters_groupby.ir_model_ids', self.ir_model_ids.ids) + return res + + def get_values(self): + """Get the current values for the configuration settings""" + res = super(ResConfigSettings, self).get_values() + ir_model_ids = self.env['ir.config_parameter'].sudo().get_param( + 'hide_filters_groupby.ir_model_ids') + res.update( + ir_model_ids=literal_eval(ir_model_ids) if ir_model_ids else False) + return res + + diff --git a/hide_filters_groupby/static/description/assets/icons/check.png b/hide_filters_groupby/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/hide_filters_groupby/static/description/assets/icons/check.png differ diff --git a/hide_filters_groupby/static/description/assets/icons/chevron.png b/hide_filters_groupby/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/icons/chevron.png differ diff --git a/hide_filters_groupby/static/description/assets/icons/cogs.png b/hide_filters_groupby/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/icons/cogs.png differ diff --git a/hide_filters_groupby/static/description/assets/icons/consultation.png b/hide_filters_groupby/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/hide_filters_groupby/static/description/assets/icons/consultation.png differ diff --git a/hide_filters_groupby/static/description/assets/icons/ecom-black.png b/hide_filters_groupby/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/icons/ecom-black.png differ diff --git a/hide_filters_groupby/static/description/assets/icons/education-black.png b/hide_filters_groupby/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/hide_filters_groupby/static/description/assets/icons/education-black.png differ diff --git a/hide_filters_groupby/static/description/assets/icons/hotel-black.png b/hide_filters_groupby/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/hide_filters_groupby/static/description/assets/icons/hotel-black.png differ diff --git a/hide_filters_groupby/static/description/assets/icons/license.png b/hide_filters_groupby/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/hide_filters_groupby/static/description/assets/icons/license.png differ diff --git a/hide_filters_groupby/static/description/assets/icons/lifebuoy.png b/hide_filters_groupby/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/hide_filters_groupby/static/description/assets/icons/lifebuoy.png differ diff --git a/hide_filters_groupby/static/description/assets/icons/logo.png b/hide_filters_groupby/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/hide_filters_groupby/static/description/assets/icons/logo.png differ diff --git a/hide_filters_groupby/static/description/assets/icons/manufacturing-black.png b/hide_filters_groupby/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/hide_filters_groupby/static/description/assets/icons/manufacturing-black.png differ diff --git a/hide_filters_groupby/static/description/assets/icons/pos-black.png b/hide_filters_groupby/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/icons/pos-black.png differ diff --git a/hide_filters_groupby/static/description/assets/icons/puzzle.png b/hide_filters_groupby/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/icons/puzzle.png differ diff --git a/hide_filters_groupby/static/description/assets/icons/restaurant-black.png b/hide_filters_groupby/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/icons/restaurant-black.png differ diff --git a/hide_filters_groupby/static/description/assets/icons/service-black.png b/hide_filters_groupby/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/hide_filters_groupby/static/description/assets/icons/service-black.png differ diff --git a/hide_filters_groupby/static/description/assets/icons/trading-black.png b/hide_filters_groupby/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/icons/trading-black.png differ diff --git a/hide_filters_groupby/static/description/assets/icons/training.png b/hide_filters_groupby/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/hide_filters_groupby/static/description/assets/icons/training.png differ diff --git a/hide_filters_groupby/static/description/assets/icons/update.png b/hide_filters_groupby/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/hide_filters_groupby/static/description/assets/icons/update.png differ diff --git a/hide_filters_groupby/static/description/assets/icons/user.png b/hide_filters_groupby/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/hide_filters_groupby/static/description/assets/icons/user.png differ diff --git a/hide_filters_groupby/static/description/assets/icons/wrench.png b/hide_filters_groupby/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/hide_filters_groupby/static/description/assets/icons/wrench.png differ diff --git a/hide_filters_groupby/static/description/assets/misc/Cybrosys R.png b/hide_filters_groupby/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/misc/Cybrosys R.png differ diff --git a/hide_filters_groupby/static/description/assets/misc/categories.png b/hide_filters_groupby/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/misc/categories.png differ diff --git a/hide_filters_groupby/static/description/assets/misc/check-box.png b/hide_filters_groupby/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/misc/check-box.png differ diff --git a/hide_filters_groupby/static/description/assets/misc/compass.png b/hide_filters_groupby/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/hide_filters_groupby/static/description/assets/misc/compass.png differ diff --git a/hide_filters_groupby/static/description/assets/misc/corporate.png b/hide_filters_groupby/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/hide_filters_groupby/static/description/assets/misc/corporate.png differ diff --git a/hide_filters_groupby/static/description/assets/misc/customer-support.png b/hide_filters_groupby/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/hide_filters_groupby/static/description/assets/misc/customer-support.png differ diff --git a/hide_filters_groupby/static/description/assets/misc/cybrosys-logo.png b/hide_filters_groupby/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/hide_filters_groupby/static/description/assets/misc/cybrosys-logo.png differ diff --git a/hide_filters_groupby/static/description/assets/misc/features.png b/hide_filters_groupby/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/misc/features.png differ diff --git a/hide_filters_groupby/static/description/assets/misc/logo.png b/hide_filters_groupby/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/hide_filters_groupby/static/description/assets/misc/logo.png differ diff --git a/hide_filters_groupby/static/description/assets/misc/pictures.png b/hide_filters_groupby/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/misc/pictures.png differ diff --git a/hide_filters_groupby/static/description/assets/misc/pie-chart.png b/hide_filters_groupby/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/misc/pie-chart.png differ diff --git a/hide_filters_groupby/static/description/assets/misc/right-arrow.png b/hide_filters_groupby/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/misc/right-arrow.png differ diff --git a/hide_filters_groupby/static/description/assets/misc/star.png b/hide_filters_groupby/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/hide_filters_groupby/static/description/assets/misc/star.png differ diff --git a/hide_filters_groupby/static/description/assets/misc/support.png b/hide_filters_groupby/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/misc/support.png differ diff --git a/hide_filters_groupby/static/description/assets/misc/whatsapp.png b/hide_filters_groupby/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/misc/whatsapp.png differ diff --git a/hide_filters_groupby/static/description/assets/modules/1.jpg b/hide_filters_groupby/static/description/assets/modules/1.jpg new file mode 100644 index 000000000..0b59ec131 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/modules/1.jpg differ diff --git a/hide_filters_groupby/static/description/assets/modules/2.png b/hide_filters_groupby/static/description/assets/modules/2.png new file mode 100644 index 000000000..d3589e8bd Binary files /dev/null and b/hide_filters_groupby/static/description/assets/modules/2.png differ diff --git a/hide_filters_groupby/static/description/assets/modules/3.png b/hide_filters_groupby/static/description/assets/modules/3.png new file mode 100644 index 000000000..4548d977e Binary files /dev/null and b/hide_filters_groupby/static/description/assets/modules/3.png differ diff --git a/hide_filters_groupby/static/description/assets/modules/5.jpg b/hide_filters_groupby/static/description/assets/modules/5.jpg new file mode 100644 index 000000000..14962a750 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/modules/5.jpg differ diff --git a/hide_filters_groupby/static/description/assets/modules/6.jpg b/hide_filters_groupby/static/description/assets/modules/6.jpg new file mode 100644 index 000000000..8b4d469f9 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/modules/6.jpg differ diff --git a/hide_filters_groupby/static/description/assets/modules/automatic_image.png b/hide_filters_groupby/static/description/assets/modules/automatic_image.png new file mode 100644 index 000000000..a49c2a820 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/modules/automatic_image.png differ diff --git a/hide_filters_groupby/static/description/assets/modules/banner.jpg b/hide_filters_groupby/static/description/assets/modules/banner.jpg new file mode 100644 index 000000000..efebcb605 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/modules/banner.jpg differ diff --git a/hide_filters_groupby/static/description/assets/modules/budget_image.png b/hide_filters_groupby/static/description/assets/modules/budget_image.png new file mode 100644 index 000000000..b50130c7d Binary files /dev/null and b/hide_filters_groupby/static/description/assets/modules/budget_image.png differ diff --git a/hide_filters_groupby/static/description/assets/modules/crm_dashboard_image.png b/hide_filters_groupby/static/description/assets/modules/crm_dashboard_image.png new file mode 100644 index 000000000..6547c3081 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/modules/crm_dashboard_image.png differ diff --git a/hide_filters_groupby/static/description/assets/modules/crm_image.png b/hide_filters_groupby/static/description/assets/modules/crm_image.png new file mode 100644 index 000000000..8793336c0 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/modules/crm_image.png differ diff --git a/hide_filters_groupby/static/description/assets/modules/crm_kit_image.png b/hide_filters_groupby/static/description/assets/modules/crm_kit_image.png new file mode 100644 index 000000000..0bbad468d Binary files /dev/null and b/hide_filters_groupby/static/description/assets/modules/crm_kit_image.png differ diff --git a/hide_filters_groupby/static/description/assets/modules/employee_image.png b/hide_filters_groupby/static/description/assets/modules/employee_image.png new file mode 100644 index 000000000..30ad58232 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/modules/employee_image.png differ diff --git a/hide_filters_groupby/static/description/assets/modules/ip_image.png b/hide_filters_groupby/static/description/assets/modules/ip_image.png new file mode 100644 index 000000000..707e2b7ed Binary files /dev/null and b/hide_filters_groupby/static/description/assets/modules/ip_image.png differ diff --git a/hide_filters_groupby/static/description/assets/modules/payable_image.png b/hide_filters_groupby/static/description/assets/modules/payable_image.png new file mode 100644 index 000000000..fd1059dec Binary files /dev/null and b/hide_filters_groupby/static/description/assets/modules/payable_image.png differ diff --git a/hide_filters_groupby/static/description/assets/modules/product_custom_image.png b/hide_filters_groupby/static/description/assets/modules/product_custom_image.png new file mode 100644 index 000000000..9c34fd89f Binary files /dev/null and b/hide_filters_groupby/static/description/assets/modules/product_custom_image.png differ diff --git a/hide_filters_groupby/static/description/assets/modules/salesperson_image.png b/hide_filters_groupby/static/description/assets/modules/salesperson_image.png new file mode 100644 index 000000000..958ed2bf4 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/modules/salesperson_image.png differ diff --git a/hide_filters_groupby/static/description/assets/modules/task_deadline_image.png b/hide_filters_groupby/static/description/assets/modules/task_deadline_image.png new file mode 100644 index 000000000..c128be58a Binary files /dev/null and b/hide_filters_groupby/static/description/assets/modules/task_deadline_image.png differ diff --git a/hide_filters_groupby/static/description/assets/screenshots/1.png b/hide_filters_groupby/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..725e363e8 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/screenshots/1.png differ diff --git a/hide_filters_groupby/static/description/assets/screenshots/2.png b/hide_filters_groupby/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..ab4c39a1c Binary files /dev/null and b/hide_filters_groupby/static/description/assets/screenshots/2.png differ diff --git a/hide_filters_groupby/static/description/assets/screenshots/3.png b/hide_filters_groupby/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..7782f4501 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/screenshots/3.png differ diff --git a/hide_filters_groupby/static/description/assets/screenshots/4.png b/hide_filters_groupby/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..79b181931 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/screenshots/4.png differ diff --git a/hide_filters_groupby/static/description/assets/screenshots/5.png b/hide_filters_groupby/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..0b08c047a Binary files /dev/null and b/hide_filters_groupby/static/description/assets/screenshots/5.png differ diff --git a/hide_filters_groupby/static/description/assets/screenshots/6.png b/hide_filters_groupby/static/description/assets/screenshots/6.png new file mode 100644 index 000000000..a855c19d6 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/screenshots/6.png differ diff --git a/hide_filters_groupby/static/description/assets/screenshots/hero.gif b/hide_filters_groupby/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..4fdb7a504 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/screenshots/hero.gif differ diff --git a/hide_filters_groupby/static/description/banner.png b/hide_filters_groupby/static/description/banner.png new file mode 100644 index 000000000..79cc348fc Binary files /dev/null and b/hide_filters_groupby/static/description/banner.png differ diff --git a/hide_filters_groupby/static/description/icon.png b/hide_filters_groupby/static/description/icon.png new file mode 100644 index 000000000..6b2e3af56 Binary files /dev/null and b/hide_filters_groupby/static/description/icon.png differ diff --git a/hide_filters_groupby/static/description/index.html b/hide_filters_groupby/static/description/index.html new file mode 100644 index 000000000..4f94f3c3b --- /dev/null +++ b/hide_filters_groupby/static/description/index.html @@ -0,0 +1,561 @@ +
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+ +
+
+
+
+ +
+
+
+

+ Hide Filters GroupBy

+

+ Hide Filters GroupBy Helps you to Hide Filter and GroupBy + Option. +

+ +
+
+ + + +
+
+

+ Overview +

+
+ +
+

+ Hide filters GroupBy Helps in the Globally or Custom Hide of the Filter + and GroupBy Options. When choosing a specific option, + selected models filter and groupby options will be hidden from view, + and when choosing a global option, all models filter and groupby + options will be hidden.

+
+

+ +
+ + +
+
+

+ Features +

+
+ +
+
+ +
+
+ Hide Filter and GroupBy Option Globally. +
+
+
+
+ +
+
+ Hide Filter and GroupBy Option for Custom Models. +
+
+ +
+ +
+
+

+ Screenshots +

+
+
+

+ Hide Filters and GroupBy

+

+ Go to General Settings -> + Hide Filters and GroupBy + -> + Enable Hide Filters and GroupBy.

+ +
+ +
+

+ Choose Globally

+ + +
+ + +
+

+ Then Select a Model

+ + +
+
+

+ Choose Custom Option . Select Custom Models

+ + +
+
+

+ There We Can See The Filter and GroupBy Option is Hidden For + Selected Models.

+ + +
+ +
+ + +
+
+

Suggested Products

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

Our Services

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

Our Industries

+
+
+ +
+
+ +
+ Trading +
+

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

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

+ Mobile + friendly, + awe-inspiring product pages

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

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

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

+ An + all-inclusive + hotel management application

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

Need Help?

+
+
+
+ + +
+ +
+ + +
+ +
+ +
+ +
+
+ +
+ +
+ +
+
+ +
+
+
+ + +
\ No newline at end of file diff --git a/hide_filters_groupby/static/src/control_panel/control_panels.js b/hide_filters_groupby/static/src/control_panel/control_panels.js new file mode 100644 index 000000000..0559d6a21 --- /dev/null +++ b/hide_filters_groupby/static/src/control_panel/control_panels.js @@ -0,0 +1,53 @@ +/** @odoo-module **/ +import LegacyControlPanel from "web.ControlPanel"; +import {patch} from "web.utils"; +import session from 'web.session'; +const { onMounted } = owl.hooks; +patch( + LegacyControlPanel.prototype, + "hide_filters_groupby.LegacyControlPanel", + { + components: { + ...LegacyControlPanel.components, + }, + setup() { + this._super(); + if (session.is_hide_filters_groupby_enabled == 'True'){ + if (session.hide_filters_groupby == 'global'){ + onMounted(this.hide_globally) + } else if (session.hide_filters_groupby == 'custom'){ + onMounted(this.hide_on_custom) + } + } + }, + /** + * Customized method to hide filter and groupby options globally. + * This method is called when the 'session.hide_filters_groupby_is_enabled' is 'True' and + * 'session.hide_filters_groupby' is set to 'global'. + */ + //hides filter and groupby options globally + hide_globally(){ + this.vnode.elm.querySelector('.o_search_options').style.display = 'none'; + }, + //hides filter and groupby options on custom choice + /** + * Customized method to hide filter and groupby options based on custom settings. + * This method is called when the 'session.hide_filters_groupby_is_enabled' is 'True' and + * 'session.hide_filters_groupby' is set to 'custom'. + */ + hide_on_custom(){ + if (this.parent.props.searchModel) { + this.parent.props.searchModel.env.services.rpc({ + model: 'ir.model', + method: 'search_read', + args: [[["model", "=", this.parent.props.action.res_model]]], + }).then((value) => { + if (eval(session.ir_model_ids).includes(value[0].id)) { + if (this.vnode.elm) { + this.vnode.elm.querySelector('.o_search_options').style.display = 'none'; + } + } + }); + } + } +}); \ No newline at end of file diff --git a/hide_filters_groupby/static/src/css/hide_filters_groupby.css b/hide_filters_groupby/static/src/css/hide_filters_groupby.css new file mode 100644 index 000000000..fddf3d45b --- /dev/null +++ b/hide_filters_groupby/static/src/css/hide_filters_groupby.css @@ -0,0 +1,3 @@ +.o_control_panel .o_cp_bottom_right{ + justify-content: right; +} diff --git a/hide_filters_groupby/views/res_config_settings_views.xml b/hide_filters_groupby/views/res_config_settings_views.xml new file mode 100644 index 000000000..c29dd1e90 --- /dev/null +++ b/hide_filters_groupby/views/res_config_settings_views.xml @@ -0,0 +1,47 @@ + + + + + + res.config.settings.view.form.inherit.hide.filters.groupby + + res.config.settings + + + +
+

Hide Filters and Group By

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