Skip to content

Conversation

@edescalona
Copy link

@edescalona edescalona commented Mar 7, 2025

@edescalona edescalona force-pushed the 17.0-mig-stock_barcodes branch from 819dc06 to b401c4f Compare March 7, 2025 04:34
@edescalona edescalona force-pushed the 17.0-mig-stock_barcodes branch from 3dbb744 to 4b2a971 Compare May 20, 2025 20:48
@edescalona edescalona marked this pull request as ready for review May 20, 2025 20:50
@edescalona edescalona force-pushed the 17.0-mig-stock_barcodes branch from 4b2a971 to b6cec75 Compare May 21, 2025 17:46
@edescalona
Copy link
Author

Ready for review

@edescalona edescalona mentioned this pull request May 21, 2025
2 tasks
sergio-teruel and others added 24 commits May 28, 2025 12:10
When user creates a lot, set default product the wizard selected product.
When confirm the lot creation wizard, set this lot in lot wizard scanning barcode field.
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-barcode-11.0/stock-logistics-barcode-11.0-stock_barcodes
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-barcode-11-0/stock-logistics-barcode-11-0-stock_barcodes/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-barcode-12.0/stock-logistics-barcode-12.0-stock_barcodes
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-barcode-12-0/stock-logistics-barcode-12-0-stock_barcodes/
When we've got an out picking, the logical workflow is that the scanned location
is the location we're getting the stock from
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: stock-logistics-barcode-12.0/stock-logistics-barcode-12.0-stock_barcodes
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-barcode-12-0/stock-logistics-barcode-12-0-stock_barcodes/
@OCA-git-bot OCA-git-bot added this to the 17.0 milestone Aug 23, 2025
@OCA-git-bot OCA-git-bot mentioned this pull request Aug 23, 2025
10 tasks
@edescalona
Copy link
Author

Hi @pedrobaeza , this PR already had the improvements from the previous one and some other changes that we added in this version 17.

@pedrobaeza
Copy link
Member

Can you enumerate those changes for focusing in them? @Christian-RB you have a requested changes comment.

@edescalona
Copy link
Author

@pedrobaeza Here's a list of the changes we've made in version 17:

All items are configurable in the barcode actions associated with the view in which the desired functionality is performed:

  1. When making inventory adjustments, you should be able to view the current quantity while recording, taking into account the warehouse and owner. (Option: Show stock)
image
  1. Be able to associate the stock owner from the barcode view. (Option: Show owner)
image
  1. Partial delivery of pickings. (Option: Allow partial delivery)
image
  1. In inventory adjustments, the actual quantity, the expected quantity, and the difference should be displayed.
image
  1. Differentiate the quantity fields for stock and package.
image

Copy link

@christian-ramos-tecnativa christian-ramos-tecnativa left a comment

Choose a reason for hiding this comment

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

Functional review OK

@nurinayati
Copy link

Hello @edescalona I found some issues here:

  1. When I try to scan the same product, it does not increase the quantity and remains 1
27 08 2025_17 37 03_REC
  1. I am not sure how to use the barcode action scan. I have filled the barcode on the barcode action however, when I scan it, nothing happens. let me know if I missed some configuration :)
27 08 2025_17 38 23_REC
  1. By Default, the scanned qty should be 0, same logic as v16
27 08 2025_17 47 55_REC

@edescalona
Copy link
Author

edescalona commented Aug 27, 2025

Hi @nurinayati , regarding the points you mentioned:

  1. Go to the Inventory -> Configuration -> Barcode Options menu and select the Accumulate Read Quantity option, as shown in the image.
image
  1. That barcode field is for opening the barcode action from the main Barcodes view according to the code reflected in the field that is shown to me.
image
  1. By default, in version 17, demand and quantity are equal.

Thank you for your comments.

@christian-ramos-tecnativa

Hello @edescalona,

After some testing, I noticed that in an internal transfer, the destination location is filtered by the current warehouse:
image

While I understand that internal transfers are generally intended for moves between locations within the same warehouse, the standard behavior actually allows selecting locations from other warehouses:
image

What do you think about keeping the filter consistent with the standard?

@edescalona
Copy link
Author

Hi @Christian-RB , it could be an option within the barcode options, leaving both approaches.

What do you think, @pedr @ws, about what was discussed (#677 (comment))?

@nurinayati
Copy link

Thank you for your reply @edescalona :)

  1. I have checked the boolean, and the issue is still there.
  2. Yes I was trying to scan the barcode on that screen and nothing happens. please let me know if i missed anything to check
  3. Ok, that makes sense, but I think it would be better to display the unscanned quantity like Barcode app in Odoo EE 17
  4. I found another error when trying to scan a barcode that is not in the list. it should have an error-handling message. How to reproduce: display 2 picking with different tabs of barcode app and scan a product that is not in the list
    https://www.awesomescreenshot.com/video/43597551?key=afffe58a592f8eacf79ceab0769be8fa
