diff --git a/one2many_search_widget/README.rst b/one2many_search_widget/README.rst new file mode 100644 index 000000000..86b8ce391 --- /dev/null +++ b/one2many_search_widget/README.rst @@ -0,0 +1,46 @@ +.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg + :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html + :alt: License: AGPL-3 + +One2many Search Widget +=============== +* Quick Search Feature For One2many Fields In Odoo + +Installation +============ + - www.odoo.com/documentation/16.0/setup/install.html + - Install our custom addon + +License +------- +General Public License, Version 3 (AGPL v3). +(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html) + +Company +------- +* 'Cybrosys Techno Solutions `__ + +Credits +------- +* Developer: +(v16) Unnimaya C O @ Cybrosys + + +Contacts +-------- +* Mail Contact : odoo@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 +========== +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com + +Further information +=================== +HTML Description: ``__ + diff --git a/one2many_search_widget/__init__.py b/one2many_search_widget/__init__.py new file mode 100755 index 000000000..788d16362 --- /dev/null +++ b/one2many_search_widget/__init__.py @@ -0,0 +1,21 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Unnimaya C O (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU 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 . +# +############################################################################# diff --git a/one2many_search_widget/__manifest__.py b/one2many_search_widget/__manifest__.py new file mode 100755 index 000000000..34e101784 --- /dev/null +++ b/one2many_search_widget/__manifest__.py @@ -0,0 +1,46 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions() +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU 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': "One2many Search Widget", + "version": "16.0.1.0.0", + 'summary': "Quick Search Feature For One2many Fields In Odoo", + 'description': 'One2Many Search Widget Helps the User to Search for a Word or Number. The One2many Rows Satisfying the ' + 'Search will be Displayed and the Others get Hided.', + "website": "https://www.cybrosys.com", + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'category': 'Extra Tools', + "author": "Cybrosys Techno Solutions", + "license": "AGPL-3", + 'depends': ['base', 'web'], + 'assets': { + 'web.assets_backend': [ + '/one2many_search_widget/static/src/css/header.css', + '/one2many_search_widget/static/src/js/one2manySearch.js', + '/one2many_search_widget/static/src/xml/one2manysearch.xml', + ], + }, + "installable": True, + "application": False, + 'images': ['static/description/banner.png'], + 'auto_install': False, +} diff --git a/one2many_search_widget/doc/RELEASE_NOTES.md b/one2many_search_widget/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..d8ffdf3b7 --- /dev/null +++ b/one2many_search_widget/doc/RELEASE_NOTES.md @@ -0,0 +1,8 @@ +## Module + +#### 03.04.2023 +#### Version 16.0.1.0.0 +#### ADD +- Initial commit for One2many Search Widget + + diff --git a/one2many_search_widget/static/description/assets/icons/check.png b/one2many_search_widget/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/one2many_search_widget/static/description/assets/icons/check.png differ diff --git a/one2many_search_widget/static/description/assets/icons/chevron.png b/one2many_search_widget/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/one2many_search_widget/static/description/assets/icons/chevron.png differ diff --git a/one2many_search_widget/static/description/assets/icons/cogs.png b/one2many_search_widget/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/one2many_search_widget/static/description/assets/icons/cogs.png differ diff --git a/one2many_search_widget/static/description/assets/icons/consultation.png b/one2many_search_widget/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/one2many_search_widget/static/description/assets/icons/consultation.png differ diff --git a/one2many_search_widget/static/description/assets/icons/ecom-black.png b/one2many_search_widget/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/one2many_search_widget/static/description/assets/icons/ecom-black.png differ diff --git a/one2many_search_widget/static/description/assets/icons/education-black.png b/one2many_search_widget/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/one2many_search_widget/static/description/assets/icons/education-black.png differ diff --git a/one2many_search_widget/static/description/assets/icons/hotel-black.png b/one2many_search_widget/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/one2many_search_widget/static/description/assets/icons/hotel-black.png differ diff --git a/one2many_search_widget/static/description/assets/icons/license.png b/one2many_search_widget/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/one2many_search_widget/static/description/assets/icons/license.png differ diff --git a/one2many_search_widget/static/description/assets/icons/lifebuoy.png b/one2many_search_widget/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/one2many_search_widget/static/description/assets/icons/lifebuoy.png differ diff --git a/one2many_search_widget/static/description/assets/icons/manufacturing-black.png b/one2many_search_widget/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/one2many_search_widget/static/description/assets/icons/manufacturing-black.png differ diff --git a/one2many_search_widget/static/description/assets/icons/pos-black.png b/one2many_search_widget/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/one2many_search_widget/static/description/assets/icons/pos-black.png differ diff --git a/one2many_search_widget/static/description/assets/icons/puzzle.png b/one2many_search_widget/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/one2many_search_widget/static/description/assets/icons/puzzle.png differ diff --git a/one2many_search_widget/static/description/assets/icons/restaurant-black.png b/one2many_search_widget/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/one2many_search_widget/static/description/assets/icons/restaurant-black.png differ diff --git a/one2many_search_widget/static/description/assets/icons/service-black.png b/one2many_search_widget/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/one2many_search_widget/static/description/assets/icons/service-black.png differ diff --git a/one2many_search_widget/static/description/assets/icons/trading-black.png b/one2many_search_widget/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/one2many_search_widget/static/description/assets/icons/trading-black.png differ diff --git a/one2many_search_widget/static/description/assets/icons/training.png b/one2many_search_widget/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/one2many_search_widget/static/description/assets/icons/training.png differ diff --git a/one2many_search_widget/static/description/assets/icons/update.png b/one2many_search_widget/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/one2many_search_widget/static/description/assets/icons/update.png differ diff --git a/one2many_search_widget/static/description/assets/icons/user.png b/one2many_search_widget/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/one2many_search_widget/static/description/assets/icons/user.png differ diff --git a/one2many_search_widget/static/description/assets/icons/wrench.png b/one2many_search_widget/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/one2many_search_widget/static/description/assets/icons/wrench.png differ diff --git a/one2many_search_widget/static/description/assets/misc/categories.png b/one2many_search_widget/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/one2many_search_widget/static/description/assets/misc/categories.png differ diff --git a/one2many_search_widget/static/description/assets/misc/check-box.png b/one2many_search_widget/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/one2many_search_widget/static/description/assets/misc/check-box.png differ diff --git a/one2many_search_widget/static/description/assets/misc/compass.png b/one2many_search_widget/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/one2many_search_widget/static/description/assets/misc/compass.png differ diff --git a/one2many_search_widget/static/description/assets/misc/corporate.png b/one2many_search_widget/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/one2many_search_widget/static/description/assets/misc/corporate.png differ diff --git a/one2many_search_widget/static/description/assets/misc/customer-support.png b/one2many_search_widget/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/one2many_search_widget/static/description/assets/misc/customer-support.png differ diff --git a/one2many_search_widget/static/description/assets/misc/cybrosys-logo.png b/one2many_search_widget/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/one2many_search_widget/static/description/assets/misc/cybrosys-logo.png differ diff --git a/one2many_search_widget/static/description/assets/misc/features.png b/one2many_search_widget/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/one2many_search_widget/static/description/assets/misc/features.png differ diff --git a/one2many_search_widget/static/description/assets/misc/logo.png b/one2many_search_widget/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/one2many_search_widget/static/description/assets/misc/logo.png differ diff --git a/one2many_search_widget/static/description/assets/misc/pictures.png b/one2many_search_widget/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/one2many_search_widget/static/description/assets/misc/pictures.png differ diff --git a/one2many_search_widget/static/description/assets/misc/pie-chart.png b/one2many_search_widget/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/one2many_search_widget/static/description/assets/misc/pie-chart.png differ diff --git a/one2many_search_widget/static/description/assets/misc/right-arrow.png b/one2many_search_widget/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/one2many_search_widget/static/description/assets/misc/right-arrow.png differ diff --git a/one2many_search_widget/static/description/assets/misc/star.png b/one2many_search_widget/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/one2many_search_widget/static/description/assets/misc/star.png differ diff --git a/one2many_search_widget/static/description/assets/misc/support.png b/one2many_search_widget/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/one2many_search_widget/static/description/assets/misc/support.png differ diff --git a/one2many_search_widget/static/description/assets/misc/whatsapp.png b/one2many_search_widget/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/one2many_search_widget/static/description/assets/misc/whatsapp.png differ diff --git a/one2many_search_widget/static/description/assets/modules/l1.png b/one2many_search_widget/static/description/assets/modules/l1.png new file mode 100644 index 000000000..ed175b076 Binary files /dev/null and b/one2many_search_widget/static/description/assets/modules/l1.png differ diff --git a/one2many_search_widget/static/description/assets/modules/l2.png b/one2many_search_widget/static/description/assets/modules/l2.png new file mode 100644 index 000000000..a3194264c Binary files /dev/null and b/one2many_search_widget/static/description/assets/modules/l2.png differ diff --git a/one2many_search_widget/static/description/assets/modules/l3.png b/one2many_search_widget/static/description/assets/modules/l3.png new file mode 100644 index 000000000..e894393ef Binary files /dev/null and b/one2many_search_widget/static/description/assets/modules/l3.png differ diff --git a/one2many_search_widget/static/description/assets/modules/l4.png b/one2many_search_widget/static/description/assets/modules/l4.png new file mode 100644 index 000000000..f3c986fc1 Binary files /dev/null and b/one2many_search_widget/static/description/assets/modules/l4.png differ diff --git a/one2many_search_widget/static/description/assets/modules/l5.png b/one2many_search_widget/static/description/assets/modules/l5.png new file mode 100644 index 000000000..b21837312 Binary files /dev/null and b/one2many_search_widget/static/description/assets/modules/l5.png differ diff --git a/one2many_search_widget/static/description/assets/modules/l6.png b/one2many_search_widget/static/description/assets/modules/l6.png new file mode 100644 index 000000000..e64a5b55c Binary files /dev/null and b/one2many_search_widget/static/description/assets/modules/l6.png differ diff --git a/one2many_search_widget/static/description/assets/screenshots/Screenshot.png b/one2many_search_widget/static/description/assets/screenshots/Screenshot.png new file mode 100644 index 000000000..d6428dd15 Binary files /dev/null and b/one2many_search_widget/static/description/assets/screenshots/Screenshot.png differ diff --git a/one2many_search_widget/static/description/assets/screenshots/Screenshot1.png b/one2many_search_widget/static/description/assets/screenshots/Screenshot1.png new file mode 100644 index 000000000..ce074561b Binary files /dev/null and b/one2many_search_widget/static/description/assets/screenshots/Screenshot1.png differ diff --git a/one2many_search_widget/static/description/assets/screenshots/Screenshot2.png b/one2many_search_widget/static/description/assets/screenshots/Screenshot2.png new file mode 100644 index 000000000..5081ebd0e Binary files /dev/null and b/one2many_search_widget/static/description/assets/screenshots/Screenshot2.png differ diff --git a/one2many_search_widget/static/description/assets/screenshots/Screenshot3.png b/one2many_search_widget/static/description/assets/screenshots/Screenshot3.png new file mode 100644 index 000000000..2a24d81eb Binary files /dev/null and b/one2many_search_widget/static/description/assets/screenshots/Screenshot3.png differ diff --git a/one2many_search_widget/static/description/assets/screenshots/Screenshot4.png b/one2many_search_widget/static/description/assets/screenshots/Screenshot4.png new file mode 100644 index 000000000..156730c51 Binary files /dev/null and b/one2many_search_widget/static/description/assets/screenshots/Screenshot4.png differ diff --git a/one2many_search_widget/static/description/assets/screenshots/hero.gif b/one2many_search_widget/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..455f53794 Binary files /dev/null and b/one2many_search_widget/static/description/assets/screenshots/hero.gif differ diff --git a/one2many_search_widget/static/description/banner.png b/one2many_search_widget/static/description/banner.png new file mode 100644 index 000000000..72ef14f87 Binary files /dev/null and b/one2many_search_widget/static/description/banner.png differ diff --git a/one2many_search_widget/static/description/icon.png b/one2many_search_widget/static/description/icon.png new file mode 100644 index 000000000..04505936b Binary files /dev/null and b/one2many_search_widget/static/description/icon.png differ diff --git a/one2many_search_widget/static/description/index.html b/one2many_search_widget/static/description/index.html new file mode 100644 index 000000000..281424f8b --- /dev/null +++ b/one2many_search_widget/static/description/index.html @@ -0,0 +1,628 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+
+ + + +

