diff --git a/hide_filters_groupby/README.rst b/hide_filters_groupby/README.rst new file mode 100644 index 000000000..e9d416c53 --- /dev/null +++ b/hide_filters_groupby/README.rst @@ -0,0 +1,48 @@ +.. 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 + +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: (V17) ASWIN A K + (V16): Rahul Rajeev , 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/hide_filters_groupby/__init__.py b/hide_filters_groupby/__init__.py new file mode 100644 index 000000000..833b16078 --- /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: ASWIN A K (odoo@cybrosys.com) +# +# 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..51251fad8 --- /dev/null +++ b/hide_filters_groupby/__manifest__.py @@ -0,0 +1,52 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: ASWIN A K (odoo@cybrosys.com) +# +# 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': '17.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_setup'], + 'data': [ + 'views/res_config_settings_views.xml', + ], + 'assets': { + 'web.assets_backend': [ + 'hide_filters_groupby/static/src/js/control_panel.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..8e19d776c --- /dev/null +++ b/hide_filters_groupby/doc/RELEASE_NOTES.md @@ -0,0 +1,6 @@ +## Module + +#### 15.02.2024 +#### Version 17.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..e2a8e3c81 --- /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: ASWIN A K (odoo@cybrosys.com) +# +# 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..882d831fc --- /dev/null +++ b/hide_filters_groupby/models/ir_http.py @@ -0,0 +1,43 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: ASWIN A K (odoo@cybrosys.com) +# +# 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().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..956f9f6e3 --- /dev/null +++ b/hide_filters_groupby/models/res_config_settings.py @@ -0,0 +1,68 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: ASWIN A K (odoo@cybrosys.com) +# +# 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 api, fields, models +from odoo.tools._monkeypatches import literal_eval + + +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', + readonly=False, + help='Models that are affected by the ' + 'hide filters and group by settings.') + + def set_values(self): + """this function helps to save values in the settings + inherited choose_product_ids field""" + res = super().set_values() + self.env['ir.config_parameter'].sudo().set_param( + 'hide_filters_groupby.ir_model_ids', + self.ir_model_ids.ids) + return res + + @api.model + def get_values(self): + """this function retrieve the values from the ir_config_parameters""" + res = super().get_values() + model_ids = self.env['ir.config_parameter'].sudo().get_param( + 'hide_filters_groupby.ir_model_ids') + res.update( + ir_model_ids=[ + fields.Command.set(literal_eval(model_ids)) + ] if 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/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/email.svg b/hide_filters_groupby/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/hide_filters_groupby/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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/phone.svg b/hide_filters_groupby/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/hide_filters_groupby/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + 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 (1) 2.svg b/hide_filters_groupby/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/hide_filters_groupby/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + 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 (1) 1.svg b/hide_filters_groupby/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/hide_filters_groupby/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/hide_filters_groupby/static/description/assets/misc/support-email.svg b/hide_filters_groupby/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/hide_filters_groupby/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + 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/tick-mark.svg b/hide_filters_groupby/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/hide_filters_groupby/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/hide_filters_groupby/static/description/assets/misc/whatsapp 1.svg b/hide_filters_groupby/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/hide_filters_groupby/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + 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/misc/whatsapp.svg b/hide_filters_groupby/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/hide_filters_groupby/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/hide_filters_groupby/static/description/assets/modules/barcode.png b/hide_filters_groupby/static/description/assets/modules/barcode.png new file mode 100644 index 000000000..cb17cf612 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/modules/barcode.png differ diff --git a/hide_filters_groupby/static/description/assets/modules/bugget.jpg b/hide_filters_groupby/static/description/assets/modules/bugget.jpg new file mode 100644 index 000000000..5141a7802 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/modules/bugget.jpg differ diff --git a/hide_filters_groupby/static/description/assets/modules/menu.jpg b/hide_filters_groupby/static/description/assets/modules/menu.jpg new file mode 100644 index 000000000..d05b1744e Binary files /dev/null and b/hide_filters_groupby/static/description/assets/modules/menu.jpg differ diff --git a/hide_filters_groupby/static/description/assets/modules/print.jpg b/hide_filters_groupby/static/description/assets/modules/print.jpg new file mode 100644 index 000000000..3977383be Binary files /dev/null and b/hide_filters_groupby/static/description/assets/modules/print.jpg differ diff --git a/hide_filters_groupby/static/description/assets/modules/show.jpg b/hide_filters_groupby/static/description/assets/modules/show.jpg new file mode 100644 index 000000000..083740386 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/modules/show.jpg differ diff --git a/hide_filters_groupby/static/description/assets/modules/whatsapp.jpg b/hide_filters_groupby/static/description/assets/modules/whatsapp.jpg new file mode 100644 index 000000000..67c7f7062 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/modules/whatsapp.jpg 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..6ccb8fcee 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..87b168bf5 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..266b5b642 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..96afdf9b2 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..5652e3f29 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..b8e51d79d 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-v17.gif b/hide_filters_groupby/static/description/assets/screenshots/hero-v17.gif new file mode 100644 index 000000000..bfdb1ebe3 Binary files /dev/null and b/hide_filters_groupby/static/description/assets/screenshots/hero-v17.gif 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..228f7ec95 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..8d6f55a34 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..23e8c950b 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..3179d72bb --- /dev/null +++ b/hide_filters_groupby/static/description/index.html @@ -0,0 +1,585 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Hide Filters GroupBy