28 08 2025_10 31 35_REC

@edescalona
Copy link
Author

Hi @nurinayati , thanks for your comments. Could you please copy the error message you showed me in point 4? I'd like to follow the steps you mentioned and it doesn't show me that error. Thanks.

@nurinayati
Copy link

Hi @edescalona Please see the error below. yes the error is not always showing, but I got the error somehow if I have 2 active barcode screen with different stock pickings :)

UncaughtClientError > TypeError
Uncaught Javascript Error > Cannot read properties of undefined (reading 'writeText')

TypeError: Cannot read properties of undefined (reading 'writeText')
at ClientErrorDialog.onClickClipboard (http://oca-stock-logistics-barcode-17-0-pr677-281c21440047.runboat.odoo-community.org/web/assets/dbbc27e/web.assets_web.min.js:2382:48)
at Object.mainEventHandler (http://oca-stock-logistics-barcode-17-0-pr677-281c21440047.runboat.odoo-community.org/web/assets/dbbc27e/web.assets_web.min.js:1593:77)
at HTMLButtonElement.listener (http://oca-stock-logistics-barcode-17-0-pr677-281c21440047.runboat.odoo-community.org/web/assets/dbbc27e/web.assets_web.min.js:748:15)

@florian-dacosta
Copy link

Hello @edescalona,
Thanks for this migration work.

3. By default, in version 17, demand and quantity are equal.

As @nurinayati I concerned about it.
The first goal of the barcode reader is to scan the products than need to be picked. If the barcode reader application already fill the quantity as if it had been picked, it make the application useless in most of the "picking" cases no ?
I don't understand how to use the barcode reader application for picking if the quantity are prefilled !

Odoo SA did remove the qty_done field on stock.move.line from the stock module, but they still have the same behavior on their barcode app (quantity of each line are set to 0 and increased on scan). I guess they did add it or a similar field in the barcode module.
Also I see you did add the qty_done field back on stock.move.line, I think we could/should use it along with the picked boolean (else I am not sure why you had to add it back?).
This way, as in v16, we can start with a 0 quantity, record what has been scanned with qty done, and use the picked boolean when the full quantity of the line is scanned.

From what I just did test on a v18 runbot, the enterprise application does split the stock.move.line in case everything is not scanned.
For example, I need to pick a product 40 times, I have 1 stock.move.line. If I scan the barcode 10 times and then leave the barcode interface, we will have then 2 stock.move.line. One with quantity 10 marked as picked, the other of 30, which remains to do.

A second thing I saw during the quick test I made on runboat : when I edit the quantity of a line manually, I can't set a 0 quantity. When I put 0 and then confirm, nothing happens.
image

I'd appreciate your feedback on those 2 points!
Thanks again for your huge work on this module.

@etobella
Copy link
Member

Before doing anything, review this:

#718

@christian-ramos-tecnativa

This PR now depends on OCA/stock-logistics-workflow#2132
Thanks, @florian-dacosta, for your guidance! 🙏
The functionality for splitting stock.move.line is still missing.
@sergio-teruel, what do you think about setting up a short meeting to discuss the remaining work for versions 17 and 18?
It seems we might be working on the same issues in parallel, so coordinating could help us split the workload more efficiently.
Thanks!

@pedrobaeza
Copy link
Member

Please check the work done on the 18.0 migration in #725 to coordinate.

psc and others added 5 commits November 6, 2025 23:42
Currently translated at 86.3% (19 of 22 strings)

Translation: stock-logistics-barcode-17.0/stock-logistics-barcode-17.0-barcodes_generator_abstract
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-barcode-17-0/stock-logistics-barcode-17-0-barcodes_generator_abstract/de/
Currently translated at 100.0% (18 of 18 strings)

Translation: stock-logistics-barcode-17.0/stock-logistics-barcode-17.0-product_multi_barcode
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-barcode-17-0/stock-logistics-barcode-17-0-product_multi_barcode/de/
Currently translated at 95.4% (21 of 22 strings)

Translation: stock-logistics-barcode-17.0/stock-logistics-barcode-17.0-barcodes_generator_abstract
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-barcode-17-0/stock-logistics-barcode-17-0-barcodes_generator_abstract/de/
Currently translated at 100.0% (17 of 17 strings)

Translation: stock-logistics-barcode-17.0/stock-logistics-barcode-17.0-barcodes_generator_product
Translate-URL: https://translation.odoo-community.org/projects/stock-logistics-barcode-17-0/stock-logistics-barcode-17-0-barcodes_generator_product/de/
@mariano-aferrari
Copy link

Hi everyone, any progress on this module for Odoo 17?. Could you please provide an update on where you are standing with it?. Thanks!

@pedrobaeza
Copy link
Member

You should take into account #733

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.