Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions pos_lot_barcode/static/src/js/Screens/ProductScreen.esm.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,13 @@ patch(ProductScreen.prototype, {
],
this.pos.data.fields["product.product"]
);
if (product.length > 1) {
product = product[0];
await this.pos.processProductAttributes();

if (product.length === 0) {
return false; // not available in POS
}

product = product[0];
await this.pos.processProductAttributes();
}
return product;
} else if (foundLotIds.length > 1) {
Expand Down
Loading