diff --git a/pos_restrict_product_stock/README.rst b/pos_restrict_product_stock/README.rst deleted file mode 100644 index c9b2331f9..000000000 --- a/pos_restrict_product_stock/README.rst +++ /dev/null @@ -1,51 +0,0 @@ -.. image:: https://img.shields.io/badge/licenses-AGPL--3-blue.svg - :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 - -Display Stock in POS | Restrict Out-of-Stock Products in POS -============================================================= -This module enables you to limit the ordering of out-of-stock products in POS as well as display the available quantity for each product (on-hand quantity and virtual quantity) - -Configuration -============= -No additional configuration required - -Company -------- -* `Cybrosys Techno Solutions `__ - -License -------- -Affero General Public License v3.0 (AGPL v3) -(https://www.gnu.org/licenses/agpl-3.0-standalone.html) - -Credits -------- -Developer: - (V16) Raneesha M K, - (V17) Anjhana A K - (V18) Manasa T P -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/pos_restrict_product_stock/__init__.py b/pos_restrict_product_stock/__init__.py deleted file mode 100644 index 45a758aa4..000000000 --- a/pos_restrict_product_stock/__init__.py +++ /dev/null @@ -1,21 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################# -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2025-TODAY Cybrosys Technologies() -# Author:Manasa T P() -# You can modify it under the terms of the GNU AFFERO -# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. -# -# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE -# (AGPL v3) along with this program. -# If not, see . -# -############################################################################# -from . import models diff --git a/pos_restrict_product_stock/__manifest__.py b/pos_restrict_product_stock/__manifest__.py deleted file mode 100644 index 0e5949a09..000000000 --- a/pos_restrict_product_stock/__manifest__.py +++ /dev/null @@ -1,49 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################# -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2025-TODAY Cybrosys Technologies() -# Author:Manasa T P() -# You can modify it under the terms of the GNU AFFERO -# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. -# -# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE -# (AGPL v3) along with this program. -# If not, see . -# -############################################################################# -{ - 'name': 'Display Stock in POS | Restrict Out-of-Stock Products in POS', - 'version': '18.0.1.0.0', - 'category': 'Point of Sale', - 'summary': """Enhance your Point of Sale experience by preventing the - ordering of out-of-stock products during your session""", - 'description': """This module enables you to limit the ordering of - out-of-stock products in POS as well as display the available quantity for - each product (on-hand quantity and virtual quantity).""", - 'author': 'Cybrosys Techno Solutions', - 'company': 'Cybrosys Techno Solutions', - 'maintainer': 'Cybrosys Techno Solutions', - 'website': 'https://www.cybrosys.com', - 'depends': ['point_of_sale','pos_preparation_display'], - 'data': ['views/res_config_settings_views.xml'], - 'assets': { - 'point_of_sale._assets_pos': [ - 'pos_restrict_product_stock/static/src/js/ProductScreen.js', - 'pos_restrict_product_stock/static/src/js/OrderScreen.js', - 'pos_restrict_product_stock/static/src/css/display_stock.css', - 'pos_restrict_product_stock/static/src/xml/ProductItem.xml', - ], - }, - 'images': ['static/description/banner.jpg'], - 'license': 'AGPL-3', - 'installable': True, - 'auto_install': False, - 'application': False, -} diff --git a/pos_restrict_product_stock/doc/RELEASE_NOTES.md b/pos_restrict_product_stock/doc/RELEASE_NOTES.md deleted file mode 100644 index 88ec29e5e..000000000 --- a/pos_restrict_product_stock/doc/RELEASE_NOTES.md +++ /dev/null @@ -1,6 +0,0 @@ -## Module - -#### 11.06.2025 -#### Version 18.0.1.0.0 -#### ADD -- Initial Commit for Display Stock in POS | Restrict Out-of-Stock Products in POS diff --git a/pos_restrict_product_stock/models/__init__.py b/pos_restrict_product_stock/models/__init__.py deleted file mode 100644 index b61291eb7..000000000 --- a/pos_restrict_product_stock/models/__init__.py +++ /dev/null @@ -1,24 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################# -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2025-TODAY Cybrosys Technologies() -# Author:Manasa T P() -# You can modify it under the terms of the GNU AFFERO -# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. -# -# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE -# (AGPL v3) along with this program. -# If not, see . -# -############################################################################# -from . import product -from . import pos_config -from . import pos_session -from . import res_config_settings diff --git a/pos_restrict_product_stock/models/pos_config.py b/pos_restrict_product_stock/models/pos_config.py deleted file mode 100644 index 5dbca4f44..000000000 --- a/pos_restrict_product_stock/models/pos_config.py +++ /dev/null @@ -1,40 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################# -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2025-TODAY Cybrosys Technologies() -# Author:Manasa T P() -# You can modify it under the terms of the GNU AFFERO -# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. -# -# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE -# (AGPL v3) along with this program. -# If not, see . -# -############################################################################# -from odoo import fields, models - - -class PosConfig(models.Model): - """Inherited pos configuration setting for adding some - fields for restricting out-of stock""" - _inherit = 'pos.config' - - is_display_stock = fields.Boolean(string="Display Stock in POS", - help="Enable if you want to show " - "quantity of products") - is_restrict_product = fields.Boolean( - string="Restrict Product Out-of Stock in POS", - help="Enable if you want restrict of stock product from pos") - stock_type = fields.Selection([('qty_on_hand', 'Qty on Hand'), - ('virtual_qty', 'Virtual Qty'), - ('both', 'Both')], required=True, - default='qty_on_hand', string="Stock Type", - help="In which quantity type you" - " have to restrict and display") diff --git a/pos_restrict_product_stock/models/pos_session.py b/pos_restrict_product_stock/models/pos_session.py deleted file mode 100644 index f5d402214..000000000 --- a/pos_restrict_product_stock/models/pos_session.py +++ /dev/null @@ -1,36 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################# -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2025-TODAY Cybrosys Technologies() -# Author:Manasa T P() -# You can modify it under the terms of the GNU AFFERO -# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. -# -# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE -# (AGPL v3) along with this program. -# If not, see . -# -############################################################################# -from odoo import models - - -class PosSession(models.Model): - """Inherited pos session for loading quantity fields from product""" - _inherit = 'pos.session' - - def _loader_params_product_product(self): - """Load forcast and on hand quantity field to pos session. - :return dict: returns dictionary of field parameters for the - product model - """ - result = super()._loader_params_product_product() - result['search_params']['fields'].append('qty_available') - result['search_params']['fields'].append('virtual_available') - return result diff --git a/pos_restrict_product_stock/models/product.py b/pos_restrict_product_stock/models/product.py deleted file mode 100644 index 2ba5465ce..000000000 --- a/pos_restrict_product_stock/models/product.py +++ /dev/null @@ -1,33 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################# -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2025-TODAY Cybrosys Technologies() -# Author:Manasa T P() -# You can modify it under the terms of the GNU AFFERO -# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. -# -# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE -# (AGPL v3) along with this program. -# If not, see . -# -############################################################################# -from odoo import models - -class ProductProduct(models.Model): - _inherit = 'product.product' - - def _load_pos_data_fields(self, config_id): - """Extend to include qty_available and virtual_available in POS data fields.""" - fields = super(ProductProduct, self)._load_pos_data_fields(config_id) - if 'qty_available' not in fields: - fields.append('qty_available') - if 'virtual_available' not in fields: - fields.append('virtual_available') - return fields \ No newline at end of file diff --git a/pos_restrict_product_stock/models/res_config_settings.py b/pos_restrict_product_stock/models/res_config_settings.py deleted file mode 100644 index c521ef2a7..000000000 --- a/pos_restrict_product_stock/models/res_config_settings.py +++ /dev/null @@ -1,41 +0,0 @@ -# -*- coding: utf-8 -*- -############################################################################# -# -# Cybrosys Technologies Pvt. Ltd. -# -# Copyright (C) 2025-TODAY Cybrosys Technologies() -# Author:Manasa T P() -# You can modify it under the terms of the GNU AFFERO -# GENERAL PUBLIC LICENSE (AGPL v3), Version 3. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. -# -# You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE -# (AGPL v3) along with this program. -# If not, see . -# -############################################################################# -from odoo import fields, models - - -class ResConfigSettings(models.TransientModel): - """Inherited res configuration setting for adding fields for - restricting out-of-stock products""" - _inherit = 'res.config.settings' - - is_display_stock = fields.Boolean(related="pos_config_id.is_display_stock", - string="Display Stock in POS", - readonly=False, - help="Enable if you want to show the " - "quantity of products.") - is_restrict_product = fields.Boolean( - related="pos_config_id.is_restrict_product", - string="Restrict Product Out of Stock in POS", readonly=False, - help="Enable if you want restrict of stock product from POS") - stock_type = fields.Selection(related="pos_config_id.stock_type", - string="Stock Type", readonly=False, - help="In which quantity type you" - "have to restrict and display in POS") diff --git a/pos_restrict_product_stock/static/description/assets/cybro-icon.png b/pos_restrict_product_stock/static/description/assets/cybro-icon.png deleted file mode 100755 index 06e73e11d..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/cybro-icon.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/cybro-odoo.png b/pos_restrict_product_stock/static/description/assets/cybro-odoo.png deleted file mode 100755 index ed02e07a4..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/cybro-odoo.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/h2.png b/pos_restrict_product_stock/static/description/assets/h2.png deleted file mode 100755 index 0bfc4707d..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/h2.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/arrows-repeat.svg b/pos_restrict_product_stock/static/description/assets/icons/arrows-repeat.svg deleted file mode 100755 index 1d7efabc5..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/arrows-repeat.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/banner-1.png b/pos_restrict_product_stock/static/description/assets/icons/banner-1.png deleted file mode 100755 index c180db172..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/banner-1.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/banner-2.svg b/pos_restrict_product_stock/static/description/assets/icons/banner-2.svg deleted file mode 100755 index e606d97d9..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/banner-2.svg +++ /dev/null @@ -1,73 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/banner-bg.png b/pos_restrict_product_stock/static/description/assets/icons/banner-bg.png deleted file mode 100755 index a8238d3c0..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/banner-bg.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/banner-bg.svg b/pos_restrict_product_stock/static/description/assets/icons/banner-bg.svg deleted file mode 100755 index b1378103e..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/banner-bg.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/banner-call.svg b/pos_restrict_product_stock/static/description/assets/icons/banner-call.svg deleted file mode 100755 index 96c687e81..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/banner-call.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/banner-mail.svg b/pos_restrict_product_stock/static/description/assets/icons/banner-mail.svg deleted file mode 100755 index cbf0d158d..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/banner-mail.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/banner-pattern.svg b/pos_restrict_product_stock/static/description/assets/icons/banner-pattern.svg deleted file mode 100755 index 9c1c7e101..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/banner-pattern.svg +++ /dev/null @@ -1,343 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/banner-promo.svg b/pos_restrict_product_stock/static/description/assets/icons/banner-promo.svg deleted file mode 100755 index d52791b11..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/banner-promo.svg +++ /dev/null @@ -1,147 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/brand-pair.svg b/pos_restrict_product_stock/static/description/assets/icons/brand-pair.svg deleted file mode 100755 index d8db7fc1e..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/brand-pair.svg +++ /dev/null @@ -1,41 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/check.png b/pos_restrict_product_stock/static/description/assets/icons/check.png deleted file mode 100755 index c8e85f51d..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/check.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/chevron.png b/pos_restrict_product_stock/static/description/assets/icons/chevron.png deleted file mode 100755 index 2089293d6..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/chevron.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/close-icon.svg b/pos_restrict_product_stock/static/description/assets/icons/close-icon.svg deleted file mode 100755 index df8cce37a..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/close-icon.svg +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/cogs.png b/pos_restrict_product_stock/static/description/assets/icons/cogs.png deleted file mode 100755 index 95d0bad62..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/cogs.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/collabarate-icon.svg b/pos_restrict_product_stock/static/description/assets/icons/collabarate-icon.svg deleted file mode 100755 index dd4e10518..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/collabarate-icon.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/consultation.png b/pos_restrict_product_stock/static/description/assets/icons/consultation.png deleted file mode 100755 index 8319d4baa..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/consultation.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/cybro-logo.png b/pos_restrict_product_stock/static/description/assets/icons/cybro-logo.png deleted file mode 100755 index ff4b78220..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/cybro-logo.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/down.svg b/pos_restrict_product_stock/static/description/assets/icons/down.svg deleted file mode 100755 index f21c36271..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/down.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/pos_restrict_product_stock/static/description/assets/icons/ecom-black.png b/pos_restrict_product_stock/static/description/assets/icons/ecom-black.png deleted file mode 100755 index a9385ff13..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/ecom-black.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/education-black.png b/pos_restrict_product_stock/static/description/assets/icons/education-black.png deleted file mode 100755 index 3eb09b27b..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/education-black.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/faq.png b/pos_restrict_product_stock/static/description/assets/icons/faq.png deleted file mode 100755 index 4250b5b81..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/faq.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/feature-icon.svg b/pos_restrict_product_stock/static/description/assets/icons/feature-icon.svg deleted file mode 100755 index fa0ea6850..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/feature-icon.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/feature.png b/pos_restrict_product_stock/static/description/assets/icons/feature.png deleted file mode 100755 index ac7a785c0..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/feature.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/gear.svg b/pos_restrict_product_stock/static/description/assets/icons/gear.svg deleted file mode 100755 index 0cc66b6ea..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/gear.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/hero.gif b/pos_restrict_product_stock/static/description/assets/icons/hero.gif deleted file mode 100644 index e15d80be8..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/hero.gif and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/hire-odoo.svg b/pos_restrict_product_stock/static/description/assets/icons/hire-odoo.svg deleted file mode 100755 index e1ac089b0..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/hire-odoo.svg +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - - - - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/hotel-black.png b/pos_restrict_product_stock/static/description/assets/icons/hotel-black.png deleted file mode 100755 index 130f613be..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/hotel-black.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/license.png b/pos_restrict_product_stock/static/description/assets/icons/license.png deleted file mode 100755 index a5869797e..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/license.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/life-ring-icon.svg b/pos_restrict_product_stock/static/description/assets/icons/life-ring-icon.svg deleted file mode 100755 index 3ae6e1d89..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/life-ring-icon.svg +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/lifebuoy.png b/pos_restrict_product_stock/static/description/assets/icons/lifebuoy.png deleted file mode 100755 index 658d56ccc..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/lifebuoy.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/mail.svg b/pos_restrict_product_stock/static/description/assets/icons/mail.svg deleted file mode 100755 index 1eedde695..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/mail.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/manufacturing-black.png b/pos_restrict_product_stock/static/description/assets/icons/manufacturing-black.png deleted file mode 100755 index 697eb0e9f..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/manufacturing-black.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/notes.png b/pos_restrict_product_stock/static/description/assets/icons/notes.png deleted file mode 100755 index ee5e95404..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/notes.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/notification icon.svg b/pos_restrict_product_stock/static/description/assets/icons/notification icon.svg deleted file mode 100755 index 053189973..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/notification icon.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/odoo-consultancy.svg b/pos_restrict_product_stock/static/description/assets/icons/odoo-consultancy.svg deleted file mode 100755 index e05f65bde..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/odoo-consultancy.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/odoo-licencing.svg b/pos_restrict_product_stock/static/description/assets/icons/odoo-licencing.svg deleted file mode 100755 index 2606c88b0..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/odoo-licencing.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/odoo-logo.png b/pos_restrict_product_stock/static/description/assets/icons/odoo-logo.png deleted file mode 100755 index 0e4d0eb5a..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/odoo-logo.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/patter.svg b/pos_restrict_product_stock/static/description/assets/icons/patter.svg deleted file mode 100755 index 25c9c0a8f..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/patter.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/pattern1.png b/pos_restrict_product_stock/static/description/assets/icons/pattern1.png deleted file mode 100755 index 09ab0fb2d..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/pattern1.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/pos-black.png b/pos_restrict_product_stock/static/description/assets/icons/pos-black.png deleted file mode 100755 index 97c0f90c1..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/pos-black.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/puzzle-piece-icon.svg b/pos_restrict_product_stock/static/description/assets/icons/puzzle-piece-icon.svg deleted file mode 100755 index 3e9ad9373..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/puzzle-piece-icon.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/puzzle.png b/pos_restrict_product_stock/static/description/assets/icons/puzzle.png deleted file mode 100755 index 65cf854e7..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/puzzle.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/replace-icon.svg b/pos_restrict_product_stock/static/description/assets/icons/replace-icon.svg deleted file mode 100755 index d0e3a7af1..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/replace-icon.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/restaurant-black.png b/pos_restrict_product_stock/static/description/assets/icons/restaurant-black.png deleted file mode 100755 index 4a35eb939..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/restaurant-black.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/screenshot-main.png b/pos_restrict_product_stock/static/description/assets/icons/screenshot-main.png deleted file mode 100755 index 575f8e676..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/screenshot-main.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/screenshot.png b/pos_restrict_product_stock/static/description/assets/icons/screenshot.png deleted file mode 100755 index cef272529..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/screenshot.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/service-black.png b/pos_restrict_product_stock/static/description/assets/icons/service-black.png deleted file mode 100755 index 301ab51cb..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/service-black.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/skype-fill.svg b/pos_restrict_product_stock/static/description/assets/icons/skype-fill.svg deleted file mode 100755 index c17423639..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/skype-fill.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/skype.png b/pos_restrict_product_stock/static/description/assets/icons/skype.png deleted file mode 100755 index 51b409fb3..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/skype.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/skype.svg b/pos_restrict_product_stock/static/description/assets/icons/skype.svg deleted file mode 100755 index df3dad39b..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/skype.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/star-1.svg b/pos_restrict_product_stock/static/description/assets/icons/star-1.svg deleted file mode 100755 index 7e55ab162..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/star-1.svg +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/star-2.svg b/pos_restrict_product_stock/static/description/assets/icons/star-2.svg deleted file mode 100755 index 5ae9f507a..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/star-2.svg +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/support.png b/pos_restrict_product_stock/static/description/assets/icons/support.png deleted file mode 100755 index 4f18b8b82..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/support.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/test-1 - Copy.png b/pos_restrict_product_stock/static/description/assets/icons/test-1 - Copy.png deleted file mode 100755 index f6a902663..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/test-1 - Copy.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/test-1.png b/pos_restrict_product_stock/static/description/assets/icons/test-1.png deleted file mode 100755 index 0908add2b..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/test-1.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/test-2.png b/pos_restrict_product_stock/static/description/assets/icons/test-2.png deleted file mode 100755 index 4671fe91e..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/test-2.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/trading-black.png b/pos_restrict_product_stock/static/description/assets/icons/trading-black.png deleted file mode 100755 index 9398ba2f1..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/trading-black.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/training.png b/pos_restrict_product_stock/static/description/assets/icons/training.png deleted file mode 100755 index 884ca024d..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/training.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/translate.svg b/pos_restrict_product_stock/static/description/assets/icons/translate.svg deleted file mode 100755 index af9c8a1aa..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/translate.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/update.png b/pos_restrict_product_stock/static/description/assets/icons/update.png deleted file mode 100755 index ecbc5a01a..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/update.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/user.png b/pos_restrict_product_stock/static/description/assets/icons/user.png deleted file mode 100755 index 6ffb23d9f..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/user.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/video.png b/pos_restrict_product_stock/static/description/assets/icons/video.png deleted file mode 100755 index 576705b17..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/video.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/whatsapp.png b/pos_restrict_product_stock/static/description/assets/icons/whatsapp.png deleted file mode 100755 index d513a5356..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/whatsapp.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/icons/wrench-icon.svg b/pos_restrict_product_stock/static/description/assets/icons/wrench-icon.svg deleted file mode 100755 index 174b5a465..000000000 --- a/pos_restrict_product_stock/static/description/assets/icons/wrench-icon.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/pos_restrict_product_stock/static/description/assets/icons/wrench.png b/pos_restrict_product_stock/static/description/assets/icons/wrench.png deleted file mode 100755 index 6c04dea0f..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/icons/wrench.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/modules/1.jpg b/pos_restrict_product_stock/static/description/assets/modules/1.jpg deleted file mode 100644 index 3cb15fe01..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/modules/1.jpg and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/modules/2.jpg b/pos_restrict_product_stock/static/description/assets/modules/2.jpg deleted file mode 100644 index 662cadcc3..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/modules/2.jpg and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/modules/3.jpg b/pos_restrict_product_stock/static/description/assets/modules/3.jpg deleted file mode 100644 index 717a00443..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/modules/3.jpg and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/modules/4.png b/pos_restrict_product_stock/static/description/assets/modules/4.png deleted file mode 100644 index 00ebf54ad..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/modules/4.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/modules/5.jpg b/pos_restrict_product_stock/static/description/assets/modules/5.jpg deleted file mode 100644 index 7c67e2eec..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/modules/5.jpg and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/modules/6.gif b/pos_restrict_product_stock/static/description/assets/modules/6.gif deleted file mode 100644 index a35ece8df..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/modules/6.gif and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/screenshots/1.png b/pos_restrict_product_stock/static/description/assets/screenshots/1.png deleted file mode 100644 index d40479b4f..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/screenshots/1.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/screenshots/10.png b/pos_restrict_product_stock/static/description/assets/screenshots/10.png deleted file mode 100644 index 0feaae9d1..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/screenshots/10.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/screenshots/11.png b/pos_restrict_product_stock/static/description/assets/screenshots/11.png deleted file mode 100644 index 741bc512c..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/screenshots/11.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/screenshots/12.png b/pos_restrict_product_stock/static/description/assets/screenshots/12.png deleted file mode 100644 index 904340dab..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/screenshots/12.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/screenshots/2.png b/pos_restrict_product_stock/static/description/assets/screenshots/2.png deleted file mode 100644 index c6501f913..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/screenshots/2.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/screenshots/3.png b/pos_restrict_product_stock/static/description/assets/screenshots/3.png deleted file mode 100644 index cb600d8e8..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/screenshots/3.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/screenshots/4.png b/pos_restrict_product_stock/static/description/assets/screenshots/4.png deleted file mode 100644 index 4dc57a740..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/screenshots/4.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/screenshots/5.png b/pos_restrict_product_stock/static/description/assets/screenshots/5.png deleted file mode 100644 index 3a4056340..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/screenshots/5.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/screenshots/6.png b/pos_restrict_product_stock/static/description/assets/screenshots/6.png deleted file mode 100644 index 499ce0f8d..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/screenshots/6.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/screenshots/7.png b/pos_restrict_product_stock/static/description/assets/screenshots/7.png deleted file mode 100644 index 5f9d5c447..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/screenshots/7.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/screenshots/8.png b/pos_restrict_product_stock/static/description/assets/screenshots/8.png deleted file mode 100644 index e4391cddc..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/screenshots/8.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/screenshots/9.png b/pos_restrict_product_stock/static/description/assets/screenshots/9.png deleted file mode 100644 index 25d0ab3b4..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/screenshots/9.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/screenshots/v18_gif.gif b/pos_restrict_product_stock/static/description/assets/screenshots/v18_gif.gif deleted file mode 100644 index e15d80be8..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/screenshots/v18_gif.gif and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/assets/y18.jpg b/pos_restrict_product_stock/static/description/assets/y18.jpg deleted file mode 100755 index eea1714f2..000000000 Binary files a/pos_restrict_product_stock/static/description/assets/y18.jpg and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/banner.jpg b/pos_restrict_product_stock/static/description/banner.jpg deleted file mode 100644 index c0cc9218d..000000000 Binary files a/pos_restrict_product_stock/static/description/banner.jpg and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/icon.png b/pos_restrict_product_stock/static/description/icon.png deleted file mode 100644 index ed7fdd1ad..000000000 Binary files a/pos_restrict_product_stock/static/description/icon.png and /dev/null differ diff --git a/pos_restrict_product_stock/static/description/index.html b/pos_restrict_product_stock/static/description/index.html deleted file mode 100644 index 5195427d7..000000000 --- a/pos_restrict_product_stock/static/description/index.html +++ /dev/null @@ -1,1162 +0,0 @@ - - - - - - Display Stock in POS | Restrict Out-of-Stock Products in POS - - - - - - - - - - -
-
- - - -
-
- Community -
-
- Enterprise -
-
- Odoo.sh -
-
-
- -
-
-
-
-

