-
-
Notifications
You must be signed in to change notification settings - Fork 729
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][IMP] stock_move_auto_assign_auto_release: Release release_ready moves together #2122
[14.0][IMP] stock_move_auto_assign_auto_release: Release release_ready moves together #2122
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.
LGTM (Code review only)
c8a037c
to
d1465d8
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.
What about dropping this moves_auto_release
method and in _enqueue_auto_assign
, check that the move.picking_id
is is_auto_release_allowed
, and then use as delayable _delay_auto_release_available_to_promise
(which is better placed in stock_move_auto_assign_auto_release than in stock_release_channel_auto_release)
It would be worth adding a fix on |
So you mean a check if all moves of a picking are in the recordset if the policy is one? |
Ok you mean moving |
d1465d8
to
e703def
Compare
job = self._get_job_for_method( | ||
trap.enqueued_jobs, shipping.auto_release_available_to_promise | ||
) | ||
job.perform() |
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.
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 know why yet, i will have a look.
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.
Locally it works. :-)
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.
Somehow the trap jobs wasn't working as expected with the current queue.job version. I fixed it
e703def
to
d7f63f4
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.
Maybe the readme could be updated also ?
LG otherwise.
This PR has the |
…ings instead of moves Instead of just releasing the release ready moves of a give product it now releases the whole transfer This ensures that a transfer with a release_policy=one gets not split
d7f63f4
to
6eb9c8f
Compare
/ocabot merge patch |
Hey, thanks for contributing! Proceeding to merge this for you. |
Congratulations, your PR was merged at cc8e67d. Thanks a lot for contributing to OCA. ❤️ |
A a transfer is waiting for more than product to release and the release policy is "one".
The whole transfer should be released, instead of only the last received one.
Within this PR
Also releaseable siblings will be released.