-
-
Notifications
You must be signed in to change notification settings - Fork 709
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
[PORT] product_lot_sequence: #1323 from 15.0 #1559
[PORT] product_lot_sequence: #1323 from 15.0 #1559
Conversation
When opening the detailed operations view of a stock move, Odoo is calling stock.production.lot._get_next_serial to set stock.move.next_serial field anytime the product is tracked by serial and the move is assigned. If we use this module with product or global policy, the respective sequence will therefore be called and incremented anytime this view is open, even if the picking is not creating lots (e.g. delivery orders or internal transfers) To avoid incrementing the sequence unnecessarily, we only allow to get the next sequence number the first time this view is opened and if the move has to create new serial numbers. Otherwise, we force the value to be set to stock.move.next_serial field to an empty string if no serial has to be created through this move, or to the next_serial value assigned on the first opening of the view.
3b43b2c
to
77f3821
Compare
@grindtildeath would you mind reviewing this PR? 🙏 |
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.
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.
LGTM overall, non-blocking comment
77f3821
to
8d070b3
Compare
ping @OCA/product-maintainers |
This comment was marked as resolved.
This comment was marked as resolved.
/ocabot merge patch |
This PR looks fantastic, let's merge it! |
@dreispt looks like a merge stuck. |
/ocabot merge patch |
What a great day to merge this nice PR. Let's do it! |
@dreispt wondering if that will do a trick as https://github.com/OCA/product-attribute/pull/1559/checks?check_run_id=22995777385 is still stuck :-) |
Congratulations, your PR was merged at d3e080f. Thanks a lot for contributing to OCA. ❤️ |
cf. #1323