Skip to content

[18.0] [FIX] barcode_stock: allow validate pickings with different serial numbers and avoid double scan serial lots - #30

Closed
luisDIXMIT wants to merge 1 commit into
OCA:18.0from
dixmit:18.0-fix-barcode_stock
Closed

luisDIXMIT wants to merge 1 commit into
OCA:18.0from
dixmit:18.0-fix-barcode_stock

Conversation

@luisDIXMIT

@luisDIXMIT luisDIXMIT commented Nov 18, 2026 •

Copy link
Copy Markdown

This PR fixes two issues:

Error with more than one serial number. A transfer with more than one serial number raised an error when the picking was confirmed.
Accidental double scans. When an operator scanned the same serial number twice, the system added it twice. To undo it, they had to delete the entire line and scan it again, which is tedious. With this change, the system no longer allows the same serial number to be scanned twice.

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Hi @szalatyzuzanna,
some modules you are maintaining are being modified, check this out!

@etobella etobella left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functional and technical review

Thanks!

@etobella

Copy link
Copy Markdown
Member

@jelenapoblet @szalatyzuzanna I think this one requires a quick review, as it is currently a bug on the app

@szalatyzuzanna szalatyzuzanna left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fix, and for the video! Could you reword the commit (and the PR title)? Everything here is in barcode_stock, not barcode_scanner. A couple of lines in the PR description about the bug and how to reproduce it would also help whoever reads the history later.

Comment thread barcode_stock/models/stock_picking.py Resolved

@oliverg09 oliverg09 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR @luisDIXMIT! The changes look good overall. I've left a couple of minor suggestions that could help improve the implementation.

Comment thread barcode_stock/models/stock_picking.py Resolved
@luisDIXMIT
luisDIXMIT force-pushed the 18.0-fix-barcode_stock branch from d94d4af to 355da1d Compare November 23, 2026 12:04
@luisDIXMIT luisDIXMIT changed the title [18.0] [FIX] barcode_scanner: allow validate pickings with different serial numbers and avoid double scan serial lots [18.0] [FIX] barcode_stock: allow validate pickings with different serial numbers and avoid double scan serial lots Nov 23, 2026

@szalatyzuzanna szalatyzuzanna left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick update! All points are addressed. LGTM.

@szalatyzuzanna

Copy link
Copy Markdown

/ocabot merge patch

@OCA-git-bot

Copy link
Copy Markdown
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

@OCA-git-bot

Copy link
Copy Markdown
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 18.0-ocabot-merge-pr-30-by-szalatyzuzanna-bump-patch, awaiting test results.

@luisDIXMIT
luisDIXMIT force-pushed the 18.0-fix-barcode_stock branch from 355da1d to 52b9d33 Compare November 23, 2026 12:43
@luisDIXMIT

Copy link
Copy Markdown
Author

Sorry @szalatyzuzanna , I made a small change at the last minute. I hope it doesn't break the merge process. My fault!

@OCA-git-bot

Copy link
Copy Markdown
Contributor

Congratulations, your PR was merged at bc0dc7c. Thanks a lot for contributing to OCA. ❤️

@luisDIXMIT

Copy link
Copy Markdown
Author

I see that my commit was merged without the latest changes. That's fine, since they were only a small improvement to the code. Also, this PR ended up in an odd state: closed instead of merged. Curious!

I'll open a new PR with this improvement, since it could be useful. Sorry for the noise, and thanks for everything!

@etobella
etobella deleted the 18.0-fix-barcode_stock branch November 23, 2026 13:53
github-actions Bot pushed a commit to odoo-saas-addons/barcode-interface that referenced this pull request Nov 23, 2026
Signed-off-by szalatyzuzanna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants