Skip to content
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

Merged

Conversation

AaronHForgeFlow
Copy link
Contributor

@AaronHForgeFlow AaronHForgeFlow commented Sep 5, 2024

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

…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
@AaronHForgeFlow AaronHForgeFlow force-pushed the 15.0-fix-repair_refurbish_repair_stock_move branch from e172831 to e25152d Compare September 5, 2024 10:53
…efurbish the refurbish lot may not be selected

so when it is selected, it should be assigned to existing stock moves
@AaronHForgeFlow AaronHForgeFlow force-pushed the 15.0-fix-repair_refurbish_repair_stock_move branch from 51f1c70 to fd5bbb6 Compare September 9, 2024 11:05
Copy link

@JordiMForgeFlow JordiMForgeFlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code review 👍🏼

Copy link
Contributor

@LoisRForgeFlow LoisRForgeFlow left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 15.0-ocabot-merge-pr-54-by-LoisRForgeFlow-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit a0684eb into OCA:15.0 Sep 9, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 5a872c5. Thanks a lot for contributing to OCA. ❤️

@MiquelRForgeFlow MiquelRForgeFlow deleted the 15.0-fix-repair_refurbish_repair_stock_move branch September 9, 2024 15:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants