-
-
Notifications
You must be signed in to change notification settings - Fork 196
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
[14.0] stock_available_to_promise_release: Allow unrelease processed qties #971
base: 14.0
Are you sure you want to change the base?
Conversation
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.
Need to adapt README as well
stock_available_to_promise_release/models/stock_location_route.py
Outdated
Show resolved
Hide resolved
stock_available_to_promise_release/models/stock_location_route.py
Outdated
Show resolved
Hide resolved
b5ad9ef
to
f6cf4c7
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.
Some minor remarks
returned_qty = moves_to_return._return_quantity_in_stock( | ||
qty_to_return_at_step | ||
) | ||
qty_returned_for_move += returned_qty |
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.
I would move this before the block just after the if float_is_zero
qty_returned_for_move += qty_to_return_at_step
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.
I don't think we should.
Break only breaks this loop, but this qty_returned_for_move
must be up to date for the outter one, which relies on this variable to determine how many remaining units has to be returned.
Maybe I'm missing something.
f6cf4c7
to
eb6a8f5
Compare
This PR adds a new option on stock routes, allowing to unrelease a delivery even if some internal operations (e.g. pick) are already done, creating a return move to the stock location.