Skip to content

Conversation

ivantodorovich
Copy link
Contributor

@ivantodorovich ivantodorovich commented Sep 18, 2025

The first commit is the actual fix.

The others are additional improvements, quick win opportunities

@OCA-git-bot
Copy link
Contributor

Hi @jbaudoux,
some modules you are maintaining are being modified, check this out!

@ivantodorovich ivantodorovich force-pushed the 18.0-fix-stock-dynamic-routing branch from ba8b24e to b31719e Compare September 18, 2025 19:28
@ivantodorovich ivantodorovich marked this pull request as ready for review September 18, 2025 20:11
Copy link
Contributor

@simahawk simahawk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LG

Comment on lines +291 to +296
# 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
Copy link
Contributor

@jbaudoux jbaudoux Sep 22, 2025

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

Copy link
Contributor Author

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!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@OCA-git-bot
Copy link
Contributor

This PR has the approved label and has been created more than 5 days ago. It should therefore be ready to merge by a maintainer (or a PSC member if the concerned addon has no declared maintainer). 🤖

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants