diff --git a/product_detail_search/README.rst b/product_detail_search/README.rst new file mode 100755 index 000000000..54435acaa --- /dev/null +++ b/product_detail_search/README.rst @@ -0,0 +1,48 @@ +.. 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 + +Find Products in Pos and Stock using Barcode +============================================ +Find the product using barcode in the pos and inventory + +Configuration +============= +No additional configuration required + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +Lesser General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +Developer: (V17) Gokul P I , + +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/product_detail_search/__init__.py b/product_detail_search/__init__.py new file mode 100755 index 000000000..02f6d3ff6 --- /dev/null +++ b/product_detail_search/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Gokul P I (odoo@cybrosys.com) +# +# 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 models diff --git a/product_detail_search/__manifest__.py b/product_detail_search/__manifest__.py new file mode 100755 index 000000000..1271155dd --- /dev/null +++ b/product_detail_search/__manifest__.py @@ -0,0 +1,66 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Gokul P I (odoo@cybrosys.com) +# +# 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': 'Find Products in Pos and Stock using Barcode', + 'version': '18.0.1.0.0', + 'category': 'Point of Sale', + 'summary': 'Find Products in Pos and Stock using Barcode utilizes barcode' + ' scanning to quickly identify and track items. Each product' + ' is assigned a unique barcode,', + 'description': 'Find Products in Pos and Stock using Barcode in the POS' + ' and inventory modules brings numerous benefits to ' + 'retailers.It enhances operational efficiency, reduces ' + 'manual errors, improves customer service, and provides ' + 'valuable insights for better inventory management and ' + 'business decision-making.', + 'author': 'Cybrosys Techno Solutions', + 'company': 'Cybrosys Techno Solutions', + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['point_of_sale', 'stock'], + 'data': [ + 'views/stock_views.xml' + ], + 'images': [ + 'static/description/banner.jpg', + ], + 'assets': { + 'point_of_sale._assets_pos': [ + 'product_detail_search/static/src/css/pos.css', + 'product_detail_search/static/src/js/find_product_button.js', + 'product_detail_search/static/src/js/find_product.js', + 'product_detail_search/static/src/js/product_details.js', + 'product_detail_search/static/src/xml/find_product_screen_templates.xml', + 'product_detail_search/static/src/xml/product_details_templates.xml', + 'product_detail_search/static/src/xml/chrome_templates.xml', + ], + 'web.assets_backend': [ + 'product_detail_search/static/src/css/barcode.css', + 'product_detail_search/static/src/js/dashboard.js', + 'product_detail_search/static/src/xml/dashboard_templates.xml', + ], + }, + 'license': 'LGPL-3', + 'installable': True, + 'application': True, + 'auto_install': False, +} diff --git a/product_detail_search/doc/RELEASE_NOTES.md b/product_detail_search/doc/RELEASE_NOTES.md new file mode 100755 index 000000000..306e2549c --- /dev/null +++ b/product_detail_search/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 05.11.2024 +#### Version 18.0.1.0.0 +#### ADD + +- Initial commit for Find Products in Pos and Stock using Barcode diff --git a/product_detail_search/models/__init__.py b/product_detail_search/models/__init__.py new file mode 100755 index 000000000..05f416022 --- /dev/null +++ b/product_detail_search/models/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions (odoo@cybrosys.com) +# +# 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 product_template diff --git a/product_detail_search/models/product_template.py b/product_detail_search/models/product_template.py new file mode 100755 index 000000000..6b3082aff --- /dev/null +++ b/product_detail_search/models/product_template.py @@ -0,0 +1,73 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2024-TODAY Cybrosys Technologies() +# Author: Cybrosys Techno Solutions (odoo@cybrosys.com) +# +# 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 models,_ + + +class ProductTemplate(models.Model): + """Inheriting The product template for adding the product_detail_search + method""" + _inherit = 'product.template' + + def get_selection_label(self, object, field_name, field_value): + return _(dict( + self.env[object].fields_get(allfields=[field_name])[field_name][ + 'selection'])[field_value]) + + def product_detail_search(self, barcode): + """Find the details for the product When the barcode Scan is + Detected""" + product = self.env['product.product'].search( + [('barcode', '=', barcode)]) + if product: + product_type = self.get_selection_label('product.product','type', product.type) + product_details = [ + {'id': product.id, + 'display_name': product.display_name, 'name': product.name, + 'type': product.type, + 'tax_amount': product.taxes_id, + 'barcode': product.barcode, + 'default_code': product.default_code, + 'qty_available': product.qty_available, + 'list_price': product.list_price, + 'company_id': product.company_id if product.company_id else False, + 'category': product.categ_id.name + }] + specification = [color.strip() for color in + product.display_name.split("(")[ + -1].split(")")[0].split(",")] + symbol = self.env['res.currency'].browse(product.currency_id.id) + extra_details = {'symbol': str(symbol.symbol)} + if product.taxes_id: + extra_details.update({'tax_amount': str( + self.env['account.tax'].browse(product.taxes_id.id).name), + 'specification': specification}) + else: + extra_details.update({'tax_amount': 'No tax', + 'specification': specification}) + if product_type: + extra_details.update({'type': product_type}) + else: + extra_details.update({'type': False}) + product_details[0].update(extra_details) + else: + product_details = False + return product_details diff --git a/product_detail_search/static/description/assets/icons/arrows-repeat.svg b/product_detail_search/static/description/assets/icons/arrows-repeat.svg new file mode 100755 index 000000000..1d7efabc5 --- /dev/null +++ b/product_detail_search/static/description/assets/icons/arrows-repeat.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/product_detail_search/static/description/assets/icons/banner-1.png b/product_detail_search/static/description/assets/icons/banner-1.png new file mode 100755 index 000000000..c180db172 Binary files /dev/null and b/product_detail_search/static/description/assets/icons/banner-1.png differ diff --git a/product_detail_search/static/description/assets/icons/banner-2.svg b/product_detail_search/static/description/assets/icons/banner-2.svg new file mode 100755 index 000000000..e606d97d9 --- /dev/null +++ b/product_detail_search/static/description/assets/icons/banner-2.svg @@ -0,0 +1,73 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/product_detail_search/static/description/assets/icons/banner-bg.png b/product_detail_search/static/description/assets/icons/banner-bg.png new file mode 100755 index 000000000..a8238d3c0 Binary files /dev/null and b/product_detail_search/static/description/assets/icons/banner-bg.png differ diff --git a/product_detail_search/static/description/assets/icons/banner-bg.svg b/product_detail_search/static/description/assets/icons/banner-bg.svg new file mode 100755 index 000000000..b1378103e --- /dev/null +++ b/product_detail_search/static/description/assets/icons/banner-bg.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/product_detail_search/static/description/assets/icons/banner-call.svg b/product_detail_search/static/description/assets/icons/banner-call.svg new file mode 100755 index 000000000..96c687e81 --- /dev/null +++ b/product_detail_search/static/description/assets/icons/banner-call.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/product_detail_search/static/description/assets/icons/banner-mail.svg b/product_detail_search/static/description/assets/icons/banner-mail.svg new file mode 100755 index 000000000..cbf0d158d --- /dev/null +++ b/product_detail_search/static/description/assets/icons/banner-mail.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/product_detail_search/static/description/assets/icons/banner-pattern.svg b/product_detail_search/static/description/assets/icons/banner-pattern.svg new file mode 100755 index 000000000..9c1c7e101 --- /dev/null +++ b/product_detail_search/static/description/assets/icons/banner-pattern.svg @@ -0,0 +1,343 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/product_detail_search/static/description/assets/icons/banner-promo.svg b/product_detail_search/static/description/assets/icons/banner-promo.svg new file mode 100755 index 000000000..d52791b11 --- /dev/null +++ b/product_detail_search/static/description/assets/icons/banner-promo.svg @@ -0,0 +1,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/product_detail_search/static/description/assets/icons/brand-pair.svg b/product_detail_search/static/description/assets/icons/brand-pair.svg new file mode 100755 index 000000000..d8db7fc1e --- /dev/null +++ b/product_detail_search/static/description/assets/icons/brand-pair.svg @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/product_detail_search/static/description/assets/icons/check.png b/product_detail_search/static/description/assets/icons/check.png new file mode 100755 index 000000000..c8e85f51d Binary files /dev/null and b/product_detail_search/static/description/assets/icons/check.png differ diff --git a/product_detail_search/static/description/assets/icons/chevron.png b/product_detail_search/static/description/assets/icons/chevron.png new file mode 100755 index 000000000..2089293d6 Binary files /dev/null and b/product_detail_search/static/description/assets/icons/chevron.png differ diff --git a/product_detail_search/static/description/assets/icons/close-icon.svg b/product_detail_search/static/description/assets/icons/close-icon.svg new file mode 100755 index 000000000..df8cce37a --- /dev/null +++ b/product_detail_search/static/description/assets/icons/close-icon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/product_detail_search/static/description/assets/icons/cogs.png b/product_detail_search/static/description/assets/icons/cogs.png new file mode 100755 index 000000000..95d0bad62 Binary files /dev/null and b/product_detail_search/static/description/assets/icons/cogs.png differ diff --git a/product_detail_search/static/description/assets/icons/collabarate-icon.svg b/product_detail_search/static/description/assets/icons/collabarate-icon.svg new file mode 100755 index 000000000..dd4e10518 --- /dev/null +++ b/product_detail_search/static/description/assets/icons/collabarate-icon.svg @@ -0,0 +1,3 @@ + + + diff --git a/product_detail_search/static/description/assets/icons/consultation.png b/product_detail_search/static/description/assets/icons/consultation.png new file mode 100755 index 000000000..8319d4baa Binary files /dev/null and b/product_detail_search/static/description/assets/icons/consultation.png differ diff --git a/product_detail_search/static/description/assets/icons/cybro-logo.png b/product_detail_search/static/description/assets/icons/cybro-logo.png new file mode 100755 index 000000000..ff4b78220 Binary files /dev/null and b/product_detail_search/static/description/assets/icons/cybro-logo.png differ diff --git a/product_detail_search/static/description/assets/icons/down.svg b/product_detail_search/static/description/assets/icons/down.svg new file mode 100755 index 000000000..f21c36271 --- /dev/null +++ b/product_detail_search/static/description/assets/icons/down.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/product_detail_search/static/description/assets/icons/ecom-black.png b/product_detail_search/static/description/assets/icons/ecom-black.png new file mode 100755 index 000000000..a9385ff13 Binary files /dev/null and b/product_detail_search/static/description/assets/icons/ecom-black.png differ diff --git a/product_detail_search/static/description/assets/icons/education-black.png b/product_detail_search/static/description/assets/icons/education-black.png new file mode 100755 index 000000000..3eb09b27b Binary files /dev/null and b/product_detail_search/static/description/assets/icons/education-black.png differ diff --git a/product_detail_search/static/description/assets/icons/faq.png b/product_detail_search/static/description/assets/icons/faq.png new file mode 100755 index 000000000..4250b5b81 Binary files /dev/null and b/product_detail_search/static/description/assets/icons/faq.png differ diff --git a/product_detail_search/static/description/assets/icons/feature-icon.svg b/product_detail_search/static/description/assets/icons/feature-icon.svg new file mode 100755 index 000000000..fa0ea6850 --- /dev/null +++ b/product_detail_search/static/description/assets/icons/feature-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/product_detail_search/static/description/assets/icons/feature.png b/product_detail_search/static/description/assets/icons/feature.png new file mode 100755 index 000000000..ac7a785c0 Binary files /dev/null and b/product_detail_search/static/description/assets/icons/feature.png differ diff --git a/product_detail_search/static/description/assets/icons/gear.svg b/product_detail_search/static/description/assets/icons/gear.svg new file mode 100755 index 000000000..0cc66b6ea --- /dev/null +++ b/product_detail_search/static/description/assets/icons/gear.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/product_detail_search/static/description/assets/icons/hero.gif b/product_detail_search/static/description/assets/icons/hero.gif new file mode 100755 index 000000000..380654dfe Binary files /dev/null and b/product_detail_search/static/description/assets/icons/hero.gif differ diff --git a/product_detail_search/static/description/assets/icons/hire-odoo.svg b/product_detail_search/static/description/assets/icons/hire-odoo.svg new file mode 100755 index 000000000..e1ac089b0 --- /dev/null +++ b/product_detail_search/static/description/assets/icons/hire-odoo.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/product_detail_search/static/description/assets/icons/hotel-black.png b/product_detail_search/static/description/assets/icons/hotel-black.png new file mode 100755 index 000000000..130f613be Binary files /dev/null and b/product_detail_search/static/description/assets/icons/hotel-black.png differ diff --git a/product_detail_search/static/description/assets/icons/license.png b/product_detail_search/static/description/assets/icons/license.png new file mode 100755 index 000000000..a5869797e Binary files /dev/null and b/product_detail_search/static/description/assets/icons/license.png differ diff --git a/product_detail_search/static/description/assets/icons/life-ring-icon.svg b/product_detail_search/static/description/assets/icons/life-ring-icon.svg new file mode 100755 index 000000000..3ae6e1d89 --- /dev/null +++ b/product_detail_search/static/description/assets/icons/life-ring-icon.svg @@ -0,0 +1,13 @@ + + + + + + + + + + + + + diff --git a/product_detail_search/static/description/assets/icons/lifebuoy.png b/product_detail_search/static/description/assets/icons/lifebuoy.png new file mode 100755 index 000000000..658d56ccc Binary files /dev/null and b/product_detail_search/static/description/assets/icons/lifebuoy.png differ diff --git a/product_detail_search/static/description/assets/icons/mail.svg b/product_detail_search/static/description/assets/icons/mail.svg new file mode 100755 index 000000000..1eedde695 --- /dev/null +++ b/product_detail_search/static/description/assets/icons/mail.svg @@ -0,0 +1,3 @@ + + + diff --git a/product_detail_search/static/description/assets/icons/manufacturing-black.png b/product_detail_search/static/description/assets/icons/manufacturing-black.png new file mode 100755 index 000000000..697eb0e9f Binary files /dev/null and b/product_detail_search/static/description/assets/icons/manufacturing-black.png differ diff --git a/product_detail_search/static/description/assets/icons/notes.png b/product_detail_search/static/description/assets/icons/notes.png new file mode 100755 index 000000000..ee5e95404 Binary files /dev/null and b/product_detail_search/static/description/assets/icons/notes.png differ diff --git a/product_detail_search/static/description/assets/icons/notification icon.svg b/product_detail_search/static/description/assets/icons/notification icon.svg new file mode 100755 index 000000000..053189973 --- /dev/null +++ b/product_detail_search/static/description/assets/icons/notification icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/product_detail_search/static/description/assets/icons/odoo-consultancy.svg b/product_detail_search/static/description/assets/icons/odoo-consultancy.svg new file mode 100755 index 000000000..e05f65bde --- /dev/null +++ b/product_detail_search/static/description/assets/icons/odoo-consultancy.svg @@ -0,0 +1,4 @@ + + + + diff --git a/product_detail_search/static/description/assets/icons/odoo-licencing.svg b/product_detail_search/static/description/assets/icons/odoo-licencing.svg new file mode 100755 index 000000000..2606c88b0 --- /dev/null +++ b/product_detail_search/static/description/assets/icons/odoo-licencing.svg @@ -0,0 +1,3 @@ + + + diff --git a/product_detail_search/static/description/assets/icons/odoo-logo.png b/product_detail_search/static/description/assets/icons/odoo-logo.png new file mode 100755 index 000000000..0e4d0eb5a Binary files /dev/null and b/product_detail_search/static/description/assets/icons/odoo-logo.png differ diff --git a/product_detail_search/static/description/assets/icons/patter.svg b/product_detail_search/static/description/assets/icons/patter.svg new file mode 100755 index 000000000..25c9c0a8f --- /dev/null +++ b/product_detail_search/static/description/assets/icons/patter.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/product_detail_search/static/description/assets/icons/pattern1.png b/product_detail_search/static/description/assets/icons/pattern1.png new file mode 100755 index 000000000..09ab0fb2d Binary files /dev/null and b/product_detail_search/static/description/assets/icons/pattern1.png differ diff --git a/product_detail_search/static/description/assets/icons/pos-black.png b/product_detail_search/static/description/assets/icons/pos-black.png new file mode 100755 index 000000000..97c0f90c1 Binary files /dev/null and b/product_detail_search/static/description/assets/icons/pos-black.png differ diff --git a/product_detail_search/static/description/assets/icons/puzzle-piece-icon.svg b/product_detail_search/static/description/assets/icons/puzzle-piece-icon.svg new file mode 100755 index 000000000..3e9ad9373 --- /dev/null +++ b/product_detail_search/static/description/assets/icons/puzzle-piece-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/product_detail_search/static/description/assets/icons/puzzle.png b/product_detail_search/static/description/assets/icons/puzzle.png new file mode 100755 index 000000000..65cf854e7 Binary files /dev/null and b/product_detail_search/static/description/assets/icons/puzzle.png differ diff --git a/product_detail_search/static/description/assets/icons/replace-icon.svg b/product_detail_search/static/description/assets/icons/replace-icon.svg new file mode 100755 index 000000000..d0e3a7af1 --- /dev/null +++ b/product_detail_search/static/description/assets/icons/replace-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/product_detail_search/static/description/assets/icons/restaurant-black.png b/product_detail_search/static/description/assets/icons/restaurant-black.png new file mode 100755 index 000000000..4a35eb939 Binary files /dev/null and b/product_detail_search/static/description/assets/icons/restaurant-black.png differ diff --git a/product_detail_search/static/description/assets/icons/screenshot-main.png b/product_detail_search/static/description/assets/icons/screenshot-main.png new file mode 100755 index 000000000..575f8e676 Binary files /dev/null and b/product_detail_search/static/description/assets/icons/screenshot-main.png differ diff --git a/product_detail_search/static/description/assets/icons/screenshot.png b/product_detail_search/static/description/assets/icons/screenshot.png new file mode 100755 index 000000000..cef272529 Binary files /dev/null and b/product_detail_search/static/description/assets/icons/screenshot.png differ diff --git a/product_detail_search/static/description/assets/icons/service-black.png b/product_detail_search/static/description/assets/icons/service-black.png new file mode 100755 index 000000000..301ab51cb Binary files /dev/null and b/product_detail_search/static/description/assets/icons/service-black.png differ diff --git a/product_detail_search/static/description/assets/icons/skype-fill.svg b/product_detail_search/static/description/assets/icons/skype-fill.svg new file mode 100755 index 000000000..c17423639 --- /dev/null +++ b/product_detail_search/static/description/assets/icons/skype-fill.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/product_detail_search/static/description/assets/icons/skype.png b/product_detail_search/static/description/assets/icons/skype.png new file mode 100755 index 000000000..51b409fb3 Binary files /dev/null and b/product_detail_search/static/description/assets/icons/skype.png differ diff --git a/product_detail_search/static/description/assets/icons/skype.svg b/product_detail_search/static/description/assets/icons/skype.svg new file mode 100755 index 000000000..df3dad39b --- /dev/null +++ b/product_detail_search/static/description/assets/icons/skype.svg @@ -0,0 +1,3 @@ + + + diff --git a/product_detail_search/static/description/assets/icons/star-1.svg b/product_detail_search/static/description/assets/icons/star-1.svg new file mode 100755 index 000000000..7e55ab162 --- /dev/null +++ b/product_detail_search/static/description/assets/icons/star-1.svg @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/product_detail_search/static/description/assets/icons/star-2.svg b/product_detail_search/static/description/assets/icons/star-2.svg new file mode 100755 index 000000000..5ae9f507a --- /dev/null +++ b/product_detail_search/static/description/assets/icons/star-2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/product_detail_search/static/description/assets/icons/support.png b/product_detail_search/static/description/assets/icons/support.png new file mode 100755 index 000000000..4f18b8b82 Binary files /dev/null and b/product_detail_search/static/description/assets/icons/support.png differ diff --git a/product_detail_search/static/description/assets/icons/test-1 - Copy.png b/product_detail_search/static/description/assets/icons/test-1 - Copy.png new file mode 100755 index 000000000..f6a902663 Binary files /dev/null and b/product_detail_search/static/description/assets/icons/test-1 - Copy.png differ diff --git a/product_detail_search/static/description/assets/icons/test-1.png b/product_detail_search/static/description/assets/icons/test-1.png new file mode 100755 index 000000000..0908add2b Binary files /dev/null and b/product_detail_search/static/description/assets/icons/test-1.png differ diff --git a/product_detail_search/static/description/assets/icons/test-2.png b/product_detail_search/static/description/assets/icons/test-2.png new file mode 100755 index 000000000..4671fe91e Binary files /dev/null and b/product_detail_search/static/description/assets/icons/test-2.png differ diff --git a/product_detail_search/static/description/assets/icons/trading-black.png b/product_detail_search/static/description/assets/icons/trading-black.png new file mode 100755 index 000000000..9398ba2f1 Binary files /dev/null and b/product_detail_search/static/description/assets/icons/trading-black.png differ diff --git a/product_detail_search/static/description/assets/icons/training.png b/product_detail_search/static/description/assets/icons/training.png new file mode 100755 index 000000000..884ca024d Binary files /dev/null and b/product_detail_search/static/description/assets/icons/training.png differ diff --git a/product_detail_search/static/description/assets/icons/translate.svg b/product_detail_search/static/description/assets/icons/translate.svg new file mode 100755 index 000000000..af9c8a1aa --- /dev/null +++ b/product_detail_search/static/description/assets/icons/translate.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/product_detail_search/static/description/assets/icons/update.png b/product_detail_search/static/description/assets/icons/update.png new file mode 100755 index 000000000..ecbc5a01a Binary files /dev/null and b/product_detail_search/static/description/assets/icons/update.png differ diff --git a/product_detail_search/static/description/assets/icons/user.png b/product_detail_search/static/description/assets/icons/user.png new file mode 100755 index 000000000..6ffb23d9f Binary files /dev/null and b/product_detail_search/static/description/assets/icons/user.png differ diff --git a/product_detail_search/static/description/assets/icons/video.png b/product_detail_search/static/description/assets/icons/video.png new file mode 100755 index 000000000..576705b17 Binary files /dev/null and b/product_detail_search/static/description/assets/icons/video.png differ diff --git a/product_detail_search/static/description/assets/icons/whatsapp.png b/product_detail_search/static/description/assets/icons/whatsapp.png new file mode 100755 index 000000000..d513a5356 Binary files /dev/null and b/product_detail_search/static/description/assets/icons/whatsapp.png differ diff --git a/product_detail_search/static/description/assets/icons/wrench-icon.svg b/product_detail_search/static/description/assets/icons/wrench-icon.svg new file mode 100755 index 000000000..174b5a465 --- /dev/null +++ b/product_detail_search/static/description/assets/icons/wrench-icon.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/product_detail_search/static/description/assets/icons/wrench.png b/product_detail_search/static/description/assets/icons/wrench.png new file mode 100755 index 000000000..6c04dea0f Binary files /dev/null and b/product_detail_search/static/description/assets/icons/wrench.png differ diff --git a/product_detail_search/static/description/assets/modules/1.gif b/product_detail_search/static/description/assets/modules/1.gif new file mode 100755 index 000000000..ae3a880a2 Binary files /dev/null and b/product_detail_search/static/description/assets/modules/1.gif differ diff --git a/product_detail_search/static/description/assets/modules/2.gif b/product_detail_search/static/description/assets/modules/2.gif new file mode 100755 index 000000000..d19e2b352 Binary files /dev/null and b/product_detail_search/static/description/assets/modules/2.gif differ diff --git a/product_detail_search/static/description/assets/modules/3.png b/product_detail_search/static/description/assets/modules/3.png new file mode 100755 index 000000000..8513873ea Binary files /dev/null and b/product_detail_search/static/description/assets/modules/3.png differ diff --git a/product_detail_search/static/description/assets/modules/4.png b/product_detail_search/static/description/assets/modules/4.png new file mode 100755 index 000000000..3bedf7981 Binary files /dev/null and b/product_detail_search/static/description/assets/modules/4.png differ diff --git a/product_detail_search/static/description/assets/modules/5.png b/product_detail_search/static/description/assets/modules/5.png new file mode 100755 index 000000000..0e311ca87 Binary files /dev/null and b/product_detail_search/static/description/assets/modules/5.png differ diff --git a/product_detail_search/static/description/assets/modules/6.jpg b/product_detail_search/static/description/assets/modules/6.jpg new file mode 100755 index 000000000..67c7f7062 Binary files /dev/null and b/product_detail_search/static/description/assets/modules/6.jpg differ diff --git a/product_detail_search/static/description/assets/screenshots/1.png b/product_detail_search/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..d43b48c11 Binary files /dev/null and b/product_detail_search/static/description/assets/screenshots/1.png differ diff --git a/product_detail_search/static/description/assets/screenshots/2.png b/product_detail_search/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..cb853341b Binary files /dev/null and b/product_detail_search/static/description/assets/screenshots/2.png differ diff --git a/product_detail_search/static/description/assets/screenshots/3.png b/product_detail_search/static/description/assets/screenshots/3.png new file mode 100644 index 000000000..b3468052a Binary files /dev/null and b/product_detail_search/static/description/assets/screenshots/3.png differ diff --git a/product_detail_search/static/description/assets/screenshots/4.png b/product_detail_search/static/description/assets/screenshots/4.png new file mode 100644 index 000000000..1d320f017 Binary files /dev/null and b/product_detail_search/static/description/assets/screenshots/4.png differ diff --git a/product_detail_search/static/description/assets/screenshots/5.png b/product_detail_search/static/description/assets/screenshots/5.png new file mode 100644 index 000000000..fe93f67eb Binary files /dev/null and b/product_detail_search/static/description/assets/screenshots/5.png differ diff --git a/product_detail_search/static/description/assets/screenshots/cybrosys-logo.png b/product_detail_search/static/description/assets/screenshots/cybrosys-logo.png new file mode 100755 index 000000000..cc3cc0ccf Binary files /dev/null and b/product_detail_search/static/description/assets/screenshots/cybrosys-logo.png differ diff --git a/product_detail_search/static/description/assets/screenshots/hero.gif b/product_detail_search/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..5e8a59ab1 Binary files /dev/null and b/product_detail_search/static/description/assets/screenshots/hero.gif differ diff --git a/product_detail_search/static/description/assets/screenshots/prod1.png b/product_detail_search/static/description/assets/screenshots/prod1.png new file mode 100644 index 000000000..3100cf576 Binary files /dev/null and b/product_detail_search/static/description/assets/screenshots/prod1.png differ diff --git a/product_detail_search/static/description/assets/screenshots/prod2.png b/product_detail_search/static/description/assets/screenshots/prod2.png new file mode 100644 index 000000000..736d15a62 Binary files /dev/null and b/product_detail_search/static/description/assets/screenshots/prod2.png differ diff --git a/product_detail_search/static/description/assets/screenshots/prod3.png b/product_detail_search/static/description/assets/screenshots/prod3.png new file mode 100644 index 000000000..8c82efaff Binary files /dev/null and b/product_detail_search/static/description/assets/screenshots/prod3.png differ diff --git a/product_detail_search/static/description/assets/screenshots/prod4.png b/product_detail_search/static/description/assets/screenshots/prod4.png new file mode 100644 index 000000000..fcf670ef3 Binary files /dev/null and b/product_detail_search/static/description/assets/screenshots/prod4.png differ diff --git a/product_detail_search/static/description/assets/screenshots/prod5.png b/product_detail_search/static/description/assets/screenshots/prod5.png new file mode 100644 index 000000000..0264dbaf6 Binary files /dev/null and b/product_detail_search/static/description/assets/screenshots/prod5.png differ diff --git a/product_detail_search/static/description/banner.jpg b/product_detail_search/static/description/banner.jpg new file mode 100644 index 000000000..f8f94a8d5 Binary files /dev/null and b/product_detail_search/static/description/banner.jpg differ diff --git a/product_detail_search/static/description/icon.png b/product_detail_search/static/description/icon.png new file mode 100644 index 000000000..3e0b71cbc Binary files /dev/null and b/product_detail_search/static/description/icon.png differ diff --git a/product_detail_search/static/description/index.html b/product_detail_search/static/description/index.html new file mode 100644 index 000000000..61d01a453 --- /dev/null +++ b/product_detail_search/static/description/index.html @@ -0,0 +1,923 @@ + + + + + + Find Products in Pos and Stock using Barcode + + + + + + + + + + +
+
+ + + +
+
+ Community +
+
+ Enterprise +
+
+
+ +
+
+
+
+

