OCA/stock-logistics-barcode

[14.0]stock_barcodes: Picking out operation bug

davidepiu14 opened this issue · 3 comments

stock_barcodes

Description

Creating a new stock.operation operation from the button "New" it's nearly impossible to read the product with the barcode scanner. Randomly the product barcode is recognized and in the logs I see this error:

UPDATE "wiz_stock_barcodes_read_picking" SET "write_uid"=2,"write_date"=(now() at time zone 'UTC') WHERE id IN (130) ERROR: could not serialize access due to concurrent update

To Reproduce

14.0:

Steps to reproduce the behavior:

  1. Create a new picking OUT stock.operation clicking on the button "New" ("Nuovo")
    image
  2. Scan the product barcode once inside the wizard
  3. Nothing happens, if you continue to scanner (after like 40/50 scans the product is recognized)
    image
  4. This error appears in logs:
    bad query: UPDATE "wiz_stock_barcodes_read_picking" SET "write_uid"=2,"write_date"=(now() at time zone 'UTC') WHERE id IN (130) ERROR: could not serialize access due to concurrent update

In the "picking out option" I had selected the product barcode scan as a first move.
image

Expected behavior

  1. Create a new picking OUT operation clicking on the button "New"
  2. Start scanner products
  3. Product is added to the stock.operation