-
-
Notifications
You must be signed in to change notification settings - Fork 199
[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
base: 16.0
Are you sure you want to change the base?
Conversation
When searching a channel for a picking, if the channel has a warehouse then it must match otherwise the picking type must match
Hi @mt-software-de, @sebalix, |
be5b179
to
c6be5de
Compare
Ensure warehouse is set on test channels
c6be5de
to
69488de
Compare
Fix compatilibity with stock_release_channel_partner_by_date. Domain must apply on channel so that we don't restrict partner specific channels.
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.
Fixing compatibility with:
cc @sebalix @santostelmo