+ Find the product using barcode in the pos and inventory +

+

Find Products in Pos and Stock using Barcode +

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

Key + Heighlights

+
+
+
+
+ +
+
+ Efficient Product Identification: +
+

+ A + barcode-based Find Products in Pos and Stock + using Barcode in the Point of Sale (POS) and + inventory module offers a quick and accurate + way to identify products. By scanning the + barcode, the system instantly retrieves the + product information, eliminating the need for + manual searching or data entry.

+
+
+
+
+
+ +
+
+ Enhanced Product Traceability: +
+

+ With a + barcode-based system, each product can be + uniquely identified and tracked throughout its + lifecycle. This enables businesses to monitor + product movement, trace batches or lots, and + facilitate recalls or warranty processes if + necessary. It enhances transparency, quality + control, and customer safety. +

+
+
+
+
+
+ +
+
+ Reduced Training Time: +
+

+ Barcode-based + Find Products in Pos and Stock using Barcode + simplify the training process for new + employees. Instead of memorizing product codes + or searching through a complex inventory + system, they can quickly learn to use the + barcode scanner.

+
+
+
+
+
+ +
+
+ Increased Operational Efficiency: +
+

+ By leveraging + barcode scanning technology in the POS and + inventory module, businesses can achieve higher + operational efficiency. Employees spend less + time manually searching for products, + reconciling inventory, or correcting errors. + This frees up time for more critical tasks, + improves productivity, and contributes to a + smoother overall workflow.

