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

[16.0][FIX] mrp_subcontracting_skip_no_negative: consider backorder #1324

Open
wants to merge 4 commits into
base: 16.0
Choose a base branch
from

Conversation

fdesmottes
Copy link

During partial receipt of a subcontract due to the unavailability of components, then we have a bug because the negative stock message appears again.

image

After analysis with the help of @hedi_ad, the raison is we also test (by mistake) the availability status of the components on the manufacturing order left.

@AungKoKoLin1997
Copy link

@fdesmottes

During partial receipt of a subcontract due to the unavailability of components, then we have a bug because the negative stock message appears again.

With your current approach, even we make full receipt of subcontract with some availability of components(eg, need 10 quantity for components but have only 5 quantity), the check will skip, isn't?

@AungKoKoLin1997
Copy link

@fdesmottes This is the reason why we added the check for reservation_state. #1025 (comment)
After I checked the details, I assume checking reservation_state should not be related with no negative module. So, I think we can just remove this part in your PR.

@fdesmottes
Copy link
Author

@AungKoKoLin1997 Thank you for your feedback.

With your current approach, even we make full receipt of subcontract with some availability of components(eg, need 10 quantity for components but have only 5 quantity), the check will skip, isn't?

Good question, but I think it's working. I will test this.

After I checked the details, I assume checking reservation_state should not be related with no negative module. So, I think we can just remove this part in your PR.

I'm not sure I understand your answer. You want to remove the entire for move in moves_with_no_check: block?

@AungKoKoLin1997
Copy link

I'm not sure I understand your answer. You want to remove the entire for move in moves_with_no_check: block?

Yes. I mean it because this check is not related with no negative and should not be part of mrp_subcontracting_skip_no_negative. As I told you, this check was for checking reservation_state of MO and even the reservation_state of MO is not assigned, there is no negative stock in the location. So, my idea is just to pass the corresponding context for subcontract moves.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants