Browse Source

Dec 17: [FIX] Bug Fixed 'pos_auto_lot_selection'

pull/309/head
Cybrosys Technologies 4 months ago
parent
commit
2c40fea8be
  1. 4
      pos_auto_lot_selection/__manifest__.py
  2. 4
      pos_auto_lot_selection/doc/RELEASE_NOTES.md
  3. 5
      pos_auto_lot_selection/static/src/js/product.js

4
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',

4
pos_auto_lot_selection/doc/RELEASE_NOTES.md

@ -1,6 +1,8 @@
## Module <pos_auto_lot_selection>
#### 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.

5
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 {

Loading…
Cancel
Save