+
+
+ +
+
+ +
+
+
+ Find Products in Pos and Stock using Barcode +

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

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

+ Goto the inventory and there we can see the + Find Product menu. click the menu and scan + the barcode into that text field.

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

+ When you scan the product then you can see + the corresponding product details below +

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

+ In Pos We can see a Find product button in + the top +

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

+ After you can see a window to scan your + product +

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

+ After you can see a corresponding product + details there +

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

+ Barcode-based + systems can assist businesses in meeting + compliance and regulatory requirements.

+ +
+
+
+
+
+
+ +
+

+ In industries + such as healthcare or pharmaceuticals, barcodes + can be used to comply with track-and-trace + regulations, ensuring the proper identification + and tracing of products throughout the supply + chain

+
+
+
+
+
+
+ +
+
+

+ Latest Release 18.0.1.0.0 +

+ + 5th November, 2024 + +
+
+
+
+
+ Add +
+
+
+
    +
  • + Initial Commit +
  • + +
+
+
+
+
+
+
+
+
+
+ + + +
+

+ Related Products +

+ +
+ + +
+

+ Our Services

+ +
+ +
+
+ .... +
+
+ +
+ + +
+
+ + + + + + diff --git a/product_detail_search/static/src/css/barcode.css b/product_detail_search/static/src/css/barcode.css new file mode 100755 index 000000000..65fb42cc2 --- /dev/null +++ b/product_detail_search/static/src/css/barcode.css @@ -0,0 +1,90 @@ +.barcode_inventory{ +justify-content:center; +} +.barcode_inventory header h2{ +width: 50%; +text-align:right; +padding-right:27px; + float: left; + } +.barcode_inventory header #barcode{ + float: left; + width: 40%; +} +.barcode_screen{ +margin-top: 80px; +} +.barcode_screen h1{ +margin: 29px 0px; +text-align: center; +} +.barcode_scan{ +display: flex; + justify-content: left; + margin-top: 31px; + +} +.container_product_info{ +align-items: center; + display: flex; + width: 100%; + justify-content: center; +} +.category-img{ +margin-right:21px; +background-color: #f7f7f7; + height: 377px; + display: flex; +} +.category-img img{ +width:300px; +height:300px; +object-fit: cover; +} +. +.clientlist-screen h1 { + text-align: center; + } + + .clientlist-screen img { + display: block; + margin: 0 auto; + max-width: 300px; + height: auto; + margin-bottom: 20px; + } + + .clientlist-screen table { + width: 100%; + border-collapse: collapse; + } + + .clientlist-screen td.label { + font-weight: bold; + width: 200px; + padding: 10px; + vertical-align: top; + } + + .clientlist-screen td.value { + padding: 10px; + vertical-align: top; + max-width: 300px; + } + + @media (max-width: 600px) { + /* Responsive styles */ + .clientlist-screen td.label { + width: 100%; + text-align: left; + } +.container_product_info{ + max-width: 90%; + flex-direction: column; + } + + .clientlist-screen td.value { + width: 100%; + text-align: left; + } + } diff --git a/product_detail_search/static/src/css/pos.css b/product_detail_search/static/src/css/pos.css new file mode 100755 index 000000000..3b417975c --- /dev/null +++ b/product_detail_search/static/src/css/pos.css @@ -0,0 +1,63 @@ +.form_scan_product{ + text-align: center !important; + margin-top:80px !important; +} +.form_scan_product h2 +{ +font-size: 28px !important; +} +.form_scan_product h4{ +font-size: 18px !important; +} +.container_product_info{ +align-items: center !important; + display: flex !important; + width: 100% !important; + justify-content: center !important; + margin: 0 auto; + max-width: 1200px; + gap:2rem ; +} +.category-img{ +width: 500px; + display: flex !important; +} +.category-img img{ +object-fit: cover !important; +} +. +.clientlist-screen h1 { + text-align: center !important; + } + .clientlist-screen img { + display: block !important; + width: 100%; + height: 100%; + } + .clientlist-screen table { + border-collapse: collapse !important; + } + .clientlist-screen td.label { + font-weight: bold !important; + width: 200px !important; + padding: 10px !important; + vertical-align: top !important; + } + .clientlist-screen td.value { + padding: 10px !important; + vertical-align: top !important; + } + @media (max-width: 600px) { + /* Responsive styles */ + .clientlist-screen td.label { + text-align: left !important; + } + .clientlist-screen td.value { + text-align: left !important; + } + .container_product_info{ + max-width: 90%; + flex-direction: column; + } + + } diff --git a/product_detail_search/static/src/js/dashboard.js b/product_detail_search/static/src/js/dashboard.js new file mode 100755 index 000000000..17d7eba96 --- /dev/null +++ b/product_detail_search/static/src/js/dashboard.js @@ -0,0 +1,40 @@ +/** @odoo-module */ + +import { registry } from '@web/core/registry'; +const { Component, useState } = owl; +import { useService } from "@web/core/utils/hooks"; + +class product_detail_search_barcode_dashboard extends Component { + setup() { + this.action = useService("action"); + this.rpc = this.env.services.rpc; + this.action = useService("action"); + this.orm = useService("orm"); + this.state = useState({ + product_details: [], + barcode_value: [], + }); + } + + onProductKeypress(e) { + this.typed_into = true; + } + + change_product_barcode(e) { + var self = this; + this.state.barcode_value = e.target.value + if (this.typed_into) { + this.orm.call("product.template", "product_detail_search", ["", self.state.barcode_value]).then(function(result) { + if (result != false) { + self.state.product_details = result; + } else { + self.state.product_details = []; + } + }); + this.typed_into = false; + } + } +} + +product_detail_search_barcode_dashboard.template = 'CustomDashBoardFindProduct'; +registry.category("actions").add("product_detail_search_barcode_main_menu", product_detail_search_barcode_dashboard); diff --git a/product_detail_search/static/src/js/find_product.js b/product_detail_search/static/src/js/find_product.js new file mode 100755 index 000000000..a7c6d73ce --- /dev/null +++ b/product_detail_search/static/src/js/find_product.js @@ -0,0 +1,43 @@ +/** @odoo-module **/ + +import { Component } from "@odoo/owl"; +import { registry } from "@web/core/registry"; +import { useService } from "@web/core/utils/hooks"; +import { usePos } from "@point_of_sale/app/store/pos_hook"; +import { useBarcodeReader } from "@point_of_sale/app/barcode/barcode_reader_hook"; + +export class FindProductScreen extends Component { + static template = "product_detail_search.FindProductScreen"; + + setup() { + super.setup(...arguments); + this.pos = usePos(); + this.orm = useService("orm"); + useBarcodeReader({ + product: this._barcodeProductAction, + }); + } + + async _barcodeProductAction(code) { + var self = this; + await this.orm.call("product.template", "product_detail_search", ["", code.base_code]).then(function(result) { + if (result == false) { + self.pos.showScreen('ProductDetails', { + 'product_details': false, + }); + } else { + self.product_details = result; + self.pos.showScreen('ProductDetails', { + 'product_details': self.product_details, + }); + } + }); + } + + // Returning the Product Screen + back() { + this.pos.showScreen("ProductScreen"); + } +} + +registry.category("pos_screens").add("FindProductScreen", FindProductScreen); diff --git a/product_detail_search/static/src/js/find_product_button.js b/product_detail_search/static/src/js/find_product_button.js new file mode 100755 index 000000000..7aba0122f --- /dev/null +++ b/product_detail_search/static/src/js/find_product_button.js @@ -0,0 +1,10 @@ +/** @odoo-module */ + +import { Navbar } from "@point_of_sale/app/navbar/navbar"; +import { patch } from "@web/core/utils/patch"; + +patch(Navbar.prototype, { + async find_product() { + this.pos.showScreen("FindProductScreen"); + }, +}); diff --git a/product_detail_search/static/src/js/product_details.js b/product_detail_search/static/src/js/product_details.js new file mode 100755 index 000000000..d5eba6adc --- /dev/null +++ b/product_detail_search/static/src/js/product_details.js @@ -0,0 +1,49 @@ +/** @odoo-module **/ + +import { Component } from "@odoo/owl"; +import { registry } from "@web/core/registry"; +import { usePos } from "@point_of_sale/app/store/pos_hook"; +import { useBarcodeReader } from "@point_of_sale/app/barcode/barcode_reader_hook"; +import { useService } from "@web/core/utils/hooks"; + +export class ProductDetails extends Component { + static template = "product_detail_search.ProductDetails"; + + setup() { + super.setup(); + this.pos = usePos(); + this.orm = useService("orm"); + + useBarcodeReader({ + product: this._barcodeProductAction, + }); + + if (this.props.product_details == false) { + this.product_details = false; + } else { + this.product_details = this.props.product_details; + } + } + + _barcodeProductAction(code) { + var self = this; + this.orm.call("product.template", "product_detail_search", ["", code.base_code]).then(function(result) { + if (result == false) { + self.pos.showScreen('ProductDetails', { + 'product_details': false, + }); + } else { + self.product_details = result; + self.pos.showScreen('ProductDetails', { + 'product_details': self.product_details, + }); + } + }); + } + + back() { + this.pos.showScreen('FindProductScreen'); + } +} + +registry.category("pos_screens").add("ProductDetails", ProductDetails); diff --git a/product_detail_search/static/src/xml/chrome_templates.xml b/product_detail_search/static/src/xml/chrome_templates.xml new file mode 100755 index 000000000..923fecf20 --- /dev/null +++ b/product_detail_search/static/src/xml/chrome_templates.xml @@ -0,0 +1,14 @@ + + + + + +
+ + Find Product +
+
+
+
diff --git a/product_detail_search/static/src/xml/dashboard_templates.xml b/product_detail_search/static/src/xml/dashboard_templates.xml new file mode 100755 index 000000000..c966d3703 --- /dev/null +++ b/product_detail_search/static/src/xml/dashboard_templates.xml @@ -0,0 +1,135 @@ + + diff --git a/product_detail_search/static/src/xml/find_product_screen_templates.xml b/product_detail_search/static/src/xml/find_product_screen_templates.xml new file mode 100755 index 000000000..981aef0c5 --- /dev/null +++ b/product_detail_search/static/src/xml/find_product_screen_templates.xml @@ -0,0 +1,22 @@ + + + + +
+
+
+
+ + Back +
+
+
+

Scan Your Product

+

Please Scan a Product To get the details

+
+
+
+
+
diff --git a/product_detail_search/static/src/xml/product_details_templates.xml b/product_detail_search/static/src/xml/product_details_templates.xml new file mode 100755 index 000000000..faf98c22f --- /dev/null +++ b/product_detail_search/static/src/xml/product_details_templates.xml @@ -0,0 +1,115 @@ + + + + +
+
+
+
+ + Back +
+
+

Product Information

+ +

No products Found

+
+ +
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Product Name: +
Product Specification: + +
Product Type: + +
Product Tax: + +
Barcode: +
Code: + + + No code
Product Category: +
Available Stock: +
Sales Price: + + + + +
+ +
+
Company:No company + +
+
+
+
+
+
+
+
diff --git a/product_detail_search/views/stock_views.xml b/product_detail_search/views/stock_views.xml new file mode 100755 index 000000000..77e682961 --- /dev/null +++ b/product_detail_search/views/stock_views.xml @@ -0,0 +1,15 @@ + + + + + Find Product Barcode + product_detail_search_barcode_main_menu + + + +