New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ADD] stock_barcodes_gs1: Add support to stock_barcodes module to read GS1 barcodes #203
Conversation
Please check Travis |
@ernestotejeda @victormmtorres please review this |
Mhuuu... it seems that DB connection is failing |
0af1b08
to
566a055
Compare
Travis template updated |
Fails due to product_multi_ean module that only alow to have EAN13 primary barcodes... |
That's not valid anymore when field was generalized. That module must be changed. |
This PR #205 is needed for pass the tests |
566a055
to
78db256
Compare
78db256
to
1f24f99
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 tested functional in test enviroment
Please @carlosdauden review thanks |
return | ||
if package_barcode: | ||
packaging = self.env['product.packaging'].search([ | ||
('barcode', '=', package_barcode), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't be useful to reuse _barcode_domain() function as in https://github.com/OCA/stock-logistics-barcode/pull/203/files#diff-fb62e484a3862c535a01cefb6a9d013cR45 ?
self.product_id = packaging.product_id | ||
elif product_barcode: | ||
product = self.env['product.product'].search([ | ||
('barcode', '=', product_barcode), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review. LGTM. Just a question
This PR has the |
1f24f99
to
6a66d2c
Compare
Hi @rousseldenis !!! Changes done... I can't be there this year !!! |
6a66d2c
to
a7b57a8
Compare
@rousseldenis the method _prepare_barcode_domain is not defined in wiz.stock.barcodes.new.lot so I can not use it in this model, but You are rigth, so in other PR, after this has been merged, I will do this improvement ... OK? |
/ocabot merge |
On my way to merge this fine PR! |
Congratulations, your PR was merged at 9a1807f. Thanks a lot for contributing to OCA. ❤️ |
cc @Tecnativa