- Restrict Out of Stock Product from PoS session - and Display the Stock -

-

Display Stock in POS | Restrict Out-of-Stock Products in - POS -

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

Key - Highlights

-
-
-
-
- -
-
- Real-Time Stock Visibility -
-

- Instantly view on-hand and virtual - quantities of products directly within the - POS interface.

-
-
-
-
-
- -
-
- Restrict Out-of-Stock Product Sales -
-

- Prevent users from adding unavailable - products to orders, ensuring you don't sell - items that are out of stock. -

-
-
-
-
-
- -
-
- Seamless POS Integration -
-

- Fully integrated with Odoo POS, the module - enforces stock restrictions without - disrupting the ordering flow, improving - accuracy and inventory control. -

-
-
-
-
- -
-
-
- Display Stock in POS | Restrict Out-of-Stock Products in POS -

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

- -
-
- -
-
-
- - - - -
-
- -
-
-
-
- acc_bg -
- -
-
-
-
-

- POS Settings - - -

-
-
-

- Go to POS Settings -> Enable - Display Stock in POS and select - which type of quantity you have - to be visible in session. If you - want to restrict out of stock - products from ordering based on - the quantity type you selected. -

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

- Show On Hand Quantity - - -

-
-
-

- If the selected type is "on - hand" ,then on hand quantity can - be visible in left-top of - product item. -

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

