-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
[15.0][ADD] repair_stock_move_restrict_lot: Assign lot on stock move creation. #74
[15.0][ADD] repair_stock_move_restrict_lot: Assign lot on stock move creation. #74
Conversation
04875c2
to
8c18c88
Compare
8c18c88
to
c7f1136
Compare
Glue module between repair_stock_move and stock_restrict_lot. It assigns the repair lot to the stock moves on creation. Otherwise in the _action_assign it may reserve the incorrect quant and then and error is raised when unreserving the quant: https://github.com/odoo/odoo/blob/15.0/addons/stock/models/stock_move_line.py#L388
c7f1136
to
d161c4c
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.
Code review 👍
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
/ocabot merge nobump |
On my way to merge this fine PR! |
Congratulations, your PR was merged at c235b9a. Thanks a lot for contributing to OCA. ❤️ |
This is a new module. It is needed when using repair_stock_move and using lots. Otherwise in the_action_assign it may reserve the incorrect quant and then and error is raised when unreserving the quant: https://github.com/odoo/odoo/blob/15.0/addons/stock/models/stock_move_line.py#L388
Steps to reproduce. Create a product tracked with serial number and create multiple quants for various serials. It may happen that the reservation is done in the incorrect serial. See test case added for reference
Without this module you may get this error:
cc @ForgeFlow