From 2c40fea8bebb816705d70cfc857c38b91af51d6d Mon Sep 17 00:00:00 2001 From: Cybrosys Technologies Date: Tue, 17 Dec 2024 10:25:09 +0530 Subject: [PATCH] Dec 17: [FIX] Bug Fixed 'pos_auto_lot_selection' --- pos_auto_lot_selection/__manifest__.py | 4 ++-- pos_auto_lot_selection/doc/RELEASE_NOTES.md | 4 +++- pos_auto_lot_selection/static/src/js/product.js | 5 +++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/pos_auto_lot_selection/__manifest__.py b/pos_auto_lot_selection/__manifest__.py index 3e960ade8..3b39f1a60 100644 --- a/pos_auto_lot_selection/__manifest__.py +++ b/pos_auto_lot_selection/__manifest__.py @@ -21,7 +21,7 @@ ############################################################################### { 'name': 'POS Auto Lot Selection', - 'version': '17.0.1.0.0', + 'version': '17.0.1.1.0', 'category': 'Point of Sale', 'summary': """Automatic lot selection in POS """, 'description': """This module helps to Auto select Lot/Serial numbers for @@ -30,7 +30,7 @@ 'company': 'Cybrosys Techno Solutions', 'maintainer': 'Cybrosys Techno Solutions', 'website': "https://www.cybrosys.com", - 'depends': ['point_of_sale', 'mrp','mrp_product_expiry'], + 'depends': ['point_of_sale', 'mrp','mrp_product_expiry','product'], 'assets': { 'point_of_sale._assets_pos': [ 'pos_auto_lot_selection/static/src/js/product.js', diff --git a/pos_auto_lot_selection/doc/RELEASE_NOTES.md b/pos_auto_lot_selection/doc/RELEASE_NOTES.md index 087161716..fe2a069d3 100644 --- a/pos_auto_lot_selection/doc/RELEASE_NOTES.md +++ b/pos_auto_lot_selection/doc/RELEASE_NOTES.md @@ -1,6 +1,8 @@ ## Module #### 26.06.2024 -#### Version 17.0.1.0.0 +#### Version 17.0.1.1.0 #### ADD - Initial Commit for POS Auto Lot Selection +#### UPDATE +- Updated the js code for selecting the combo product. diff --git a/pos_auto_lot_selection/static/src/js/product.js b/pos_auto_lot_selection/static/src/js/product.js index 2927f813c..fcfedb787 100644 --- a/pos_auto_lot_selection/static/src/js/product.js +++ b/pos_auto_lot_selection/static/src/js/product.js @@ -3,6 +3,7 @@ import { patch } from "@web/core/utils/patch"; import { ProductScreen } from "@point_of_sale/app/screens/product_screen/product_screen"; import { Product } from "@point_of_sale/app/store/models"; import { jsonrpc } from "@web/core/network/rpc_service"; +import { ComboConfiguratorPopup } from "@point_of_sale/app/store/combo_configurator_popup/combo_configurator_popup"; patch(Product.prototype, { async getAddProductOptions(code) { @@ -25,7 +26,7 @@ patch(Product.prototype, { return; } } - if (this.combo_ids.length) { + if (this.combo_ids.length) { const { confirmed, payload } = await this.env.services.popup.add( ComboConfiguratorPopup, { product: this, keepBehind: true } @@ -34,6 +35,7 @@ patch(Product.prototype, { } comboLines = payload; } + // Gather lot information if required. if (this.isTracked()) { packLotLinesToEdit = @@ -77,7 +79,6 @@ patch(Product.prototype, { if (confirmed) { quantity = payload.weight; } else { - // do not add the product; return; } } else {