diff --git a/portal_stock_check/README.rst b/portal_stock_check/README.rst new file mode 100755 index 000000000..ae947f067 --- /dev/null +++ b/portal_stock_check/README.rst @@ -0,0 +1,47 @@ +.. 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 + +Portal Product Availability +=========================== +Portal Users Can Check The Availability of Products + +Configuration +============= +* No additional configurations needed + +Company +------- +* `Cybrosys Techno Solutions `__ + +License +------- +General Public License, Version 3 (LGPL v3). +(https://www.gnu.org/licenses/lgpl-3.0-standalone.html) + +Credits +------- +* Developer: Sruthi M K, + (V17) Jumana Haseen, +Contact : odoo@cybrosys.com + +Contacts +-------- +* Mail Contact : odoo@cybrosys.com + +Bug Tracker +----------- +Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. + +Maintainer +========== +This module is maintained by Cybrosys Technologies. + +For support and more information, please visit https://www.cybrosys.com + +Further information +=================== +HTML Description: ``__ + +.. image:: https://cybrosys.com/images/logo.png + :target: https://cybrosys.com diff --git a/portal_stock_check/__init__.py b/portal_stock_check/__init__.py new file mode 100755 index 000000000..0f7ba3630 --- /dev/null +++ b/portal_stock_check/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Jumana Haseen () +# +# 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 controller diff --git a/portal_stock_check/__manifest__.py b/portal_stock_check/__manifest__.py new file mode 100755 index 000000000..a6d3513b7 --- /dev/null +++ b/portal_stock_check/__manifest__.py @@ -0,0 +1,49 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Jumana Haseen() +# +# 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': "Portal Product Availability", + 'version': '17.0.1.0.0', + 'category': 'Sales', + 'summary': """Portal user can check the product availability""", + 'description': """Portal Product Availability help portal users can easily + check the stock availability of products""", + 'author': "Cybrosys Techno Solutions", + 'company': "Cybrosys Techno Solutions", + 'maintainer': 'Cybrosys Techno Solutions', + 'website': "https://www.cybrosys.com", + 'depends': ['portal', 'sale_management', 'stock', 'contacts', + 'website_sale', 'product'], + 'data': [ + 'views/portal_product_templates.xml', + ], + 'assets': { + 'web.assets_frontend': [ + 'portal_stock_check/static/src/js/product_search.js', + 'portal_stock_check/static/src/xml/product_search.xml', + ], + }, + 'images': ['static/description/banner.png'], + 'license': 'LGPL-3', + 'installable': True, + 'auto_install': False, + 'application': False, +} diff --git a/portal_stock_check/controller/__init__.py b/portal_stock_check/controller/__init__.py new file mode 100755 index 000000000..718db81d0 --- /dev/null +++ b/portal_stock_check/controller/__init__.py @@ -0,0 +1,22 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Jumana Haseen () +# +# 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 portal_products diff --git a/portal_stock_check/controller/portal_products.py b/portal_stock_check/controller/portal_products.py new file mode 100755 index 000000000..6ba81620e --- /dev/null +++ b/portal_stock_check/controller/portal_products.py @@ -0,0 +1,61 @@ +# -*- coding: utf-8 -*- +############################################################################# +# +# Cybrosys Technologies Pvt. Ltd. +# +# Copyright (C) 2023-TODAY Cybrosys Technologies() +# Author: Jumana Haseen () +# +# You can modify it under the terms of the GNU LESSER +# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. +# +# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE +# (LGPL v3) along with this program. +# If not, see . +# +############################################################################# +from odoo import http +from odoo.http import request +from odoo.addons.portal.controllers import portal + + +class CustomerPortal(portal.CustomerPortal): + """This class inherits controller portal""" + def _prepare_home_portal_values(self, counters): + """This function super the method and set count as none + :param int counters: count of the product + :param auth: The user must be authenticated and the current + request will perform using the rights that the user was given. + :param string type: HTTP Request and JSON Request,utilizing HTTP + requests via the GET and POST methods. HTTP methods such as GET, POST, + PUT, DELETE + :return: values in counters + """ + values = super()._prepare_home_portal_values(counters) + if 'p_count' in counters: + values['p_count'] = None + return values + + @http.route('/my/products', type='http', auth="user", website=True) + def portal_products(self, **kw): + """Adding stock check option in portal""" + return request.render("portal_stock_check.portal_product_availability") + + @http.route('/product/search', type='json', auth="user", website=True) + def search_product(self, args): + """To get corresponding products matching domain conditions + :param args: Name input on search product + :return: Result of input text given for searching the product + """ + product = args['product'] + if product: + domain = [('name', 'ilike', product), ('is_published', '=', True)] + res = request.env['product.product'].sudo().search_read( + domain=domain, fields=['id', 'display_name', 'qty_available']) + return res + return False diff --git a/portal_stock_check/doc/RELEASE_NOTES.md b/portal_stock_check/doc/RELEASE_NOTES.md new file mode 100755 index 000000000..57d7ab5d8 --- /dev/null +++ b/portal_stock_check/doc/RELEASE_NOTES.md @@ -0,0 +1,7 @@ +## Module + +#### 08.01.2024 +#### Version 17.0.1.0.0 +#### ADD + +- Initial Commit for Portal Product Availability diff --git a/portal_stock_check/static/description/assets/icons/capture (1).png b/portal_stock_check/static/description/assets/icons/capture (1).png new file mode 100644 index 000000000..8824deafc Binary files /dev/null and b/portal_stock_check/static/description/assets/icons/capture (1).png differ diff --git a/portal_stock_check/static/description/assets/icons/check.png b/portal_stock_check/static/description/assets/icons/check.png new file mode 100644 index 000000000..c8e85f51d Binary files /dev/null and b/portal_stock_check/static/description/assets/icons/check.png differ diff --git a/portal_stock_check/static/description/assets/icons/chevron.png b/portal_stock_check/static/description/assets/icons/chevron.png new file mode 100644 index 000000000..2089293d6 Binary files /dev/null and b/portal_stock_check/static/description/assets/icons/chevron.png differ diff --git a/portal_stock_check/static/description/assets/icons/cogs.png b/portal_stock_check/static/description/assets/icons/cogs.png new file mode 100644 index 000000000..95d0bad62 Binary files /dev/null and b/portal_stock_check/static/description/assets/icons/cogs.png differ diff --git a/portal_stock_check/static/description/assets/icons/consultation.png b/portal_stock_check/static/description/assets/icons/consultation.png new file mode 100644 index 000000000..8319d4baa Binary files /dev/null and b/portal_stock_check/static/description/assets/icons/consultation.png differ diff --git a/portal_stock_check/static/description/assets/icons/ecom-black.png b/portal_stock_check/static/description/assets/icons/ecom-black.png new file mode 100644 index 000000000..a9385ff13 Binary files /dev/null and b/portal_stock_check/static/description/assets/icons/ecom-black.png differ diff --git a/portal_stock_check/static/description/assets/icons/education-black.png b/portal_stock_check/static/description/assets/icons/education-black.png new file mode 100644 index 000000000..3eb09b27b Binary files /dev/null and b/portal_stock_check/static/description/assets/icons/education-black.png differ diff --git a/portal_stock_check/static/description/assets/icons/hotel-black.png b/portal_stock_check/static/description/assets/icons/hotel-black.png new file mode 100644 index 000000000..130f613be Binary files /dev/null and b/portal_stock_check/static/description/assets/icons/hotel-black.png differ diff --git a/portal_stock_check/static/description/assets/icons/img.png b/portal_stock_check/static/description/assets/icons/img.png new file mode 100644 index 000000000..70197f477 Binary files /dev/null and b/portal_stock_check/static/description/assets/icons/img.png differ diff --git a/portal_stock_check/static/description/assets/icons/license.png b/portal_stock_check/static/description/assets/icons/license.png new file mode 100644 index 000000000..a5869797e Binary files /dev/null and b/portal_stock_check/static/description/assets/icons/license.png differ diff --git a/portal_stock_check/static/description/assets/icons/lifebuoy.png b/portal_stock_check/static/description/assets/icons/lifebuoy.png new file mode 100644 index 000000000..658d56ccc Binary files /dev/null and b/portal_stock_check/static/description/assets/icons/lifebuoy.png differ diff --git a/portal_stock_check/static/description/assets/icons/manufacturing-black.png b/portal_stock_check/static/description/assets/icons/manufacturing-black.png new file mode 100644 index 000000000..697eb0e9f Binary files /dev/null and b/portal_stock_check/static/description/assets/icons/manufacturing-black.png differ diff --git a/portal_stock_check/static/description/assets/icons/photo-capture.png b/portal_stock_check/static/description/assets/icons/photo-capture.png new file mode 100644 index 000000000..06c111758 Binary files /dev/null and b/portal_stock_check/static/description/assets/icons/photo-capture.png differ diff --git a/portal_stock_check/static/description/assets/icons/pos-black.png b/portal_stock_check/static/description/assets/icons/pos-black.png new file mode 100644 index 000000000..97c0f90c1 Binary files /dev/null and b/portal_stock_check/static/description/assets/icons/pos-black.png differ diff --git a/portal_stock_check/static/description/assets/icons/puzzle.png b/portal_stock_check/static/description/assets/icons/puzzle.png new file mode 100644 index 000000000..65cf854e7 Binary files /dev/null and b/portal_stock_check/static/description/assets/icons/puzzle.png differ diff --git a/portal_stock_check/static/description/assets/icons/restaurant-black.png b/portal_stock_check/static/description/assets/icons/restaurant-black.png new file mode 100644 index 000000000..4a35eb939 Binary files /dev/null and b/portal_stock_check/static/description/assets/icons/restaurant-black.png differ diff --git a/portal_stock_check/static/description/assets/icons/service-black.png b/portal_stock_check/static/description/assets/icons/service-black.png new file mode 100644 index 000000000..301ab51cb Binary files /dev/null and b/portal_stock_check/static/description/assets/icons/service-black.png differ diff --git a/portal_stock_check/static/description/assets/icons/trading-black.png b/portal_stock_check/static/description/assets/icons/trading-black.png new file mode 100644 index 000000000..9398ba2f1 Binary files /dev/null and b/portal_stock_check/static/description/assets/icons/trading-black.png differ diff --git a/portal_stock_check/static/description/assets/icons/training.png b/portal_stock_check/static/description/assets/icons/training.png new file mode 100644 index 000000000..884ca024d Binary files /dev/null and b/portal_stock_check/static/description/assets/icons/training.png differ diff --git a/portal_stock_check/static/description/assets/icons/update.png b/portal_stock_check/static/description/assets/icons/update.png new file mode 100644 index 000000000..ecbc5a01a Binary files /dev/null and b/portal_stock_check/static/description/assets/icons/update.png differ diff --git a/portal_stock_check/static/description/assets/icons/user.png b/portal_stock_check/static/description/assets/icons/user.png new file mode 100644 index 000000000..6ffb23d9f Binary files /dev/null and b/portal_stock_check/static/description/assets/icons/user.png differ diff --git a/portal_stock_check/static/description/assets/icons/wrench.png b/portal_stock_check/static/description/assets/icons/wrench.png new file mode 100644 index 000000000..6c04dea0f Binary files /dev/null and b/portal_stock_check/static/description/assets/icons/wrench.png differ diff --git a/portal_stock_check/static/description/assets/misc/Cybrosys R.png b/portal_stock_check/static/description/assets/misc/Cybrosys R.png new file mode 100644 index 000000000..da4058087 Binary files /dev/null and b/portal_stock_check/static/description/assets/misc/Cybrosys R.png differ diff --git a/portal_stock_check/static/description/assets/misc/email.svg b/portal_stock_check/static/description/assets/misc/email.svg new file mode 100644 index 000000000..15291cdc3 --- /dev/null +++ b/portal_stock_check/static/description/assets/misc/email.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/portal_stock_check/static/description/assets/misc/phone.svg b/portal_stock_check/static/description/assets/misc/phone.svg new file mode 100644 index 000000000..b7bd7f251 --- /dev/null +++ b/portal_stock_check/static/description/assets/misc/phone.svg @@ -0,0 +1,3 @@ + + + diff --git a/portal_stock_check/static/description/assets/misc/star (1) 2.svg b/portal_stock_check/static/description/assets/misc/star (1) 2.svg new file mode 100644 index 000000000..5ae9f507a --- /dev/null +++ b/portal_stock_check/static/description/assets/misc/star (1) 2.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/portal_stock_check/static/description/assets/misc/support (1) 1.svg b/portal_stock_check/static/description/assets/misc/support (1) 1.svg new file mode 100644 index 000000000..7d37a8f30 --- /dev/null +++ b/portal_stock_check/static/description/assets/misc/support (1) 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/portal_stock_check/static/description/assets/misc/support-email.svg b/portal_stock_check/static/description/assets/misc/support-email.svg new file mode 100644 index 000000000..eb70370d6 --- /dev/null +++ b/portal_stock_check/static/description/assets/misc/support-email.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/portal_stock_check/static/description/assets/misc/tick-mark.svg b/portal_stock_check/static/description/assets/misc/tick-mark.svg new file mode 100644 index 000000000..2dbb40187 --- /dev/null +++ b/portal_stock_check/static/description/assets/misc/tick-mark.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + diff --git a/portal_stock_check/static/description/assets/misc/whatsapp 1.svg b/portal_stock_check/static/description/assets/misc/whatsapp 1.svg new file mode 100644 index 000000000..0bfaf8fc6 --- /dev/null +++ b/portal_stock_check/static/description/assets/misc/whatsapp 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/portal_stock_check/static/description/assets/misc/whatsapp.svg b/portal_stock_check/static/description/assets/misc/whatsapp.svg new file mode 100644 index 000000000..b618aea1d --- /dev/null +++ b/portal_stock_check/static/description/assets/misc/whatsapp.svg @@ -0,0 +1,33 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/portal_stock_check/static/description/assets/modules/m1.png b/portal_stock_check/static/description/assets/modules/m1.png new file mode 100644 index 000000000..acb4c76c6 Binary files /dev/null and b/portal_stock_check/static/description/assets/modules/m1.png differ diff --git a/portal_stock_check/static/description/assets/modules/m2.png b/portal_stock_check/static/description/assets/modules/m2.png new file mode 100644 index 000000000..3ef91f771 Binary files /dev/null and b/portal_stock_check/static/description/assets/modules/m2.png differ diff --git a/portal_stock_check/static/description/assets/modules/m3.png b/portal_stock_check/static/description/assets/modules/m3.png new file mode 100644 index 000000000..72febf6ae Binary files /dev/null and b/portal_stock_check/static/description/assets/modules/m3.png differ diff --git a/portal_stock_check/static/description/assets/modules/m4.png b/portal_stock_check/static/description/assets/modules/m4.png new file mode 100644 index 000000000..f7d7f9241 Binary files /dev/null and b/portal_stock_check/static/description/assets/modules/m4.png differ diff --git a/portal_stock_check/static/description/assets/modules/m5.png b/portal_stock_check/static/description/assets/modules/m5.png new file mode 100644 index 000000000..1d3324e88 Binary files /dev/null and b/portal_stock_check/static/description/assets/modules/m5.png differ diff --git a/portal_stock_check/static/description/assets/modules/m6.png b/portal_stock_check/static/description/assets/modules/m6.png new file mode 100644 index 000000000..80938c15a Binary files /dev/null and b/portal_stock_check/static/description/assets/modules/m6.png differ diff --git a/portal_stock_check/static/description/assets/screenshots/1.png b/portal_stock_check/static/description/assets/screenshots/1.png new file mode 100644 index 000000000..36dc6867d Binary files /dev/null and b/portal_stock_check/static/description/assets/screenshots/1.png differ diff --git a/portal_stock_check/static/description/assets/screenshots/2.png b/portal_stock_check/static/description/assets/screenshots/2.png new file mode 100644 index 000000000..9c6ae2ce9 Binary files /dev/null and b/portal_stock_check/static/description/assets/screenshots/2.png differ diff --git a/portal_stock_check/static/description/assets/screenshots/hero.gif b/portal_stock_check/static/description/assets/screenshots/hero.gif new file mode 100644 index 000000000..9b81ee78c Binary files /dev/null and b/portal_stock_check/static/description/assets/screenshots/hero.gif differ diff --git a/portal_stock_check/static/description/banner.png b/portal_stock_check/static/description/banner.png new file mode 100644 index 000000000..cad60ef80 Binary files /dev/null and b/portal_stock_check/static/description/banner.png differ diff --git a/portal_stock_check/static/description/icon.png b/portal_stock_check/static/description/icon.png new file mode 100644 index 000000000..c68c365bb Binary files /dev/null and b/portal_stock_check/static/description/icon.png differ diff --git a/portal_stock_check/static/description/index.html b/portal_stock_check/static/description/index.html new file mode 100644 index 000000000..c26617514 --- /dev/null +++ b/portal_stock_check/static/description/index.html @@ -0,0 +1,670 @@ + + + + + + + Odoo App 3 Index + + + + + + + + +
+
+
+
+
+ +
+
+
+ Community +
+
+ Enterprise +
+
+ Odoo.sh +
+
+
+
+
+
+

+ Portal Product Availability

+

+ Portal Users Can Check The Availability of Products +

+
+ +
+
+
+
+
+

+ Key Highlights +

+
+
+
+
+
+ +
+
+

+ Product stock check

+

Portal users + can check + the quantity of product +

+
+
+
+
+
+
+ +
+
+

+ Portal users can check the availability of + products.

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

+ Product availability check in Portal

+
+
+
+
+
+
+ +
+
+

+ Search Result containing product name and + total quantity available for the + product

+
+
+
+
+
+
+
    +
  • + Product + availability check in Portal. +
  • +
  • + Portal user can + see quantity of product available. +
  • +
  • + Portal Product + Availability +
      +
    • With the help of this App portal users + can easily check the stock availability + of products. +
    • +
    +
  • + +
+
+
+
+
+
+
Version + 17.0.1.0.0|Released on:21st November + 2023 +
+

+ Initial Commit for Portal Product + Availability.

+
+
+
+
+
+
+
+

+ Related Products

+
+
+ +
+
+

+ Our Services

+
+
+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Customization

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Support

+
+
+
+
+
+
+ service-icon +
+
+

Hire + Odoo Developer

+
+
+
+
+ +
+
+ service-icon +
+
+

Odoo + Integration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Migration

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Consultancy

+
+
+
+
+
+
+ service-icon +
+
+

Odoo + Implementation

+
+
+
+
+
+
+ service-icon +
+
+

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 + 99456767686 +
+
+
+
+
+
+
+
+
+ + + + + + diff --git a/portal_stock_check/static/src/img/portal-product.svg b/portal_stock_check/static/src/img/portal-product.svg new file mode 100644 index 000000000..0d5a8f971 --- /dev/null +++ b/portal_stock_check/static/src/img/portal-product.svg @@ -0,0 +1,3 @@ + + + diff --git a/portal_stock_check/static/src/js/product_search.js b/portal_stock_check/static/src/js/product_search.js new file mode 100755 index 000000000..c381c31e1 --- /dev/null +++ b/portal_stock_check/static/src/js/product_search.js @@ -0,0 +1,40 @@ +/** @odoo-module **/ +import { renderToElement } from "@web/core/utils/render"; +import { jsonrpc } from "@web/core/network/rpc_service"; +import publicWidget from "@web/legacy/js/public/public_widget"; +/** + * Widget PortalHomeCountersProduct + * + * Display the search tab + * + */ +export const PortalHomeCountersProduct = publicWidget.Widget.extend({ + selector: '.o_website_product_search', + events:{ + 'keyup .o_portal_product_input': '_product_search', + }, + /** + * @constructor + */ + init() { + this._super(...arguments); + }, + /** + * @private + * Display table of product and quantity available using jsonrpc call + */ + async _product_search(result){ + var product_name = $('#product_name_input').val(); + await jsonrpc('/product/search', { + args: {'product':product_name} + }).then(function(result){ + if (result != 'false'){ + } + $('.product_results_table').html(renderToElement('productSearch', + { + result:result + })); + }) + } + }) +publicWidget.registry.PortalHomeCountersProduct = PortalHomeCountersProduct; diff --git a/portal_stock_check/static/src/xml/product_search.xml b/portal_stock_check/static/src/xml/product_search.xml new file mode 100755 index 000000000..6122bd3bb --- /dev/null +++ b/portal_stock_check/static/src/xml/product_search.xml @@ -0,0 +1,28 @@ + + + + +
+ + + + + + + + + + + + + + + +
ProductQuantity
+ + + +
+
+
+
diff --git a/portal_stock_check/views/portal_product_templates.xml b/portal_stock_check/views/portal_product_templates.xml new file mode 100755 index 000000000..f910c2f94 --- /dev/null +++ b/portal_stock_check/views/portal_product_templates.xml @@ -0,0 +1,54 @@ + + + + + + +