- - Confirmation for Adding Out of Stock Product - -

-
-
-

- If the quantity of the product - is zero then it visible in - different color. If you try to - order out of stock product a - confirmation popup will render, - still - you want to order the product - then click order button. -

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

- Add Out of Stock Product - -

-
-
-

- The out-of-stock product is - added to orderline. -

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

- Show Virtual Quantity in Product Screen - -

-
-
-

- If you selected the "virtual - quantity" it will display in the - right-top of each product item. -

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

- Show both On Hand and Virtual Quantity - -

-
-
-

- If you select "both", then it - display both type of quantity. -

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

- Displays Available and Virtual - Quantity -

-
- -
-
-
-
-
-
- -
-

- Prevents Adding Out-of-Stock - Products -

-
-
-
-
-
-
-
- -
-

- Popup Warning for Out-of-Stock - Items when attempting to add - them.

-
-
-
-
-
-
-
- -
-

- Supports Real-Time Stock Updates - for accurate product - availability.

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

- This module enhances - Odoo’s Point of Sale - by showing real-time - product availability - (on-hand and virtual - quantities) and - prevents selling - out-of-stock - items.

-
-
- -
- -
-

- The available and - virtual quantities - are displayed - directly on the - product screen - within the POS - interface. -

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

- Latest Release 18.0.1.0.0 -

