diff --git a/custom_list_view/README.rst b/custom_list_view/README.rst new file mode 100644 index 000000000..e7cffae53 --- /dev/null +++ b/custom_list_view/README.rst @@ -0,0 +1,55 @@ +.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg + :target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html + :alt: License: LGPL-3 + +Custom List View +================== +This module enhances list views by displaying row numbers.Additionally, it +facilitates the printing of list views in PDF, CSV, and Excel formats, +allows for the copying of list values to the clipboard, and introduces +a pagination feature. + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +GNU LESSER GENERAL PUBLIC LICENSE, v3.0 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +* Developers : (V18) Nivedhya T, + (V17) Akhil Ashok, + (V16) Rosmy John, Muhsina V + (V15) Aiswarya J P + + + 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/custom_list_view/__init__.py b/custom_list_view/__init__.py new file mode 100644 index 000000000..a52c1f82a --- /dev/null +++ b/custom_list_view/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import controllers diff --git a/custom_list_view/__manifest__.py b/custom_list_view/__manifest__.py new file mode 100644 index 000000000..50bda09d0 --- /dev/null +++ b/custom_list_view/__manifest__.py @@ -0,0 +1,50 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +{ + 'name': 'Custom List View', + 'version': '18.0.1.0.0', + 'category': 'Extra Tools', + 'summary': 'Helps to Show Row Number, Print and Copy Listview items', + 'description': "This module Helps to Show Row Number,Using this module " + "the list view items can be printed in pdf, excel and csv format," + " Also there is copy to clipboard and pagination features.", + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': 'https://www.cybrosys.com', + 'depends': ['web', 'account'], + 'data': [ + 'report/custom_list_view_templates.xml', + 'report/custom_list_view_reports.xml' + ], + 'assets': { + 'web.assets_backend': [ + ('after', 'web/static/src/views/list/list_renderer.xml', + 'custom_list_view/static/src/**/*'), + ] + }, + 'images': ['static/description/banner.jpg'], + 'licence': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False +} diff --git a/custom_list_view/controllers/__init__.py b/custom_list_view/controllers/__init__.py new file mode 100644 index 000000000..71b72fe61 --- /dev/null +++ b/custom_list_view/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from . import custom_list_view diff --git a/custom_list_view/controllers/custom_list_view.py b/custom_list_view/controllers/custom_list_view.py new file mode 100644 index 000000000..36c6028da --- /dev/null +++ b/custom_list_view/controllers/custom_list_view.py @@ -0,0 +1,68 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2025-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL 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 LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import http +from odoo.http import request + + +class ExportData(http.Controller): + """ Controller class for exporting data from Odoo models.""" + @http.route('/get_data', auth="user", type='json') + def get_export_data(self, **kw): + """Controller method to fetch required details and export data. + :param kw: Dictionary containing the following keys: + - fields: List of fields to export + - model: Name of the Odoo model + - res_ids: List of record IDs to export (optional) + - domain: Domain for record filtering (optional) + :return: Dictionary containing exported data and column headers""" + model = request.env[kw['model']] + field_names = [field['name'] for field in kw['fields']] + columns_headers = [val['label'].strip() for val in kw['fields']] + domain = [('id', 'in', kw['res_ids'])] \ + if kw['res_ids'] else kw['domain'] + records = model.browse(kw['res_ids']) \ + if kw['res_ids'] \ + else model.search(domain, offset=0, limit=False, order=False) + export_data = records.export_data(field_names).get('datas', []) + return {'data': export_data, 'header': columns_headers} + + @http.route('/get_data/copy', auth="user", type='json') + def get_export_data_copy(self, **kw): + """Controller method to fetch required details, export data, and add + column headers. + :param kw: Dictionary containing the following keys: + - fields: List of fields to export + - model: Name of the Odoo model + - res_ids: List of record IDs to export (optional) + - domain: Domain for record filtering (optional) + :return: List of lists containing exported data with column headers""" + model = request.env[kw['model']] + field_names = [field['name'] for field in kw['fields']] + columns_headers = [val['label'].strip() for val in kw['fields']] + domain = [('id', 'in', kw['res_ids'])] \ + if kw['res_ids'] else kw['domain'] + records = model.browse(kw['res_ids']) \ + if kw['res_ids'] \ + else model.search(domain, offset=0, limit=False, order=False) + export_data = records.export_data(field_names).get('datas', []) + export_data.insert(0, columns_headers) + return export_data diff --git a/custom_list_view/doc/RELEASE_NOTES.md b/custom_list_view/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..15df764c0 --- /dev/null +++ b/custom_list_view/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 28.07.2025 +#### Version 18.0.1.0.0 +##### ADD +- Initial Commit for Custom List View + diff --git a/custom_list_view/report/custom_list_view_reports.xml b/custom_list_view/report/custom_list_view_reports.xml new file mode 100644 index 000000000..481be12d3 --- /dev/null +++ b/custom_list_view/report/custom_list_view_reports.xml @@ -0,0 +1,13 @@ + + + + + Export + ir.exports + qweb-pdf + custom_list_view.print_pdf_listview + custom_list_view.print_pdf_listview + Pdf Report - ${object.name} + report + + diff --git a/custom_list_view/report/custom_list_view_templates.xml b/custom_list_view/report/custom_list_view_templates.xml new file mode 100644 index 000000000..edee976ec --- /dev/null +++ b/custom_list_view/report/custom_list_view_templates.xml @@ -0,0 +1,31 @@ + + + + + diff --git a/custom_list_view/static/description/assets/icons/arrows-repeat.svg b/custom_list_view/static/description/assets/icons/arrows-repeat.svg new file mode 100644 index 000000000..1d7efabc5 --- /dev/null +++ b/custom_list_view/static/description/assets/icons/arrows-repeat.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/custom_list_view/static/description/assets/icons/banner-1.png b/custom_list_view/static/description/assets/icons/banner-1.png new file mode 100644 index 000000000..c180db172 Binary files /dev/null and b/custom_list_view/static/description/assets/icons/banner-1.png differ diff --git a/custom_list_view/static/description/assets/icons/banner-2.svg b/custom_list_view/static/description/assets/icons/banner-2.svg new file mode 100644 index 000000000..e606d97d9 --- /dev/null +++ b/custom_list_view/static/description/assets/icons/banner-2.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/custom_list_view/static/description/assets/icons/banner-bg.png b/custom_list_view/static/description/assets/icons/banner-bg.png new file mode 100644 index 000000000..a8238d3c0 Binary files /dev/null and b/custom_list_view/static/description/assets/icons/banner-bg.png differ diff --git a/custom_list_view/static/description/assets/icons/banner-bg.svg b/custom_list_view/static/description/assets/icons/banner-bg.svg new file mode 100644 index 000000000..b1378103e --- /dev/null +++ b/custom_list_view/static/description/assets/icons/banner-bg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/custom_list_view/static/description/assets/icons/banner-call.svg b/custom_list_view/static/description/assets/icons/banner-call.svg new file mode 100644 index 000000000..96c687e81 --- /dev/null +++ b/custom_list_view/static/description/assets/icons/banner-call.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/custom_list_view/static/description/assets/icons/banner-mail.svg b/custom_list_view/static/description/assets/icons/banner-mail.svg new file mode 100644 index 000000000..cbf0d158d --- /dev/null +++ b/custom_list_view/static/description/assets/icons/banner-mail.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/custom_list_view/static/description/assets/icons/banner-pattern.svg b/custom_list_view/static/description/assets/icons/banner-pattern.svg new file mode 100644 index 000000000..9c1c7e101 --- /dev/null +++ b/custom_list_view/static/description/assets/icons/banner-pattern.svg @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/custom_list_view/static/description/assets/icons/banner-promo.svg b/custom_list_view/static/description/assets/icons/banner-promo.svg new file mode 100644 index 000000000..d52791b11 --- /dev/null +++ b/custom_list_view/static/description/assets/icons/banner-promo.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/custom_list_view/static/description/assets/icons/brand-pair.svg b/custom_list_view/static/description/assets/icons/brand-pair.svg new file mode 100644 index 000000000..d8db7fc1e --- /dev/null +++ b/custom_list_view/static/description/assets/icons/brand-pair.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/custom_list_view/static/description/assets/icons/check.png b/custom_list_view/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/custom_list_view/static/description/assets/icons/check.png differ diff --git a/custom_list_view/static/description/assets/icons/chevron.png b/custom_list_view/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/custom_list_view/static/description/assets/icons/chevron.png differ diff --git a/custom_list_view/static/description/assets/icons/close-icon.svg b/custom_list_view/static/description/assets/icons/close-icon.svg new file mode 100644 index 000000000..df8cce37a --- /dev/null +++ b/custom_list_view/static/description/assets/icons/close-icon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/custom_list_view/static/description/assets/icons/cogs.png b/custom_list_view/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/custom_list_view/static/description/assets/icons/cogs.png differ diff --git a/custom_list_view/static/description/assets/icons/collabarate-icon.svg b/custom_list_view/static/description/assets/icons/collabarate-icon.svg new file mode 100644 index 000000000..dd4e10518 --- /dev/null +++ b/custom_list_view/static/description/assets/icons/collabarate-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/custom_list_view/static/description/assets/icons/consultation.png b/custom_list_view/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/custom_list_view/static/description/assets/icons/consultation.png differ diff --git a/custom_list_view/static/description/assets/icons/cybro-logo.png b/custom_list_view/static/description/assets/icons/cybro-logo.png new file mode 100644 index 000000000..ff4b78220 Binary files /dev/null and b/custom_list_view/static/description/assets/icons/cybro-logo.png differ diff --git a/custom_list_view/static/description/assets/icons/down.svg b/custom_list_view/static/description/assets/icons/down.svg new file mode 100644 index 000000000..f21c36271 --- /dev/null +++ b/custom_list_view/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/custom_list_view/static/description/assets/icons/ecom-black.png b/custom_list_view/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/custom_list_view/static/description/assets/icons/ecom-black.png differ diff --git a/custom_list_view/static/description/assets/icons/education-black.png b/custom_list_view/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/custom_list_view/static/description/assets/icons/education-black.png differ diff --git a/custom_list_view/static/description/assets/icons/faq.png b/custom_list_view/static/description/assets/icons/faq.png new file mode 100644 index 000000000..4250b5b81 Binary files /dev/null and b/custom_list_view/static/description/assets/icons/faq.png differ diff --git a/custom_list_view/static/description/assets/icons/feature-icon.svg b/custom_list_view/static/description/assets/icons/feature-icon.svg new file mode 100644 index 000000000..fa0ea6850 --- /dev/null +++ b/custom_list_view/static/description/assets/icons/feature-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/custom_list_view/static/description/assets/icons/feature.png b/custom_list_view/static/description/assets/icons/feature.png new file mode 100644 index 000000000..ac7a785c0 Binary files /dev/null and b/custom_list_view/static/description/assets/icons/feature.png differ diff --git a/custom_list_view/static/description/assets/icons/gear.svg b/custom_list_view/static/description/assets/icons/gear.svg new file mode 100644 index 000000000..0cc66b6ea --- /dev/null +++ b/custom_list_view/static/description/assets/icons/gear.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/custom_list_view/static/description/assets/icons/hire-odoo.svg b/custom_list_view/static/description/assets/icons/hire-odoo.svg new file mode 100644 index 000000000..e1ac089b0 --- /dev/null +++ b/custom_list_view/static/description/assets/icons/hire-odoo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/custom_list_view/static/description/assets/icons/hotel-black.png b/custom_list_view/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/custom_list_view/static/description/assets/icons/hotel-black.png differ diff --git a/custom_list_view/static/description/assets/icons/license.png b/custom_list_view/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/custom_list_view/static/description/assets/icons/license.png differ diff --git a/custom_list_view/static/description/assets/icons/life-ring-icon.svg b/custom_list_view/static/description/assets/icons/life-ring-icon.svg new file mode 100644 index 000000000..3ae6e1d89 --- /dev/null +++ b/custom_list_view/static/description/assets/icons/life-ring-icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/custom_list_view/static/description/assets/icons/lifebuoy.png b/custom_list_view/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/custom_list_view/static/description/assets/icons/lifebuoy.png differ diff --git a/custom_list_view/static/description/assets/icons/mail.svg b/custom_list_view/static/description/assets/icons/mail.svg new file mode 100644 index 000000000..1eedde695 --- /dev/null +++ b/custom_list_view/static/description/assets/icons/mail.svg @@ -0,0 +1,3 @@ + + + diff --git a/custom_list_view/static/description/assets/icons/manufacturing-black.png b/custom_list_view/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/custom_list_view/static/description/assets/icons/manufacturing-black.png differ diff --git a/custom_list_view/static/description/assets/icons/notes.png b/custom_list_view/static/description/assets/icons/notes.png new file mode 100644 index 000000000..ee5e95404 Binary files /dev/null and b/custom_list_view/static/description/assets/icons/notes.png differ diff --git a/custom_list_view/static/description/assets/icons/notification icon.svg b/custom_list_view/static/description/assets/icons/notification icon.svg new file mode 100644 index 000000000..053189973 --- /dev/null +++ b/custom_list_view/static/description/assets/icons/notification icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/custom_list_view/static/description/assets/icons/odoo-consultancy.svg b/custom_list_view/static/description/assets/icons/odoo-consultancy.svg new file mode 100644 index 000000000..e05f65bde --- /dev/null +++ b/custom_list_view/static/description/assets/icons/odoo-consultancy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/custom_list_view/static/description/assets/icons/odoo-licencing.svg b/custom_list_view/static/description/assets/icons/odoo-licencing.svg new file mode 100644 index 000000000..2606c88b0 --- /dev/null +++ b/custom_list_view/static/description/assets/icons/odoo-licencing.svg @@ -0,0 +1,3 @@ + + + diff --git a/custom_list_view/static/description/assets/icons/odoo-logo.png b/custom_list_view/static/description/assets/icons/odoo-logo.png new file mode 100644 index 000000000..0e4d0eb5a Binary files /dev/null and b/custom_list_view/static/description/assets/icons/odoo-logo.png differ diff --git a/custom_list_view/static/description/assets/icons/patter.svg b/custom_list_view/static/description/assets/icons/patter.svg new file mode 100644 index 000000000..25c9c0a8f --- /dev/null +++ b/custom_list_view/static/description/assets/icons/patter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/custom_list_view/static/description/assets/icons/pattern1.png b/custom_list_view/static/description/assets/icons/pattern1.png new file mode 100644 index 000000000..09ab0fb2d Binary files /dev/null and b/custom_list_view/static/description/assets/icons/pattern1.png differ diff --git a/custom_list_view/static/description/assets/icons/pos-black.png b/custom_list_view/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/custom_list_view/static/description/assets/icons/pos-black.png differ diff --git a/custom_list_view/static/description/assets/icons/puzzle-piece-icon.svg b/custom_list_view/static/description/assets/icons/puzzle-piece-icon.svg new file mode 100644 index 000000000..3e9ad9373 --- /dev/null +++ b/custom_list_view/static/description/assets/icons/puzzle-piece-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/custom_list_view/static/description/assets/icons/puzzle.png b/custom_list_view/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/custom_list_view/static/description/assets/icons/puzzle.png differ diff --git a/custom_list_view/static/description/assets/icons/replace-icon.svg b/custom_list_view/static/description/assets/icons/replace-icon.svg new file mode 100644 index 000000000..d0e3a7af1 --- /dev/null +++ b/custom_list_view/static/description/assets/icons/replace-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/custom_list_view/static/description/assets/icons/restaurant-black.png b/custom_list_view/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/custom_list_view/static/description/assets/icons/restaurant-black.png differ diff --git a/custom_list_view/static/description/assets/icons/screenshot-main.png b/custom_list_view/static/description/assets/icons/screenshot-main.png new file mode 100644 index 000000000..575f8e676 Binary files /dev/null and b/custom_list_view/static/description/assets/icons/screenshot-main.png differ diff --git a/custom_list_view/static/description/assets/icons/screenshot.png b/custom_list_view/static/description/assets/icons/screenshot.png new file mode 100644 index 000000000..cef272529 Binary files /dev/null and b/custom_list_view/static/description/assets/icons/screenshot.png differ diff --git a/custom_list_view/static/description/assets/icons/service-black.png b/custom_list_view/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/custom_list_view/static/description/assets/icons/service-black.png differ diff --git a/custom_list_view/static/description/assets/icons/skype-fill.svg b/custom_list_view/static/description/assets/icons/skype-fill.svg new file mode 100644 index 000000000..c17423639 --- /dev/null +++ b/custom_list_view/static/description/assets/icons/skype-fill.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/custom_list_view/static/description/assets/icons/skype.png b/custom_list_view/static/description/assets/icons/skype.png new file mode 100644 index 000000000..51b409fb3 Binary files /dev/null and b/custom_list_view/static/description/assets/icons/skype.png differ diff --git a/custom_list_view/static/description/assets/icons/skype.svg b/custom_list_view/static/description/assets/icons/skype.svg new file mode 100644 index 000000000..df3dad39b --- /dev/null +++ b/custom_list_view/static/description/assets/icons/skype.svg @@ -0,0 +1,3 @@ + + + diff --git a/custom_list_view/static/description/assets/icons/star-1.svg b/custom_list_view/static/description/assets/icons/star-1.svg new file mode 100644 index 000000000..7e55ab162 --- /dev/null +++ b/custom_list_view/static/description/assets/icons/star-1.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/custom_list_view/static/description/assets/icons/star-2.svg b/custom_list_view/static/description/assets/icons/star-2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/custom_list_view/static/description/assets/icons/star-2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/custom_list_view/static/description/assets/icons/support.png b/custom_list_view/static/description/assets/icons/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/custom_list_view/static/description/assets/icons/support.png differ diff --git a/custom_list_view/static/description/assets/icons/test-1 - Copy.png b/custom_list_view/static/description/assets/icons/test-1 - Copy.png new file mode 100644 index 000000000..f6a902663 Binary files /dev/null and b/custom_list_view/static/description/assets/icons/test-1 - Copy.png differ diff --git a/custom_list_view/static/description/assets/icons/test-1.png b/custom_list_view/static/description/assets/icons/test-1.png new file mode 100644 index 000000000..0908add2b Binary files /dev/null and b/custom_list_view/static/description/assets/icons/test-1.png differ diff --git a/custom_list_view/static/description/assets/icons/test-2.png b/custom_list_view/static/description/assets/icons/test-2.png new file mode 100644 index 000000000..4671fe91e Binary files /dev/null and b/custom_list_view/static/description/assets/icons/test-2.png differ diff --git a/custom_list_view/static/description/assets/icons/trading-black.png b/custom_list_view/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/custom_list_view/static/description/assets/icons/trading-black.png differ diff --git a/custom_list_view/static/description/assets/icons/training.png b/custom_list_view/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/custom_list_view/static/description/assets/icons/training.png differ diff --git a/custom_list_view/static/description/assets/icons/translate.svg b/custom_list_view/static/description/assets/icons/translate.svg new file mode 100644 index 000000000..af9c8a1aa --- /dev/null +++ b/custom_list_view/static/description/assets/icons/translate.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/custom_list_view/static/description/assets/icons/update.png b/custom_list_view/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/custom_list_view/static/description/assets/icons/update.png differ diff --git a/custom_list_view/static/description/assets/icons/user.png b/custom_list_view/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/custom_list_view/static/description/assets/icons/user.png differ diff --git a/custom_list_view/static/description/assets/icons/video.png b/custom_list_view/static/description/assets/icons/video.png new file mode 100644 index 000000000..576705b17 Binary files /dev/null and b/custom_list_view/static/description/assets/icons/video.png differ diff --git a/custom_list_view/static/description/assets/icons/whatsapp.png b/custom_list_view/static/description/assets/icons/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/custom_list_view/static/description/assets/icons/whatsapp.png differ diff --git a/custom_list_view/static/description/assets/icons/wrench-icon.svg b/custom_list_view/static/description/assets/icons/wrench-icon.svg new file mode 100644 index 000000000..174b5a465 --- /dev/null +++ b/custom_list_view/static/description/assets/icons/wrench-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/custom_list_view/static/description/assets/icons/wrench.png b/custom_list_view/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/custom_list_view/static/description/assets/icons/wrench.png differ diff --git a/custom_list_view/static/description/assets/misc/Cybrosys R.png b/custom_list_view/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/custom_list_view/static/description/assets/misc/Cybrosys R.png differ diff --git a/custom_list_view/static/description/assets/misc/categories.png b/custom_list_view/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/custom_list_view/static/description/assets/misc/categories.png differ diff --git a/custom_list_view/static/description/assets/misc/check-box.png b/custom_list_view/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/custom_list_view/static/description/assets/misc/check-box.png differ diff --git a/custom_list_view/static/description/assets/misc/compass.png b/custom_list_view/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/custom_list_view/static/description/assets/misc/compass.png differ diff --git a/custom_list_view/static/description/assets/misc/corporate.png b/custom_list_view/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/custom_list_view/static/description/assets/misc/corporate.png differ diff --git a/custom_list_view/static/description/assets/misc/customer-support.png b/custom_list_view/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/custom_list_view/static/description/assets/misc/customer-support.png differ diff --git a/custom_list_view/static/description/assets/misc/cybrosys-logo.png b/custom_list_view/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/custom_list_view/static/description/assets/misc/cybrosys-logo.png differ diff --git a/custom_list_view/static/description/assets/misc/email.svg b/custom_list_view/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/custom_list_view/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/custom_list_view/static/description/assets/misc/features.png b/custom_list_view/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/custom_list_view/static/description/assets/misc/features.png differ diff --git a/custom_list_view/static/description/assets/misc/logo.png b/custom_list_view/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/custom_list_view/static/description/assets/misc/logo.png differ diff --git a/custom_list_view/static/description/assets/misc/phone.svg b/custom_list_view/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/custom_list_view/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/custom_list_view/static/description/assets/misc/pictures.png b/custom_list_view/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/custom_list_view/static/description/assets/misc/pictures.png differ diff --git a/custom_list_view/static/description/assets/misc/pie-chart.png b/custom_list_view/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/custom_list_view/static/description/assets/misc/pie-chart.png differ diff --git a/custom_list_view/static/description/assets/misc/right-arrow.png b/custom_list_view/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/custom_list_view/static/description/assets/misc/right-arrow.png differ diff --git a/custom_list_view/static/description/assets/misc/star (1) 2.svg b/custom_list_view/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/custom_list_view/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/custom_list_view/static/description/assets/misc/star.png b/custom_list_view/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/custom_list_view/static/description/assets/misc/star.png differ diff --git a/custom_list_view/static/description/assets/misc/support (1) 1.svg b/custom_list_view/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/custom_list_view/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/custom_list_view/static/description/assets/misc/support-email.svg b/custom_list_view/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/custom_list_view/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/custom_list_view/static/description/assets/misc/support.png b/custom_list_view/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/custom_list_view/static/description/assets/misc/support.png differ diff --git a/custom_list_view/static/description/assets/misc/tick-mark.svg b/custom_list_view/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/custom_list_view/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/custom_list_view/static/description/assets/misc/whatsapp 1.svg b/custom_list_view/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/custom_list_view/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/custom_list_view/static/description/assets/misc/whatsapp.png b/custom_list_view/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/custom_list_view/static/description/assets/misc/whatsapp.png differ diff --git a/custom_list_view/static/description/assets/misc/whatsapp.svg b/custom_list_view/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/custom_list_view/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/custom_list_view/static/description/assets/modules/banner1.jpg b/custom_list_view/static/description/assets/modules/banner1.jpg new file mode 100644 index 000000000..6e617f3d3 Binary files /dev/null and b/custom_list_view/static/description/assets/modules/banner1.jpg differ diff --git a/custom_list_view/static/description/assets/modules/banner2.jpg b/custom_list_view/static/description/assets/modules/banner2.jpg new file mode 100644 index 000000000..580ea075d Binary files /dev/null and b/custom_list_view/static/description/assets/modules/banner2.jpg differ diff --git a/custom_list_view/static/description/assets/modules/banner3.jpg b/custom_list_view/static/description/assets/modules/banner3.jpg new file mode 100644 index 000000000..a68ae5a1b Binary files /dev/null and b/custom_list_view/static/description/assets/modules/banner3.jpg differ diff --git a/custom_list_view/static/description/assets/modules/banner4.jpg b/custom_list_view/static/description/assets/modules/banner4.jpg new file mode 100644 index 000000000..19319906e Binary files /dev/null and b/custom_list_view/static/description/assets/modules/banner4.jpg differ diff --git a/custom_list_view/static/description/assets/modules/banner5.jpg b/custom_list_view/static/description/assets/modules/banner5.jpg new file mode 100644 index 000000000..e0b09a5a0 Binary files /dev/null and b/custom_list_view/static/description/assets/modules/banner5.jpg differ diff --git a/custom_list_view/static/description/assets/modules/banner6.jpg b/custom_list_view/static/description/assets/modules/banner6.jpg new file mode 100644 index 000000000..696582fa8 Binary files /dev/null and b/custom_list_view/static/description/assets/modules/banner6.jpg differ diff --git a/custom_list_view/static/description/assets/screenshots/hero.gif b/custom_list_view/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..65434e6c3 Binary files /dev/null and b/custom_list_view/static/description/assets/screenshots/hero.gif differ diff --git a/custom_list_view/static/description/assets/screenshots/screenshot1.png b/custom_list_view/static/description/assets/screenshots/screenshot1.png new file mode 100644 index 000000000..3af676954 Binary files /dev/null and b/custom_list_view/static/description/assets/screenshots/screenshot1.png differ diff --git a/custom_list_view/static/description/assets/screenshots/screenshot2.png b/custom_list_view/static/description/assets/screenshots/screenshot2.png new file mode 100644 index 000000000..f848fe27c Binary files /dev/null and b/custom_list_view/static/description/assets/screenshots/screenshot2.png differ diff --git a/custom_list_view/static/description/assets/screenshots/screenshot3.png b/custom_list_view/static/description/assets/screenshots/screenshot3.png new file mode 100644 index 000000000..43a1bb9c3 Binary files /dev/null and b/custom_list_view/static/description/assets/screenshots/screenshot3.png differ diff --git a/custom_list_view/static/description/banner.jpg b/custom_list_view/static/description/banner.jpg new file mode 100644 index 000000000..bcc2bdc2c Binary files /dev/null and b/custom_list_view/static/description/banner.jpg differ diff --git a/custom_list_view/static/description/icon.png b/custom_list_view/static/description/icon.png new file mode 100644 index 000000000..01c0596fb Binary files /dev/null and b/custom_list_view/static/description/icon.png differ diff --git a/custom_list_view/static/description/index.html b/custom_list_view/static/description/index.html new file mode 100644 index 000000000..037089ab0 --- /dev/null +++ b/custom_list_view/static/description/index.html @@ -0,0 +1,984 @@ + + + + + + Custom List View + + + + + + + + + + +
+
+ + + +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+
+

+ Show Row Number in List View. Export List to Pdf, Excel + and CSV. Copy to Clipboard and Pagination. + +

+

Custom List View +

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

Key + Highlights

+
+
+
+
+ +
+
+ Row Numbers. +
+

+ Row Numbers in List Views. +

+
+
+
+
+
+ +
+
+ Export list in different formats +
+

+ Export list to PDF, CSV & Excel. +

+
+
+
+
+
+ +
+
+ Copy List values. +
+

+ Copy List values to clipboard. +

+
+
+
+
+
+ +
+
+ pagination. +
+

+ Datatable pagination. +

+
+
+
+
+ +
+
+
+ Custom List View +

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

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

+ Row Numbers + + in List Views. +

+
+
+

+ +

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

+ Export ,Copy + + to Clipboard. +

+
+
+

+ +

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

+ copy to + + Clipboard. +

+
+
+

+ +

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

+ Row Numbers in List Views. +

+
+
+

+ +

+
+
+
+
+
+
+
+ +
+

+ Export list to PDF, CSV & Excel.

+
+
+

+ +

+
+
+
+
+
+
+
+ +
+

+ Copy List values to clipboard.

+
+
+

+ +

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

+ Each visible record is + prefixed with an auto-incremented + row number based on the current + page and pagination setting. +

+
+
+ +
+ +
+

+ Yes, you can export list view records into: + PDF, XLSX, CSV. +

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

+ Latest Release 18.0.1.0.0 +

+ + 29th July, 2025 + +
+
+
+
+
+ Add +
+
+
+
    +
  • + Initial Commit +
  • + +
+
+
+
+
+
+
+
+
+
+ + + +
+

+ Related Products +

+ +
+ + +
+

+ Our Services

+ +
+ +
+
+ .... +
+
+ +
+ + +
+
+ + + + + + diff --git a/custom_list_view/static/src/js/list_controller.js b/custom_list_view/static/src/js/list_controller.js new file mode 100644 index 000000000..909b4a9b2 --- /dev/null +++ b/custom_list_view/static/src/js/list_controller.js @@ -0,0 +1,188 @@ +/** @odoo-module */ +import { patch } from "@web/core/utils/patch"; +import { ListController } from '@web/views/list/list_controller'; +import { download } from "@web/core/network/download"; +import { rpc } from "@web/core/network/rpc"; +import { AlertDialog } from "@web/core/confirmation_dialog/confirmation_dialog"; +import { _t } from "@web/core/l10n/translation"; + +patch(ListController.prototype, { + /** + * Handle the click event for exporting data to a PDF. + */ + _onClickPDF: async function() { + var self = this; + // Retrieve the fields to export + const fields = this.props.archInfo.columns + .filter((col) => ( + (col.optional === false || col.optional === "show") && + col.invisible !== "True" + )).map((col) => this.props.fields[col.name]); + const exportFields = fields.map((field) => ({ + name: field.name, + label: field.label || field.string, + })); + const resIds = await this.getSelectedResIds(); + var length_field = Array.from(Array(exportFields.length).keys()); + // Make a JSON-RPC request to retrieve the data for the report + rpc('/get_data', { + 'model': this.model.root.resModel, + 'res_ids': resIds.length > 0 && resIds, + 'fields': exportFields, + 'grouped_by': this.model.root.groupBy, + 'context': this.props.context, + 'domain': this.model.root.domain, + 'context': this.props.context, + }).then(function(data) { + var model = self.model.root.resModel + // Generate and download the PDF report + return self.model.action.doAction({ + type: "ir.actions.report", + report_type: "qweb-pdf", + report_name: 'custom_list_view.print_pdf_listview', + report_file: "custom_list_view.print_pdf_listview", + data: { + 'length': length_field, + 'record': data + } + }); + }); + }, + /** + * Handle the click event for exporting data to Excel. + */ + _onClickExcel: async function() { + // Retrieve the fields to export + const fields = this.props.archInfo.columns + .filter((col) => ( + (col.optional === false || col.optional === "show") && + col.invisible !== "True" + )).map((col) => this.props.fields[col.name]); + const exportFields = fields.map((field) => ({ + name: field.name, + label: field.label || field.string, + store: field.store, + type: field.field_type || field.type, + })); + const resIds = await this.getSelectedResIds(); + const import_compat = false + // Make a request to download the Excel file + await download({ + data: { + data: JSON.stringify({ + import_compat, + context: this.props.context, + domain: this.model.root.domain, + fields: exportFields, + groupby: this.model.root.groupBy, + ids: resIds.length > 0 && resIds, + model: this.model.root.resModel, + }), + }, + url: `/web/export/xlsx`, + }); + }, + /** + * Handle the click event for exporting data to CSV. + */ + _onClickCSV: async function() { + const fields = this.props.archInfo.columns + .filter((col) => ( + (col.optional === false || col.optional === "show") && + col.invisible !== "True" + )).map((col) => this.props.fields[col.name]); + const exportFields = fields.map((field) => ({ + name: field.name, + label: field.label || field.string, + store: field.store, + type: field.field_type || field.type, + })); + const resIds = await this.getSelectedResIds(); + const import_compat = false + // Make a request to download the CSV file + await download({ + data: { + data: JSON.stringify({ + import_compat, + context: this.props.context, + domain: this.model.root.domain, + fields: exportFields, + groupby: this.model.root.groupBy, + ids: resIds.length > 0 && resIds, + model: this.model.root.resModel, + }), + }, + url: `/web/export/csv`, + }); + }, + /** + * Handle the click event for copying data to the clipboard. + */ + _onClickCopy: async function () { + const self = this; + + // Step 1: Prepare fields to export + const fields = this.props.archInfo.columns + .filter((col) => + (col.optional === false || col.optional === "show") && + col.invisible !== "True" + ).map((col) => this.props.fields[col.name]); + + const exportFields = fields.map((field) => ({ + name: field.name, + label: field.label || field.string, + })); + + // Step 2: Get selected record IDs + const resIds = await this.getSelectedResIds(); + + // Step 3: Request data from the backend + rpc('/get_data/copy', { + model: this.model.root.resModel, + res_ids: resIds.length > 0 ? resIds : false, + fields: exportFields, + grouped_by: this.model.root.groupBy, + domain: this.model.root.domain, + context: this.props.context, + }).then(function (data) { + + // Step 4: Convert to tab-separated text + const recText = data.map((record) => record.join("\t")).join("\n"); + + // Step 5: Copy to clipboard + if (navigator.clipboard && navigator.clipboard.writeText) { + navigator.clipboard.writeText(recText).then(() => { + self.dialogService.add(AlertDialog, { + title: _t('Copied!'), + body: _t('Records copied to clipboard.'), + confirmLabel: _t('OK'), + }); + }).catch((err) => { + console.error("Clipboard error:", err); + self.dialogService.add(AlertDialog, { + title: _t('Failed'), + body: _t('Clipboard copy failed.'), + confirmLabel: _t('OK'), + }); + }); + } else { + // Fallback: Create a temporary textarea and select/copy + const textarea = document.createElement("textarea"); + textarea.value = recText; + document.body.appendChild(textarea); + textarea.select(); + try { + document.execCommand("copy"); + self.dialogService.add(AlertDialog, { + title: _t('Copied!'), + body: _t('Records copied to clipboard.'), + confirmLabel: _t('OK'), + }); + } catch (err) { + console.error("Fallback clipboard copy failed:", err); + } + document.body.removeChild(textarea); + } + }); + }, +}); diff --git a/custom_list_view/static/src/js/list_renderer.js b/custom_list_view/static/src/js/list_renderer.js new file mode 100644 index 000000000..e9738c97c --- /dev/null +++ b/custom_list_view/static/src/js/list_renderer.js @@ -0,0 +1,24 @@ +/** @odoo-module **/ + +import { ListRenderer } from "@web/views/list/list_renderer"; +import { patch } from "@web/core/utils/patch"; + +patch(ListRenderer.prototype, { + toggleRecordSelection(record) { + const result = super.toggleRecordSelection(...arguments); + + // Try to find the checkbox that triggered the selection + const activeEl = document.activeElement; + const selectedRecord = activeEl.closest("tr"); + + if (activeEl && activeEl.type === "checkbox") { + if (activeEl.checked) { + selectedRecord.classList.add("selected_record"); + } else { + selectedRecord.classList.remove("selected_record"); + } + } + + return result; + } +}); diff --git a/custom_list_view/static/src/xml/list_controller.xml b/custom_list_view/static/src/xml/list_controller.xml new file mode 100644 index 000000000..ea45807df --- /dev/null +++ b/custom_list_view/static/src/xml/list_controller.xml @@ -0,0 +1,22 @@ + + + + + + + + + + + + + +