diff --git a/auto_fill/README.rst b/auto_fill/README.rst deleted file mode 100644 index 61b2f30f4..000000000 --- a/auto_fill/README.rst +++ /dev/null @@ -1,59 +0,0 @@ -.. 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 -================ -* Widget for showing the suggestions to a character field -* Widget = **auto_fill** - -Developer -========= -* Developer: - odoo v11 Avinash Nk (odoo@cybrosys.com) - odoo v12 Akshay Babu - odoo v13 Mruthul Raj -Company -------- -* `Cybrosys Techno Solutions `__ - -License -------- -General Public License, Version 3 (AGPL v3). -(https://www.odoo.com/documentation/user/13.0/legal/licenses/licenses.html) - -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: ``__ \ No newline at end of file diff --git a/auto_fill/__init__.py b/auto_fill/__init__.py deleted file mode 100644 index 1605538eb..000000000 --- a/auto_fill/__init__.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2023-TODAY Cybrosys Technologies (). -# Author: Mruthul Raj() -# -# This program is free software: you can modify -# it under the terms of the GNU Affero General Public License (AGPL) as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -################################################################################### -from . import controllers diff --git a/auto_fill/__manifest__.py b/auto_fill/__manifest__.py deleted file mode 100644 index a4f9ee6f9..000000000 --- a/auto_fill/__manifest__.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2023-TODAY Cybrosys Technologies (). -# Author: Mruthul Raj() -# -# This program is free software: you can modify -# it under the terms of the GNU Affero General Public License (AGPL) as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -################################################################################### -{ - 'name': 'Auto Fill Widget', - 'version': '13.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'], - 'maintainer': 'Cybrosys Techno Solutions', - 'qweb': ['static/src/xml/auto_fill.xml'], - 'data': ['views/assets.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 deleted file mode 100644 index 4e3b56108..000000000 --- a/auto_fill/controllers/__init__.py +++ /dev/null @@ -1,22 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2023-TODAY Cybrosys Technologies (). -# Author: Mruthul Raj() -# -# This program is free software: you can modify -# it under the terms of the GNU Affero General Public License (AGPL) as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -################################################################################### -from . import auto_fill diff --git a/auto_fill/controllers/auto_fill.py b/auto_fill/controllers/auto_fill.py deleted file mode 100644 index bc2f1d29c..000000000 --- a/auto_fill/controllers/auto_fill.py +++ /dev/null @@ -1,47 +0,0 @@ -# -*- coding: utf-8 -*- -################################################################################### -# -# Cybrosys Technologies Pvt. Ltd. -# Copyright (C) 2023-TODAY Cybrosys Technologies (). -# Author: Mruthul Raj() -# -# This program is free software: you can modify -# it under the terms of the GNU Affero General Public License (AGPL) as -# published by the Free Software Foundation, either version 3 of the -# License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU Affero General Public License for more details. -# -# You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . -# -################################################################################### -from odoo import http -from odoo.http import request - - -class MatchingRecords(http.Controller): - """ - Controller class to get matching records based on provided criteria. - """ - @http.route(['/matching/records'], type='json', auth="none") - def get_matching_records(self, **kwargs): - """ - Retrieve matching records based on the provided model, field, and value. - Returns: - list: List of matching records. - """ - model = str(kwargs['model']) - field = str(kwargs['field']) - model = model.replace(".", "_") - if len(str(kwargs['value'])) > 0: - query = f"SELECT {field} FROM {model} WHERE " \ - f"{field} ~* '{str(kwargs['value'])}' GROUP BY {field}" - request.cr.execute(query) - res = request.cr.fetchall() - else: - res = [] - return res diff --git a/auto_fill/doc/RELEASE_NOTES.md b/auto_fill/doc/RELEASE_NOTES.md deleted file mode 100644 index 0b522e7c9..000000000 --- a/auto_fill/doc/RELEASE_NOTES.md +++ /dev/null @@ -1,6 +0,0 @@ -## Module - -#### 04.07.2023 -#### Version 13.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 deleted file mode 100644 index c8e85f51d..000000000 Binary files a/auto_fill/static/description/assets/icons/check.png and /dev/null differ diff --git a/auto_fill/static/description/assets/icons/chevron.png b/auto_fill/static/description/assets/icons/chevron.png deleted file mode 100644 index 2089293d6..000000000 Binary files a/auto_fill/static/description/assets/icons/chevron.png and /dev/null differ diff --git a/auto_fill/static/description/assets/icons/cogs.png b/auto_fill/static/description/assets/icons/cogs.png deleted file mode 100644 index 95d0bad62..000000000 Binary files a/auto_fill/static/description/assets/icons/cogs.png and /dev/null differ diff --git a/auto_fill/static/description/assets/icons/consultation.png b/auto_fill/static/description/assets/icons/consultation.png deleted file mode 100644 index 8319d4baa..000000000 Binary files a/auto_fill/static/description/assets/icons/consultation.png and /dev/null differ diff --git a/auto_fill/static/description/assets/icons/ecom-black.png b/auto_fill/static/description/assets/icons/ecom-black.png deleted file mode 100644 index a9385ff13..000000000 Binary files a/auto_fill/static/description/assets/icons/ecom-black.png and /dev/null differ diff --git a/auto_fill/static/description/assets/icons/education-black.png b/auto_fill/static/description/assets/icons/education-black.png deleted file mode 100644 index 3eb09b27b..000000000 Binary files a/auto_fill/static/description/assets/icons/education-black.png and /dev/null differ diff --git a/auto_fill/static/description/assets/icons/hotel-black.png b/auto_fill/static/description/assets/icons/hotel-black.png deleted file mode 100644 index 130f613be..000000000 Binary files a/auto_fill/static/description/assets/icons/hotel-black.png and /dev/null differ diff --git a/auto_fill/static/description/assets/icons/license.png b/auto_fill/static/description/assets/icons/license.png deleted file mode 100644 index a5869797e..000000000 Binary files a/auto_fill/static/description/assets/icons/license.png and /dev/null differ diff --git a/auto_fill/static/description/assets/icons/lifebuoy.png b/auto_fill/static/description/assets/icons/lifebuoy.png deleted file mode 100644 index 658d56ccc..000000000 Binary files a/auto_fill/static/description/assets/icons/lifebuoy.png and /dev/null differ diff --git a/auto_fill/static/description/assets/icons/logo.png b/auto_fill/static/description/assets/icons/logo.png deleted file mode 100644 index 478462d3e..000000000 Binary files a/auto_fill/static/description/assets/icons/logo.png and /dev/null differ diff --git a/auto_fill/static/description/assets/icons/manufacturing-black.png b/auto_fill/static/description/assets/icons/manufacturing-black.png deleted file mode 100644 index 697eb0e9f..000000000 Binary files a/auto_fill/static/description/assets/icons/manufacturing-black.png and /dev/null differ diff --git a/auto_fill/static/description/assets/icons/pos-black.png b/auto_fill/static/description/assets/icons/pos-black.png deleted file mode 100644 index 97c0f90c1..000000000 Binary files a/auto_fill/static/description/assets/icons/pos-black.png and /dev/null differ diff --git a/auto_fill/static/description/assets/icons/puzzle.png b/auto_fill/static/description/assets/icons/puzzle.png deleted file mode 100644 index 65cf854e7..000000000 Binary files a/auto_fill/static/description/assets/icons/puzzle.png and /dev/null differ diff --git a/auto_fill/static/description/assets/icons/restaurant-black.png b/auto_fill/static/description/assets/icons/restaurant-black.png deleted file mode 100644 index 4a35eb939..000000000 Binary files a/auto_fill/static/description/assets/icons/restaurant-black.png and /dev/null differ diff --git a/auto_fill/static/description/assets/icons/service-black.png b/auto_fill/static/description/assets/icons/service-black.png deleted file mode 100644 index 301ab51cb..000000000 Binary files a/auto_fill/static/description/assets/icons/service-black.png and /dev/null differ diff --git a/auto_fill/static/description/assets/icons/trading-black.png b/auto_fill/static/description/assets/icons/trading-black.png deleted file mode 100644 index 9398ba2f1..000000000 Binary files a/auto_fill/static/description/assets/icons/trading-black.png and /dev/null differ diff --git a/auto_fill/static/description/assets/icons/training.png b/auto_fill/static/description/assets/icons/training.png deleted file mode 100644 index 884ca024d..000000000 Binary files a/auto_fill/static/description/assets/icons/training.png and /dev/null differ diff --git a/auto_fill/static/description/assets/icons/update.png b/auto_fill/static/description/assets/icons/update.png deleted file mode 100644 index ecbc5a01a..000000000 Binary files a/auto_fill/static/description/assets/icons/update.png and /dev/null differ diff --git a/auto_fill/static/description/assets/icons/user.png b/auto_fill/static/description/assets/icons/user.png deleted file mode 100644 index 6ffb23d9f..000000000 Binary files a/auto_fill/static/description/assets/icons/user.png and /dev/null differ diff --git a/auto_fill/static/description/assets/icons/wrench.png b/auto_fill/static/description/assets/icons/wrench.png deleted file mode 100644 index 6c04dea0f..000000000 Binary files a/auto_fill/static/description/assets/icons/wrench.png and /dev/null differ diff --git a/auto_fill/static/description/assets/modules/appraisal_image.png b/auto_fill/static/description/assets/modules/appraisal_image.png deleted file mode 100644 index 0823d44d3..000000000 Binary files a/auto_fill/static/description/assets/modules/appraisal_image.png and /dev/null differ diff --git a/auto_fill/static/description/assets/modules/bio_image.png b/auto_fill/static/description/assets/modules/bio_image.png deleted file mode 100644 index acc34b287..000000000 Binary files a/auto_fill/static/description/assets/modules/bio_image.png and /dev/null differ diff --git a/auto_fill/static/description/assets/modules/core_image.gif b/auto_fill/static/description/assets/modules/core_image.gif deleted file mode 100644 index 814b0cfd3..000000000 Binary files a/auto_fill/static/description/assets/modules/core_image.gif and /dev/null differ diff --git a/auto_fill/static/description/assets/modules/dash_image.gif b/auto_fill/static/description/assets/modules/dash_image.gif deleted file mode 100644 index f5cac4e13..000000000 Binary files a/auto_fill/static/description/assets/modules/dash_image.gif and /dev/null differ diff --git a/auto_fill/static/description/assets/modules/export_stock.png b/auto_fill/static/description/assets/modules/export_stock.png deleted file mode 100644 index a8dade6e9..000000000 Binary files a/auto_fill/static/description/assets/modules/export_stock.png and /dev/null differ diff --git a/auto_fill/static/description/assets/modules/fleet_report.png b/auto_fill/static/description/assets/modules/fleet_report.png deleted file mode 100644 index 67d671382..000000000 Binary files a/auto_fill/static/description/assets/modules/fleet_report.png and /dev/null differ diff --git a/auto_fill/static/description/assets/modules/individual_product.png b/auto_fill/static/description/assets/modules/individual_product.png deleted file mode 100644 index 9e5f9363b..000000000 Binary files a/auto_fill/static/description/assets/modules/individual_product.png and /dev/null differ diff --git a/auto_fill/static/description/assets/modules/print_workorder.png b/auto_fill/static/description/assets/modules/print_workorder.png deleted file mode 100644 index bfdcc96c0..000000000 Binary files a/auto_fill/static/description/assets/modules/print_workorder.png and /dev/null differ diff --git a/auto_fill/static/description/assets/modules/project_report.png b/auto_fill/static/description/assets/modules/project_report.png deleted file mode 100644 index 46288555e..000000000 Binary files a/auto_fill/static/description/assets/modules/project_report.png and /dev/null differ diff --git a/auto_fill/static/description/assets/modules/salary_image.png b/auto_fill/static/description/assets/modules/salary_image.png deleted file mode 100644 index 127ea73a8..000000000 Binary files a/auto_fill/static/description/assets/modules/salary_image.png and /dev/null differ diff --git a/auto_fill/static/description/assets/modules/shift_image.png b/auto_fill/static/description/assets/modules/shift_image.png deleted file mode 100644 index 9d6978271..000000000 Binary files a/auto_fill/static/description/assets/modules/shift_image.png and /dev/null differ diff --git a/auto_fill/static/description/assets/modules/timesheet_emp.png b/auto_fill/static/description/assets/modules/timesheet_emp.png deleted file mode 100644 index 2c4c891a0..000000000 Binary files a/auto_fill/static/description/assets/modules/timesheet_emp.png and /dev/null differ diff --git a/auto_fill/static/description/assets/screenshots/auto_fill _.gif b/auto_fill/static/description/assets/screenshots/auto_fill _.gif deleted file mode 100644 index 78149aff1..000000000 Binary files a/auto_fill/static/description/assets/screenshots/auto_fill _.gif and /dev/null differ diff --git a/auto_fill/static/description/assets/screenshots/hero.png b/auto_fill/static/description/assets/screenshots/hero.png deleted file mode 100644 index df0ac9ab5..000000000 Binary files a/auto_fill/static/description/assets/screenshots/hero.png and /dev/null differ diff --git a/auto_fill/static/description/assets/screenshots/widget.png b/auto_fill/static/description/assets/screenshots/widget.png deleted file mode 100644 index 5821926c7..000000000 Binary files a/auto_fill/static/description/assets/screenshots/widget.png and /dev/null differ diff --git a/auto_fill/static/description/banner.jpg b/auto_fill/static/description/banner.jpg deleted file mode 100644 index 473718694..000000000 Binary files a/auto_fill/static/description/banner.jpg and /dev/null differ diff --git a/auto_fill/static/description/cybro_logo.png b/auto_fill/static/description/cybro_logo.png deleted file mode 100755 index bb309114c..000000000 Binary files a/auto_fill/static/description/cybro_logo.png and /dev/null differ diff --git a/auto_fill/static/description/icon.png b/auto_fill/static/description/icon.png deleted file mode 100644 index 9a353ea59..000000000 Binary files a/auto_fill/static/description/icon.png and /dev/null differ diff --git a/auto_fill/static/description/index.html b/auto_fill/static/description/index.html deleted file mode 100644 index cb4066316..000000000 --- a/auto_fill/static/description/index.html +++ /dev/null @@ -1,641 +0,0 @@ -
-
-
-
- -
-
-
- Community -
-
- Enterprise -
- -
-
-
-
- -
-
-
-

- Auto Fill Widget

-

- Widget that suggests field value from existing records -

- -
-
- - - - -
-
-

- Overview -

-
- -
-

- Widget for auto completing a character field according to its - existing record values.

- -
-
-
-
-

- Configuration -

-
- -
-

- After installing the module, you can put the tag - widget="auto_fill" in your form view.

- -
-
- - -
-
-

- Features -

-
- -
-
- -
-
-

- Can insert for any char fields

- -
-
-
-
- -
-
-

- Fast Result

- -
-
- -
-
- -
-
-

- Attractive Design

- -
-
- -
-
- -
-
-

- Widget = auto_fill

- -
-
- - -
- -
-
-

- Screenshots -

-
-
-

- Add widget="auto_fill"

- - -
-
-

- Values that was added before wil be shown like this

- - -
- - -
- - -
-
-

Suggested Products

-
- -
-
- - - -
-
-
-

Our Services

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

Our Industries

-
-
- -
-
- -
- Trading -
-

- Easily procure - and - sell your products

-
-
- -
-
- -
- POS -
-

- Easy - configuration - and convivial experience

-
-
- -
-
- -
- Education -
-

- A platform for - educational management

-
-
- -
-
- -
- Manufacturing -
-

- Plan, track and - schedule your operations

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

- Mobile - friendly, - awe-inspiring product pages

-
-
- -
-
- -
- Service Management -
-

- Keep track of - services and invoice

-
-
- -
-
- -
- Restaurant -
-

- Run your bar or - restaurant methodically

-
-
- -
-
- -
- Hotel Management -
-

- An - all-inclusive - hotel management application

-
-
- -
-
- - - - - -
-
-
-

Need Help?

-
-
-
- - -
- -
- -
- -
- WhatsApp -
-
-
- -
- -
- -
-
- -
- -
- -
-
- -
-
-
- - -
\ 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 deleted file mode 100644 index 7419d8fb0..000000000 --- a/auto_fill/static/src/css/auto_fill.css +++ /dev/null @@ -1,31 +0,0 @@ -.auto-fill-scrollbar { - 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); -} -.auto-fill-scrollbar td { - padding-left: 7px !important; - padding-right: 7px !important; -} -.auto-fill-scrollbar td:hover{ - background: #2d6cb3; - color: #fff; -} -.list_matches{ - width: 100%; - cursor: pointer; -} -.input_field_auto_fill { - border: 1px solid #D2D2FF; -} -.text_field_auto_fill { - border: 1px solid #D2D2FF; -} diff --git a/auto_fill/static/src/js/auto_fill.js b/auto_fill/static/src/js/auto_fill.js deleted file mode 100644 index 3768ebb8f..000000000 --- a/auto_fill/static/src/js/auto_fill.js +++ /dev/null @@ -1,71 +0,0 @@ -odoo.define('auto_fill.AutoFill', function (require) { - "use strict"; - var ajax = require('web.ajax'); - var basic_fields = require('web.basic_fields'); - var registry = require('web.field_registry'); - var CharField = require('web.basic_fields').FieldChar; - var FieldAutoFill = CharField.extend({ - template: 'FieldAutoFill', - events: _.extend({}, CharField.prototype.events, { - 'keyup': '_onKeyup', - 'click #list_matches': '_onTableRowClicked', - }), - /** - * Render the field in readonly mode. - */ - _renderReadonly: function () { - var show_value = this._formatValue(this.value); - this.$el.text(show_value); - }, - /** - * Get the current field value. - * @returns {string} The field value. - */ - _getValue: function () { - var $input = this.$el.find('input'); - return $input.val(); - }, - /** - * Event handler for the keyup event. - * Performs AJAX request to retrieve matching records based on the input value. - */ - _onKeyup: function (ev) { - var value = ev.target.value; - var self = this; - ajax.jsonRpc('/matching/records', 'call', { - model: this.model, - field: this.name, - value: value, - }).then(function (result){ - if (result.length > 0){ - self.el.lastElementChild.style.display = 'block' - var table = self.el.lastElementChild.children[0]; - $(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.el.lastElementChild.style.display = 'none' - } - }) ; - }, - /** - * Event handler for clicking on a table row. - * Updates the input field value with the clicked row's content. - * - * @param {Event} ev - The click event. - */ - _onTableRowClicked: function (ev) { - this.el.firstElementChild.firstElementChild.value = ev.target.textContent; - this.el.lastElementChild.style.display = 'none' - }, - }); - registry.add('auto_fill', FieldAutoFill); - return { - FieldAutoFill: 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 deleted file mode 100644 index 261333062..000000000 --- a/auto_fill/static/src/xml/auto_fill.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - -
- - -
- -
-
- -
-