+

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

+
+ +
+
+
+
+
+

Key Highlights +

+
+
+
+
+
+ +
+
+

Custom.

+

Hide filters and groupby in custom mode. You can choose models. +

+
+
+
+
+
+
+ +
+
+

Global.

+

Hide filters and groupby in globaly. +

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

+ Hide Filters and GroupBy +

+

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

+
+
+
+
+
+
+ +
+
+

+ Choose Globally +

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

+ Choose Custom Option +

+

+ Select Custom Models.

+
+
+
+
+
+
+ +
+
+

+ Hidden filters and groupby +

+

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

+
+
+
+ +
+
+
+
    +
  • + Hide Filter and GroupBy Option Globally. +
  • +
  • + Hide Filter and GroupBy Option for Custom Models. +
  • +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:15th Feb 2024 +
+

+ + Initial commit for Hide Filters GroupBy.

+
+
+
+
+
+
+
+

Related Products

+
+
+ +
+
+

Our Services

+ +
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo Implementation

+
+
+
+
+
+
+ service-icon +
+
+

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 + 99456767686
+
+
+
+
+
+
+
+
+ + + + + + diff --git a/hide_filters_groupby/static/src/js/control_panel.js b/hide_filters_groupby/static/src/js/control_panel.js new file mode 100644 index 000000000..65d72e929 --- /dev/null +++ b/hide_filters_groupby/static/src/js/control_panel.js @@ -0,0 +1,31 @@ +/** @odoo-module **/ + +import { session } from "@web/session"; +import { ControlPanel } from "@web/search/control_panel/control_panel"; +import { onMounted } from "@odoo/owl"; +import { patch } from "@web/core/utils/patch"; +//This patch is used to hide filter and groupby option on the basis of globally or custom +patch(ControlPanel.prototype,{ + setup() { + super.setup(); + if (session.is_hide_filters_groupby_enabled == 'True'){ + if (session.hide_filters_groupby == 'global') onMounted(async () => await this.hideGlobally()); + else if(session.hide_filters_groupby == 'custom') onMounted(async () => await this.hideOnCustom()); + } + }, + //hides filter and groupby options globally + hideGlobally(){ + const toggler = this.root.el.querySelector('.o_searchview_dropdown_toggler'); + const searchView = this.root.el.querySelector('.o_searchview.form-control') + if (toggler) toggler.style.display = 'none'; + if (searchView) searchView.style.borderRadius= '5px'; + }, + + //hides filter and groupby options on custom choice + async hideOnCustom(){ + if (this.env.searchModel){ + const model_id = await this.env.services.orm.search("ir.model", [["model", "=", this.env.searchModel.resModel]], { limit: 1 }); + if (eval(session.ir_model_ids).includes(model_id[0])) await this.hideGlobally(); + } + } +}); 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..abdae6038 --- /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

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