- - 11th June, 2025 - -
-
-
-
-
- Add -
-
-
-
    -
  • - Initial Commit -
  • - -
-
-
-
-
-
-
-
-
-
- - - -
-

- Related Products -

- -
- - -
-

- Our Services

- -
- -
-
- .... -
-
- -
- - -
-
- - - - - - diff --git a/pos_restrict_product_stock/static/src/css/display_stock.css b/pos_restrict_product_stock/static/src/css/display_stock.css deleted file mode 100644 index 43313a6b2..000000000 --- a/pos_restrict_product_stock/static/src/css/display_stock.css +++ /dev/null @@ -1,29 +0,0 @@ -.display_qty{ - background:#714B67; - position:absolute; - top:0; - left:0; - width:30px; - height:20px; - border-radius: 3px; - text-align:center; - font-weight: bold; - font-size: 14px; - color:white -} -.not-available{ - background: #808080; -} -.display_virtual{ - background:#017e84; - position:absolute; - top:0; - right:0; - width:30px; - height:20px; - border-radius: 3px; - text-align:center; - font-weight: bold; - font-size: 14px; - color:white -} diff --git a/pos_restrict_product_stock/static/src/js/OrderScreen.js b/pos_restrict_product_stock/static/src/js/OrderScreen.js deleted file mode 100644 index 6ee22321b..000000000 --- a/pos_restrict_product_stock/static/src/js/OrderScreen.js +++ /dev/null @@ -1,37 +0,0 @@ -/** @odoo-module */ -import { PosStore } from "@point_of_sale/app/store/pos_store"; -import { patch } from "@web/core/utils/patch"; -import { ConfirmationDialog } from "@web/core/confirmation_dialog/confirmation_dialog"; -import { _t } from "@web/core/l10n/translation"; - - -patch(PosStore.prototype, { - async pay() { - var type = this.config.stock_type - const pay = true - const body = [] - const pro_id = false - for (const line of this.get_order().get_orderlines()) { - if (line.config.is_restrict_product && ((type == 'qty_on_hand') && (line.product_id.qty_available <= 0)) | ((type == 'virtual_qty') && (line.product_id.virtual_available <= 0)) | - ((line.product_id.qty_available <= 0) && (line.product_id.virtual_available <= 0))) { - // If the product restriction is activated in the settings and quantity is out stock, it show the restrict popup. - body.push(line.product_id.display_name) - } - } - if (body.length > 0) { // Check if body has items - const confirmed = this.dialog.add(ConfirmationDialog, { - body: _t("%s is out of stock. Click Order, if you still want to add this product?", body), - confirmLabel: _t("Order"), - confirm: () => { - return super.pay(); - }, - cancel: () => { - return; - }, - }) - } - else { - return super.pay(); // No restrictions, proceed with payment - } - } -}) diff --git a/pos_restrict_product_stock/static/src/js/ProductScreen.js b/pos_restrict_product_stock/static/src/js/ProductScreen.js deleted file mode 100644 index c3c8976c0..000000000 --- a/pos_restrict_product_stock/static/src/js/ProductScreen.js +++ /dev/null @@ -1,34 +0,0 @@ -/** @odoo-module **/ -import { patch } from "@web/core/utils/patch"; -import { ProductScreen } from "@point_of_sale/app/screens/product_screen/product_screen"; -import { useService } from "@web/core/utils/hooks"; -import { ConfirmationDialog } from "@web/core/confirmation_dialog/confirmation_dialog"; -import { _t } from "@web/core/l10n/translation"; - - -patch(ProductScreen.prototype, { -setup() { - super.setup(); - this.dialog = useService("dialog"); - }, - async addProductToOrder(...args) { - var type = this.pos.config.stock_type - if (this.pos.config.is_restrict_product && ((type == 'qty_on_hand') && (args['0'].qty_available <= 0)) | ((type == 'virtual_qty') && (args['0'].virtual_available <= 0)) | - ((args['0'].qty_available <= 0) && (args['0'].virtual_available <= 0))) { - // If the product restriction is activated in the settings and quantity is out stock, it show the restrict popup. - this.dialog.add(ConfirmationDialog, { - body: _t("%s is out of stock. Do you want to proceed?", args['0'].display_name), - confirmLabel: _t("Order"), - confirm: () => { - const product = args['0']; - product.order_status = true; - super.addProductToOrder(...args) - }, - cancel: () => {}, - }); - } - else{ - await super.addProductToOrder(...args) - } - }, -}); diff --git a/pos_restrict_product_stock/static/src/xml/ProductItem.xml b/pos_restrict_product_stock/static/src/xml/ProductItem.xml deleted file mode 100644 index 0f7e8265d..000000000 --- a/pos_restrict_product_stock/static/src/xml/ProductItem.xml +++ /dev/null @@ -1,32 +0,0 @@ - - - - - - - -
- -
-
- -
- -
-
- -
- -
-
- -
-
-
-
-
-
diff --git a/pos_restrict_product_stock/views/res_config_settings_views.xml b/pos_restrict_product_stock/views/res_config_settings_views.xml deleted file mode 100644 index 2ae014df8..000000000 --- a/pos_restrict_product_stock/views/res_config_settings_views.xml +++ /dev/null @@ -1,58 +0,0 @@ - - - - - - res.config.settings.view.form.inherit.pos.restrict.product.stock - - res.config.settings - - - - -
-
- -
-
-
-
-
-
- -
-
-
-
-
-
-
-
-
-
-
-
-