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

[14.0][ADD] sale_barcode: add module #581

Closed dessanhemrayev closed 2 months ago

dessanhemrayev commented 8 months ago

This module adds the product to the sales order line according to the barcode information provided by the barcode/datamatrix device.

dessanhemrayev commented 7 months ago

@francesco-ooops please check)

bealdav commented 7 months ago

Hi @dessanhemrayev thanks for your contribution.

Have you seen this module https://github.com/OCA/stock-logistics-barcode/tree/14.0/sale_input_barcode

It seems it's about the same features. Have you considered it to use it avoid to confusion with modules with the same scope ?

What are the missing features ? Should these features can be added in existing module or maybe your module could depends on it ?

francesco-ooops commented 7 months ago

Hi @bealdav , I'm not technical but here's the analysis that was done when developing this module:

Barcode 5156000000030 was returning "Could not decode barcode: Unknown Application identifier at position 0" error

Here's Cetmix's team analysis:

For some reason sale_input_barcode depends on base_gs1_barcode module for barcode decoding, which specifies "decode a GS1-128/GS1-Datamatrix string to dictionary of values with Application Identifiers as keys"

Issue you caught occurs when used the decode method from this module.

On the other hand stock_barcodes module depends on Odoo's standard "barcode" module and can handle any barcodes.

I believe to solve the issue you mentioned we need to completely change the way the sale_input_barcode module handles barcodes, this is such a deep refactoring, how do you think should we made it as IMP in this sale_input_barcode or create a new one?

So we went for this new module, @bealdav if you could review or provide your input that would be great, thanks!

bealdav commented 7 months ago

Thanks @francesco-ooops for this clarification.

I think there is a way to merge features of this PR in sale_input_barcode. I mean the plan is to remove base_gs1_barcode dependency.

If this last module is installed then the current behavior must be kept. If not, the behavior of the current PR is added.

Choice in this behavior must be defined in _process_barcode_on_product_line

I don't know if my explanation is ok for you ?

I like in your module these features

Thanks a lot

github-actions[bot] commented 3 months ago

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days. If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.