-
-
Notifications
You must be signed in to change notification settings - Fork 617
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
[16.0][FIX] pos_product_multi_barcode: incoherent data #1281
[16.0][FIX] pos_product_multi_barcode: incoherent data #1281
Conversation
If a `barcode` is already in `product_by_barcode`, do not override it, as Odoo does with `product_by_id`. This can lead to incoherent data if something changes after product is first loaded and then reloads (if limited loading is enabled), or it is modified in `product_by_id` and not in `product_by_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.
LGTM!
Hi @OCA/pos-maintainers, can this be merged? Thanks! |
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.
Seems fine
Could you provide more information about how to reproduce the error trying to solve?
This PR has the |
Thanks for the review @ivantodorovich! The way we found this is a little tricky, and involves another module loading some product info asynchronously after PoS first load. The process is:
Regards |
Thanks! /ocabot merge patch |
On my way to merge this fine PR! |
Congratulations, your PR was merged at 5fb12ad. Thanks a lot for contributing to OCA. ❤️ |
If a
barcode
is already inproduct_by_barcode
, do not override it, as Odoo does withproduct_by_id
. This can lead to incoherent data if something changes after product is first loaded and then reloads (if limited loading is enabled), or it is modified inproduct_by_id
and not inproduct_by_barcode
.FL-556-4600
FL-556-5129