Skip to content
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][IMP] stock_picking_group_by_partner_by_carrier: Control the original_group_id propagation. #1498

Conversation

lmignon
Copy link
Contributor

@lmignon lmignon commented Feb 6, 2024

No description provided.

@lmignon
Copy link
Contributor Author

lmignon commented Feb 6, 2024

cc @rousseldenis @jbaudoux

@lmignon lmignon force-pushed the 16.0-stock_picking_group_by_partner_by_carrier-fix_orignal_group_id_propagation-lmi branch 2 times, most recently from 87013af to bce2fbe Compare February 9, 2024 13:07
@lmignon lmignon marked this pull request as draft February 9, 2024 17:08
@lmignon lmignon marked this pull request as ready for review February 12, 2024 10:04
Copy link
Contributor

@rousseldenis rousseldenis left a comment

Choose a reason for hiding this comment

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

Code review

Copy link
Contributor

@jbaudoux jbaudoux left a comment

Choose a reason for hiding this comment

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

This overall looks good to me

@@ -267,6 +277,73 @@ def test_delivery_multi_step_group_pick(self):
self.assertEqual(len(picks), 1)
self.assertFalse(so1.picking_ids - so2.picking_ids)

def test_delivery_multi_step_group_out_pick_op_merged(self):
Copy link
Contributor

Choose a reason for hiding this comment

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

This should not be possible

Copy link
Contributor

Choose a reason for hiding this comment

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

I would drop this test that does not make sense as you should not be able to enable grouping on non outgoing picking type

@lmignon lmignon force-pushed the 16.0-stock_picking_group_by_partner_by_carrier-fix_orignal_group_id_propagation-lmi branch from 9019d32 to 8b93125 Compare March 19, 2024 09:43
@lmignon lmignon marked this pull request as draft March 22, 2024 15:22
@lmignon
Copy link
Contributor Author

lmignon commented Mar 22, 2024

Back to draft. Compatibility issue with the stock_available_to_promise_release.

@lmignon lmignon force-pushed the 16.0-stock_picking_group_by_partner_by_carrier-fix_orignal_group_id_propagation-lmi branch from eb843bb to d0b3f42 Compare March 26, 2024 14:16
@lmignon lmignon marked this pull request as ready for review March 26, 2024 14:19
@lmignon lmignon force-pushed the 16.0-stock_picking_group_by_partner_by_carrier-fix_orignal_group_id_propagation-lmi branch from fa55d62 to 1cd4911 Compare March 27, 2024 13:50
@jbaudoux
Copy link
Contributor

@lmignon Can you drop changes to generated files?

lmignon added 6 commits May 22, 2024 14:27
…ed group

When merging an outgoing picking, update only the current moves with the new procurement group. This is required to ensure that an update of the quantity on a SO will be properly applied to all the picking chain through the run of stock rules.
… propagation configurable on stock rule.

In a multi steps delivery process, when you allow to group the moves linked to the same carrier and partner into the same shipping, it's important to be able to merge internal moves that could be pulled. This merge is only possible if the original_group_id is not propagated to the pulled moves. We add an option to disable the propagation on the stock.rule.
…p swap

When the grouping functionality is enabled. A new procurement group is created the first time a pick out is created as merged. Every time moves from a new group are added into the picking, the merged procurement is updated to link the new group. In this way, the group is never updated after its original creation
When a backorder is created from a merged picking, a new procurement group must be created to ensure that only original sale orders and procurement group from the remaining moves are linked to the backorder.
@lmignon lmignon force-pushed the 16.0-stock_picking_group_by_partner_by_carrier-fix_orignal_group_id_propagation-lmi branch from afddd2b to 6365ef5 Compare May 22, 2024 12:28
@lmignon
Copy link
Contributor Author

lmignon commented May 22, 2024

@jbaudoux tests removed and rebase done

Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Sep 22, 2024
@github-actions github-actions bot closed this Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement needs review stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants