OCA / stock-logistics-barcode

https://odoo-community.org/psc-teams/logistics-18
GNU Affero General Public License v3.0
160 stars 330 forks source link

[16.0] Scanning a generated barcode can sometimes set the quantity to 0 in POS. #621

Open PlantBasedStudio opened 3 months ago

PlantBasedStudio commented 3 months ago

Module

barcode_generator_abstract ?

Describe the bug

When I scan products with a generated barcode, it sometimes happens that the product quantity is 0 at the time of scanning. The problem is that the barcode is a sequence of 13 digits, just like non-generated barcodes, which can set the quantity to 1 when scanned.

Unfortunately, I can't open the error on the runboat because it doesn't want to install the point-of-sale module.

To Reproduce

Affected versions: 16

Steps to reproduce the behavior:

  1. Install barcode_generator_abstract & product
  2. create generated barcode
  3. Print the barcode & scan it in POS. Compare to a real barcode

Expected behavior The quantity should be set to 1 by default