-
-
Notifications
You must be signed in to change notification settings - Fork 201
[16.0][FIX] stock_release_channel_partner_by_date: properly detect the exception #999
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] stock_release_channel_partner_by_date: properly detect the exception #999
Conversation
Hi @mt-software-de, @sebalix, |
c6be5de
to
69488de
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.
LG overall but still one question
@@ -111,16 +111,22 @@ def _get_release_channel_possible_candidate_domain_channel(self): | |||
return [ | |||
("is_manual_assignment", "=", False), | |||
("state", "!=", "asleep"), | |||
"|", | |||
("picking_type_ids", "=", False), | |||
("picking_type_ids", "in", self.picking_type_id.ids), |
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.
Is it expected to use picking data in _get_release_channel_possible_candidate_domain_channel
domain hook? I thought we designed it for basic criteria selection of the channel (like the ones already defined) without relying on current picking. For that we have _get_release_channel_possible_candidate_domain_picking
.
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.
We need a domain to find out that the exception is valid for that warehouse & carrier but not picking type as it could be recomputed by the warehouse flow module.
I'll add docstring to those methods.
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 added the docstrings
When searching a channel for a picking, if the channel has a warehouse then it must match otherwise the picking type must match
Ensure warehouse is set on test channels
Fix compatilibity with stock_release_channel_partner_by_date. Domain must apply on channel so that we don't restrict partner specific channels.
67d53ea
to
7551f74
Compare
323f018
to
4cbd205
Compare
/ocabot merge patch |
This PR looks fantastic, let's merge it! |
This PR has the |
Congratulations, your PR was merged at 7c59d37. Thanks a lot for contributing to OCA. ❤️ |
Fixing compatibility with:
cc @sebalix @santostelmo