-
-
Notifications
You must be signed in to change notification settings - Fork 672
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
87013af
to
bce2fbe
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.
Code review
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.
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): |
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.
This should not be possible
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 would drop this test that does not make sense as you should not be able to enable grouping on non outgoing picking type
9019d32
to
8b93125
Compare
Back to draft. Compatibility issue with the stock_available_to_promise_release. |
eb843bb
to
d0b3f42
Compare
fa55d62
to
1cd4911
Compare
@lmignon Can you drop changes to generated files? |
…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.
afddd2b
to
6365ef5
Compare
@jbaudoux tests removed and rebase done |
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. |
No description provided.