diff --git a/auto_fill/README.rst b/auto_fill/README.rst new file mode 100755 index 000000000..92c0684e4 --- /dev/null +++ b/auto_fill/README.rst @@ -0,0 +1,64 @@ +.. 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 + +Auto Fill +========= +* Widget that suggests field value in existing records +* Widget = **auto_fill** + +Developer +========= +* Developer: + odoo v11 Avinash Nk (odoo@cybrosys.com) + odoo v12 Akshay Babu + odoo v16 Mruthul Raj +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (AGPL v3). +(https://www.odoo.com/documentation/user/16.0/legal/licenses/licenses.html) + +Known issues / Roadmap +====================== + +* ... + +Credits +------- +Developers: Version 16 - Mruthul @cybrosys, +Contact: odoo@cybrosys.com + + +Bug Tracker +=========== + +Contact odoo@cybrosys.com + + +Contributors +------------ + +* Mruthul Raj + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com +* Website : https://cybrosys.com + + +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/auto_fill/__init__.py b/auto_fill/__init__.py new file mode 100755 index 000000000..638b31c60 --- /dev/null +++ b/auto_fill/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Mruthul (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from . import controllers diff --git a/auto_fill/__manifest__.py b/auto_fill/__manifest__.py new file mode 100755 index 000000000..c6899b9fd --- /dev/null +++ b/auto_fill/__manifest__.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Mruthul (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +{ + 'name': 'Auto Fill', + 'version': '16.0.1.0.0', + 'summary': """Widget that suggests field value from existing records""", + 'description': 'Widget for auto completing a character field according to its existing record values', + 'category': 'Extra Tools', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['base'], + "assets": { + 'web.assets_backend': [ + 'auto_fill/static/src/css/auto_fill.css', + 'auto_fill/static/src/js/auto_fill.js', + 'auto_fill/static/src/xml/auto_fill.xml', + ], + }, + 'images': ['static/description/banner.jpg'], + 'license': 'AGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/auto_fill/controllers/__init__.py b/auto_fill/controllers/__init__.py new file mode 100755 index 000000000..daf5c4487 --- /dev/null +++ b/auto_fill/controllers/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Mruthul (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from . import auto_fill diff --git a/auto_fill/controllers/auto_fill.py b/auto_fill/controllers/auto_fill.py new file mode 100755 index 000000000..2d815d345 --- /dev/null +++ b/auto_fill/controllers/auto_fill.py @@ -0,0 +1,58 @@ +# -*- coding: utf-8 -*- +############################################################################### +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Mruthul (odoo@cybrosys.com) +# +# You can modify it under the terms of the GNU AFFERO +# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. +# +# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE +# (AGPL v3) along with this program. +# If not, see . +# +############################################################################### +from odoo import http +from odoo.http import request + + +class GetMatchingRecords(http.Controller): + """This is a controller for fetching data from the specific field + from backend + get_matching_records: + this function fetch data from backend and return + the value in res to the js + """ + + @http.route(['/matching/records'], type='json', auth="none") + def get_matching_records(self, **kwargs): + """summary: + This is a route which is called from js to get data + from backend + Args: + **kwargs:Which will have the values of model,field,value + which is passed from js as args + Return: + This function returns res that have the values fetched + from database + """ + model = str(kwargs.get('model', '')) + field = str(kwargs.get('field', '')) + value = str(kwargs.get('value', '')) + model = model.replace(".", "_") + cr = request.cr + if len(value) > 0: + query = """SELECT %s FROM %s WHERE %s ~* '%s' GROUP BY %s""" % ( + field, model, field, value, field) + cr.execute(query) + res = cr.fetchall() + else: + res = [] + return res diff --git a/auto_fill/doc/RELEASE_NOTES.md b/auto_fill/doc/RELEASE_NOTES.md new file mode 100644 index 000000000..14d1fb804 --- /dev/null +++ b/auto_fill/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 20.05.2023 +#### Version 16.0.1.0.0 +#### ADD + +- Initial Commit For Auto Fill \ No newline at end of file diff --git a/auto_fill/static/description/assets/icons/check.png b/auto_fill/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/auto_fill/static/description/assets/icons/check.png differ diff --git a/auto_fill/static/description/assets/icons/chevron.png b/auto_fill/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/auto_fill/static/description/assets/icons/chevron.png differ diff --git a/auto_fill/static/description/assets/icons/cogs.png b/auto_fill/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/auto_fill/static/description/assets/icons/cogs.png differ diff --git a/auto_fill/static/description/assets/icons/consultation.png b/auto_fill/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/auto_fill/static/description/assets/icons/consultation.png differ diff --git a/auto_fill/static/description/assets/icons/ecom-black.png b/auto_fill/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/auto_fill/static/description/assets/icons/ecom-black.png differ diff --git a/auto_fill/static/description/assets/icons/education-black.png b/auto_fill/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/auto_fill/static/description/assets/icons/education-black.png differ diff --git a/auto_fill/static/description/assets/icons/hotel-black.png b/auto_fill/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/auto_fill/static/description/assets/icons/hotel-black.png differ diff --git a/auto_fill/static/description/assets/icons/license.png b/auto_fill/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/auto_fill/static/description/assets/icons/license.png differ diff --git a/auto_fill/static/description/assets/icons/lifebuoy.png b/auto_fill/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/auto_fill/static/description/assets/icons/lifebuoy.png differ diff --git a/auto_fill/static/description/assets/icons/logo.png b/auto_fill/static/description/assets/icons/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/auto_fill/static/description/assets/icons/logo.png differ diff --git a/auto_fill/static/description/assets/icons/manufacturing-black.png b/auto_fill/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/auto_fill/static/description/assets/icons/manufacturing-black.png differ diff --git a/auto_fill/static/description/assets/icons/pos-black.png b/auto_fill/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/auto_fill/static/description/assets/icons/pos-black.png differ diff --git a/auto_fill/static/description/assets/icons/puzzle.png b/auto_fill/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/auto_fill/static/description/assets/icons/puzzle.png differ diff --git a/auto_fill/static/description/assets/icons/restaurant-black.png b/auto_fill/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/auto_fill/static/description/assets/icons/restaurant-black.png differ diff --git a/auto_fill/static/description/assets/icons/service-black.png b/auto_fill/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/auto_fill/static/description/assets/icons/service-black.png differ diff --git a/auto_fill/static/description/assets/icons/trading-black.png b/auto_fill/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/auto_fill/static/description/assets/icons/trading-black.png differ diff --git a/auto_fill/static/description/assets/icons/training.png b/auto_fill/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/auto_fill/static/description/assets/icons/training.png differ diff --git a/auto_fill/static/description/assets/icons/update.png b/auto_fill/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/auto_fill/static/description/assets/icons/update.png differ diff --git a/auto_fill/static/description/assets/icons/user.png b/auto_fill/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/auto_fill/static/description/assets/icons/user.png differ diff --git a/auto_fill/static/description/assets/icons/wrench.png b/auto_fill/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/auto_fill/static/description/assets/icons/wrench.png differ diff --git a/auto_fill/static/description/assets/misc/categories.png b/auto_fill/static/description/assets/misc/categories.png new file mode 100644 index 000000000..bedf1e0b1 Binary files /dev/null and b/auto_fill/static/description/assets/misc/categories.png differ diff --git a/auto_fill/static/description/assets/misc/check-box.png b/auto_fill/static/description/assets/misc/check-box.png new file mode 100644 index 000000000..42caf24b9 Binary files /dev/null and b/auto_fill/static/description/assets/misc/check-box.png differ diff --git a/auto_fill/static/description/assets/misc/compass.png b/auto_fill/static/description/assets/misc/compass.png new file mode 100644 index 000000000..d5fed8faa Binary files /dev/null and b/auto_fill/static/description/assets/misc/compass.png differ diff --git a/auto_fill/static/description/assets/misc/corporate.png b/auto_fill/static/description/assets/misc/corporate.png new file mode 100644 index 000000000..2eb13edbf Binary files /dev/null and b/auto_fill/static/description/assets/misc/corporate.png differ diff --git a/auto_fill/static/description/assets/misc/customer-support.png b/auto_fill/static/description/assets/misc/customer-support.png new file mode 100644 index 000000000..79efc72ed Binary files /dev/null and b/auto_fill/static/description/assets/misc/customer-support.png differ diff --git a/auto_fill/static/description/assets/misc/cybrosys-logo.png b/auto_fill/static/description/assets/misc/cybrosys-logo.png new file mode 100644 index 000000000..cc3cc0ccf Binary files /dev/null and b/auto_fill/static/description/assets/misc/cybrosys-logo.png differ diff --git a/auto_fill/static/description/assets/misc/features.png b/auto_fill/static/description/assets/misc/features.png new file mode 100644 index 000000000..b41769f77 Binary files /dev/null and b/auto_fill/static/description/assets/misc/features.png differ diff --git a/auto_fill/static/description/assets/misc/logo.png b/auto_fill/static/description/assets/misc/logo.png new file mode 100644 index 000000000..478462d3e Binary files /dev/null and b/auto_fill/static/description/assets/misc/logo.png differ diff --git a/auto_fill/static/description/assets/misc/pictures.png b/auto_fill/static/description/assets/misc/pictures.png new file mode 100644 index 000000000..56d255fe9 Binary files /dev/null and b/auto_fill/static/description/assets/misc/pictures.png differ diff --git a/auto_fill/static/description/assets/misc/pie-chart.png b/auto_fill/static/description/assets/misc/pie-chart.png new file mode 100644 index 000000000..426e05244 Binary files /dev/null and b/auto_fill/static/description/assets/misc/pie-chart.png differ diff --git a/auto_fill/static/description/assets/misc/right-arrow.png b/auto_fill/static/description/assets/misc/right-arrow.png new file mode 100644 index 000000000..730984a06 Binary files /dev/null and b/auto_fill/static/description/assets/misc/right-arrow.png differ diff --git a/auto_fill/static/description/assets/misc/star.png b/auto_fill/static/description/assets/misc/star.png new file mode 100644 index 000000000..2eb9ab29f Binary files /dev/null and b/auto_fill/static/description/assets/misc/star.png differ diff --git a/auto_fill/static/description/assets/misc/support.png b/auto_fill/static/description/assets/misc/support.png new file mode 100644 index 000000000..4f18b8b82 Binary files /dev/null and b/auto_fill/static/description/assets/misc/support.png differ diff --git a/auto_fill/static/description/assets/misc/whatsapp.png b/auto_fill/static/description/assets/misc/whatsapp.png new file mode 100644 index 000000000..d513a5356 Binary files /dev/null and b/auto_fill/static/description/assets/misc/whatsapp.png differ diff --git a/auto_fill/static/description/assets/modules/1.png b/auto_fill/static/description/assets/modules/1.png new file mode 100644 index 000000000..3415917c2 Binary files /dev/null and b/auto_fill/static/description/assets/modules/1.png differ diff --git a/auto_fill/static/description/assets/modules/2.png b/auto_fill/static/description/assets/modules/2.png new file mode 100644 index 000000000..31ed46762 Binary files /dev/null and b/auto_fill/static/description/assets/modules/2.png differ diff --git a/auto_fill/static/description/assets/modules/3.png b/auto_fill/static/description/assets/modules/3.png new file mode 100644 index 000000000..25ed3e0b6 Binary files /dev/null and b/auto_fill/static/description/assets/modules/3.png differ diff --git a/auto_fill/static/description/assets/modules/4.png b/auto_fill/static/description/assets/modules/4.png new file mode 100644 index 000000000..359d3e4d6 Binary files /dev/null and b/auto_fill/static/description/assets/modules/4.png differ diff --git a/auto_fill/static/description/assets/modules/5.gif b/auto_fill/static/description/assets/modules/5.gif new file mode 100644 index 000000000..2a5f8e659 Binary files /dev/null and b/auto_fill/static/description/assets/modules/5.gif differ diff --git a/auto_fill/static/description/assets/modules/5.png b/auto_fill/static/description/assets/modules/5.png new file mode 100644 index 000000000..3add135c3 Binary files /dev/null and b/auto_fill/static/description/assets/modules/5.png differ diff --git a/auto_fill/static/description/assets/modules/6.png b/auto_fill/static/description/assets/modules/6.png new file mode 100644 index 000000000..be454ea44 Binary files /dev/null and b/auto_fill/static/description/assets/modules/6.png differ diff --git a/auto_fill/static/description/assets/modules/approval_image.png b/auto_fill/static/description/assets/modules/approval_image.png new file mode 100644 index 000000000..84fe94e80 Binary files /dev/null and b/auto_fill/static/description/assets/modules/approval_image.png differ diff --git a/auto_fill/static/description/assets/modules/budget_image.png b/auto_fill/static/description/assets/modules/budget_image.png new file mode 100644 index 000000000..fe6aa6fe4 Binary files /dev/null and b/auto_fill/static/description/assets/modules/budget_image.png differ diff --git a/auto_fill/static/description/assets/modules/export_image.png b/auto_fill/static/description/assets/modules/export_image.png new file mode 100644 index 000000000..4e4ea0e51 Binary files /dev/null and b/auto_fill/static/description/assets/modules/export_image.png differ diff --git a/auto_fill/static/description/assets/modules/l1.png b/auto_fill/static/description/assets/modules/l1.png new file mode 100644 index 000000000..ed175b076 Binary files /dev/null and b/auto_fill/static/description/assets/modules/l1.png differ diff --git a/auto_fill/static/description/assets/modules/l2.png b/auto_fill/static/description/assets/modules/l2.png new file mode 100644 index 000000000..a3194264c Binary files /dev/null and b/auto_fill/static/description/assets/modules/l2.png differ diff --git a/auto_fill/static/description/assets/modules/l3.png b/auto_fill/static/description/assets/modules/l3.png new file mode 100644 index 000000000..e894393ef Binary files /dev/null and b/auto_fill/static/description/assets/modules/l3.png differ diff --git a/auto_fill/static/description/assets/modules/l4.png b/auto_fill/static/description/assets/modules/l4.png new file mode 100644 index 000000000..f3c986fc1 Binary files /dev/null and b/auto_fill/static/description/assets/modules/l4.png differ diff --git a/auto_fill/static/description/assets/modules/l5.png b/auto_fill/static/description/assets/modules/l5.png new file mode 100644 index 000000000..b21837312 Binary files /dev/null and b/auto_fill/static/description/assets/modules/l5.png differ diff --git a/auto_fill/static/description/assets/modules/l6.png b/auto_fill/static/description/assets/modules/l6.png new file mode 100644 index 000000000..e64a5b55c Binary files /dev/null and b/auto_fill/static/description/assets/modules/l6.png differ diff --git a/auto_fill/static/description/assets/modules/magento_image.png b/auto_fill/static/description/assets/modules/magento_image.png new file mode 100644 index 000000000..39de0820f Binary files /dev/null and b/auto_fill/static/description/assets/modules/magento_image.png differ diff --git a/auto_fill/static/description/assets/modules/pos_image.png b/auto_fill/static/description/assets/modules/pos_image.png new file mode 100644 index 000000000..c5932894b Binary files /dev/null and b/auto_fill/static/description/assets/modules/pos_image.png differ diff --git a/auto_fill/static/description/assets/modules/shopify_image.png b/auto_fill/static/description/assets/modules/shopify_image.png new file mode 100644 index 000000000..c6d92c16d Binary files /dev/null and b/auto_fill/static/description/assets/modules/shopify_image.png differ diff --git a/auto_fill/static/description/assets/screenshots/auto_fill.gif b/auto_fill/static/description/assets/screenshots/auto_fill.gif new file mode 100644 index 000000000..396f67f53 Binary files /dev/null and b/auto_fill/static/description/assets/screenshots/auto_fill.gif differ diff --git a/auto_fill/static/description/assets/screenshots/auto_fill.png b/auto_fill/static/description/assets/screenshots/auto_fill.png new file mode 100644 index 000000000..6ea1d42cf Binary files /dev/null and b/auto_fill/static/description/assets/screenshots/auto_fill.png differ diff --git a/auto_fill/static/description/assets/screenshots/hero.gif b/auto_fill/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..f48a64dc4 Binary files /dev/null and b/auto_fill/static/description/assets/screenshots/hero.gif differ diff --git a/auto_fill/static/description/assets/screenshots/hero.png b/auto_fill/static/description/assets/screenshots/hero.png new file mode 100644 index 000000000..df0ac9ab5 Binary files /dev/null and b/auto_fill/static/description/assets/screenshots/hero.png differ diff --git a/auto_fill/static/description/assets/screenshots/widget.png b/auto_fill/static/description/assets/screenshots/widget.png new file mode 100644 index 000000000..33090c594 Binary files /dev/null and b/auto_fill/static/description/assets/screenshots/widget.png differ diff --git a/auto_fill/static/description/banner.jpg b/auto_fill/static/description/banner.jpg new file mode 100644 index 000000000..2c7a2a63c Binary files /dev/null and b/auto_fill/static/description/banner.jpg differ diff --git a/auto_fill/static/description/icon.png b/auto_fill/static/description/icon.png new file mode 100644 index 000000000..807ca44f6 Binary files /dev/null and b/auto_fill/static/description/icon.png differ diff --git a/auto_fill/static/description/index.html b/auto_fill/static/description/index.html new file mode 100644 index 000000000..c46a9226a --- /dev/null +++ b/auto_fill/static/description/index.html @@ -0,0 +1,571 @@ +
+ +
+ +
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+ +
+
+
+ +

+ Auto Fill

+

Widget that suggests field value from existing records

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

Explore This + Module

+
+ + + + +
+
+ +
+

Overview +

+
+
+
+ This module helps login as any user in your odoo +
+
+ + + +
+
+ +
+

Features +

+
+
+
+
+ + Can insert any character or text fields. +
+
+ + Fast Result. +
+
+ + Attractive Design. +
+
+
+
+ + Widget = auto_fill. +
+
+
+ + + +
+
+ +
+

Screenshots +

+
+
+
+ +
+

Drill-down +

+ + +

Just add this widget to char fields to get the data

+
+ +
+

Drop Down +

+

You will see dropdown list with already added datas in that field

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

+ 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/auto_fill/static/src/css/auto_fill.css b/auto_fill/static/src/css/auto_fill.css new file mode 100755 index 000000000..faa235d6d --- /dev/null +++ b/auto_fill/static/src/css/auto_fill.css @@ -0,0 +1,28 @@ +#list_matches td { + padding-left: 7px !important; + padding-right: 7px !important; +} +#list_matches td:hover{ + background: #2d6cb3; + color: #fff; +} +.list_matches{ + width: 100%; + cursor: pointer; +} +.input_field_auto_fill { + border: 1px solid #D2D2FF; +} +#list_matches{ + z-index: 1051; + position: absolute; + background: #ffffff; + overflow-y: scroll; + height: auto; + display:none; + width:auto !important; + border: 1px solid #E5E5E5; + font-size: 13px; + padding: 5px 0px; + box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.176); +} \ No newline at end of file diff --git a/auto_fill/static/src/js/auto_fill.js b/auto_fill/static/src/js/auto_fill.js new file mode 100755 index 000000000..7b9ee83cd --- /dev/null +++ b/auto_fill/static/src/js/auto_fill.js @@ -0,0 +1,68 @@ +/** @odoo-module **/ +import {registry} from "@web/core/registry"; +import {useInputField} from "@web/views/fields/input_field_hook"; +const {Component,useRef} = owl; +var ajax = require('web.ajax'); +var Dialog = require('web.Dialog'); + +/** + * We define this module for getting data from controller and pass to frontend + * + */ +export class FieldAutoFill extends Component { + static template = 'FieldAutoFill'; + setup() { + super.setup(); + this.input = useRef('input_data'); + useInputField({ + getValue: () => this.props.value || "", + refName: "input_data" + }); + } + /** + *Its a keyup function which will display the values according to key pressed + */ + _onKeyup(ev) { + var value = ev.target.value; + var model = this.env.model.env.searchModel.resModel + var self=this; + if(this.props.type === "char") { + ajax.jsonRpc('/matching/records', 'call', { + model: model, + field: this.props.name, + value: value, + }) + .then(function(result) { + if(result.length > 0) { + self.input.el.nextSibling.style.display = 'block'; + var table = self.input.el.nextSibling; + $(table).find('tr').remove(); + var i; + for(i = 0; i < result.length; i++) { + var row = table.insertRow(i); + var cell = row.insertCell(0); + cell.innerHTML = result[i]; + } + } else { + self.input.el.nextSibling.style.display = 'none';; + } + }); + } else { + Dialog.alert(this, + "Only Supported for 'char' type please change field type to 'char'") + return false; + } + } + /* + *Function to add data to the input field from the table which will + display values + */ + _onTableRowClicked(ev) { + this.input.el.value = ev.target.textContent; + this.input.el.nextSibling.style.display = 'none'; + } + +} + +registry.category("fields") + .add('auto_fill', FieldAutoFill); \ No newline at end of file diff --git a/auto_fill/static/src/xml/auto_fill.xml b/auto_fill/static/src/xml/auto_fill.xml new file mode 100755 index 000000000..ba08e13a6 --- /dev/null +++ b/auto_fill/static/src/xml/auto_fill.xml @@ -0,0 +1,12 @@ + + + + + + + + \ No newline at end of file