+ One2many Search Widget

+

+ Quick Search Features of One2many Fields In Odoo

+ + + +
+ + +
+
+ +
+

+ Explore This + Module

+
+ + + + +
+
+ +
+

+ Overview +

+
+
+
+ This module helps to enable quick search option in any One2Many field in odoo. + This widget will work on any one2many either it will be Odoo's default one2many or Custom addons one2many. You + just need to add widget in XML file. + +
+
+ + + +
+
+ +
+

+ Features +

+
+
+
+
+ + User can search from One2many with the help of this widget. +
+ +
+ + It is possible to search both text and number +
+
+
+ + + +
+
+ +
+

+ Screenshots +

+
+
+
+
+

+ Add one2many_search as the widget of One2many Field +

+ +
+
+

+ Search Bar is Present above the One2many Field +

+

A search bar is visible above the One2many field with 'one2many_search' widget

+ +
+
+

If the search bar is blank, then all rows of One2many will be visible

+ + +
+
+

+ One2many is filtered based on the Text in Search Bar

+ +
+ +
+

+ One2many is filtered based on the Numbers in Search Bar

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

+ Related + Products +

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

+ Our Services +

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

+ Our + Industries +

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

+ Easily procure + and + sell your products

+
+
+ +
+
+ +
+ POS +
+

