-
-
Notifications
You must be signed in to change notification settings - Fork 35
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][IMP] repair_refurbish_repair_stock_move: allow setting a repair order "to refurbish" in the middle of the process #54
Conversation
…ethod to improve inhertitability
…ve should be the repair order, the other stock moves related to the repair are already with that source document
…r "to refurbish" in the middle of the process. The stock moves are already created but in the middle the user decides the repair will be refurbish. Before this commit the stock moves are already created and they are not valid for the new approach. Also the repair refurbish move is not created. The solution consist of cancelling existing moves and recreating them It also covers the case when the repair passes from "to refurbish" to a normal repair
e172831
to
e25152d
Compare
…efurbish the refurbish lot may not be selected so when it is selected, it should be assigned to existing stock moves
51f1c70
to
fd5bbb6
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.
/ocabot merge patch
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at 5a872c5. Thanks a lot for contributing to OCA. ❤️ |
This fixes the case where the stock moves are already created but in the middle the user decides the repair will be refurbish.
Before this fix the stock moves are already created and they are not valid for the new approach. Also
the repair refurbish move is not created.
The solution consist of cancelling existing moves and recreating them.
It also covers the case when the repair passes from "to refurbish" to a normal repair.
This also includes a needed improvement in dependent module:
[IMP] repair_stock_move: do the creation of stock moves in separate method to improve inheritability
Additionally, added a small improvement in repair_refurbish:
[IMP] repair_refurbish: the source document of the refurbish stock move should be the repair order, the other stock moves related to the repair are already with that source document
cc @ForgeFlow