-
-
Notifications
You must be signed in to change notification settings - Fork 724
[18.0] [FIX] stock_dynamic_routing
: keep source location
#2106
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: 18.0
Are you sure you want to change the base?
[18.0] [FIX] stock_dynamic_routing
: keep source location
#2106
Conversation
Hi @jbaudoux, |
ba8b24e
to
b31719e
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
# Use the source location of the routing rule, if not already done | ||
# If a sublocation is used, it's respected. | ||
if not move.location_id._child_of(routing_rule.location_src_id): | ||
move.with_context( | ||
__applying_routing_rule=True | ||
).location_id = routing_rule.location_src_id |
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.
Can you extend a test to cover this fix? Validate the pulled move and check the chain is not broken
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.
Sure thing, it's done!
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.
…y a sublocation of the routing rule src location
…location dependency
b31719e
to
03c21da
Compare
This PR has the |
The first commit is the actual fix.
The others are additional improvements, quick win opportunities