+ Easy + configuration + and convivial experience

+
+
+ +
+
+ +
+ Education +
+

+ A platform for + educational management

+
+
+ +
+
+ +
+ Manufacturing +
+

+ Plan, track and + schedule your operations

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

+ Mobile + friendly, + awe-inspiring product pages

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

+ Keep track of + services and invoice

+
+
+ +
+
+ +
+ Restaurant +
+

+ Run your bar or + restaurant methodically

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

+ An + all-inclusive + hotel management application

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

+ Support +

+
+
+
+
+
+
+ +
+
+

Need Help?

+

Got questions or need help? + Get in touch.

+ +

+ odoo@cybrosys.com

+
+
+
+
+
+
+
+ +
+
+

WhatsApp

+

Say hi to us on WhatsApp!

+ +

+ +91 86068 + 27707

+
+
+
+
+
+
+
+ +
+
+
+ \ No newline at end of file diff --git a/one2many_search_widget/static/src/css/header.css b/one2many_search_widget/static/src/css/header.css new file mode 100644 index 000000000..be221d6ed --- /dev/null +++ b/one2many_search_widget/static/src/css/header.css @@ -0,0 +1,12 @@ + +.oe_search_value{ + border-radius: 25px; + border: 2px solid #eceff2; + padding: 10px; + margin-top: 20px; + margin-left: 10px; + width: 600px; + height: 20px; + color:#495057 + font-size: 16px; +} \ No newline at end of file diff --git a/one2many_search_widget/static/src/js/one2manySearch.js b/one2many_search_widget/static/src/js/one2manySearch.js new file mode 100755 index 000000000..bcd7523db --- /dev/null +++ b/one2many_search_widget/static/src/js/one2manySearch.js @@ -0,0 +1,22 @@ +/** @odoo-module **/ +import { registry } from "@web/core/registry"; +import { X2ManyField } from "@web/views/fields/x2many/x2many_field"; + +export class One2ManySearch extends X2ManyField { + /** + * Override to include the onInputKeyUp method. + * + * Every time entering anything to the text box, the One2many field + * containing the content of text box will toggle. + * record and form view. + * + */ + onInputKeyUp() { + var value = $(event.currentTarget).val().toLowerCase(); + $(".o_list_table tr:not(:lt(1))").filter(function() { + $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1) + }); + } +} +One2ManySearch.template = "One2ManySearchTemplate"; +registry.category("fields").add("one2many_search", One2ManySearch); \ No newline at end of file diff --git a/one2many_search_widget/static/src/xml/one2manysearch.xml b/one2many_search_widget/static/src/xml/one2manysearch.xml new file mode 100644 index 000000000..b09a3cb41 --- /dev/null +++ b/one2many_search_widget/static/src/xml/one2manysearch.xml @@ -0,0 +1,36 @@ + + + + + +
+
+ +
+
+ + + +
+
+ props.value.count > props.value.limit + +
+
+
\ No newline at end of file