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

[IMP] stock_release_channel_shipment_advice_deliver: Be more lax on backorder pickings / improve move to unrelease retrieval #10

Conversation

rousseldenis
Copy link

Don't raise error if an unstarted backorder still remains in the chain

jbaudoux and others added 12 commits April 3, 2024 17:20
Add option auto_delivery and allow to print in-process shipment advice
Allow to deliver when the picking is partially processed but no backorder is created
Fix test as channels are now created by default in state asleep
Allow to print shipment in delivered state
- Show button 'Deliver' in the kanban view
- Show button 'Plan Shipment' if not auto deliver
- Update state of release channel to 'delivering' when the related shipment advice starts
…shipment_advice_deliver-3

[16.0][IMP] stock_release_channel_shipment_advice_deliver
…shipment_advice_deliver-4

[16.0][REF] stock_release_channel_shipment_advice_deliver: Update test
…ackorder pickings

Don't raise error if an unstarted backorder still remains in the chain
… with a picking backorder

As we want to let the operator deliver even if a backorder still exists,
show the confirmation wizard in that case (and not an error).
@rousseldenis
Copy link
Author

Includes also : #9

@rousseldenis rousseldenis changed the title [IMP] stock_release_channel_shipment_advice_deliver: Be more lax on backorder pickings [IMP] stock_release_channel_shipment_advice_deliver: Be more lax on backorder pickings / improve move to unrelease retrieval Jul 18, 2024
…l picking_ids field

To get the stock moves to unrelease, don't rely on release channel's picking_ids field
as this is raising infinetely with time. Do a search instead.
@rousseldenis rousseldenis force-pushed the 16.0-imp-deliver-check-progress-dro branch 2 times, most recently from 97ee1b9 to 5bcd8db Compare July 18, 2024 13:26
@rousseldenis
Copy link
Author

I needed to remove test-requirements as I had conflicts merging all branches locally

…unrelease at deliver

Add the stock rule option to filter moves to unrelease at deliver
@rousseldenis
Copy link
Author

@jbaudoux

@rousseldenis rousseldenis force-pushed the 16.0-imp-deliver-check-progress-dro branch 2 times, most recently from 33790a6 to 7d773df Compare August 26, 2024 10:20
@@ -136,23 +119,42 @@ def _picking_moves_to_unrelease(self):
]
)

def _shipping_moves_to_unrelease(self):
moves = self.picking_ids.move_ids.filtered(
Copy link
Owner

@jbaudoux jbaudoux Aug 26, 2024

Choose a reason for hiding this comment

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

I think if you define open_picking_ids like picking_ids but with a domain (state not in done, cancel) on the field, the orm will apply the domain in the where clause and it will not grow
Then you could replace this just by
moves = self.open_picking_ids._is_unreleaseable()
I think it is better than your at_deliver_to_unrelease_shipping_move_ids which repeats _is_unreleaseable definition

Copy link
Author

Choose a reason for hiding this comment

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

Yes. I wanted to limit some modifications to the code here defined. That open_picking_ids field should be done in stock_release_channel module. Will do it in a second phase.

Copy link
Owner

Choose a reason for hiding this comment

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

@rousseldenis
Copy link
Author

rousseldenis commented Sep 24, 2024

@jbaudoux In production for weeks

@jbaudoux jbaudoux force-pushed the 16.0-release_channel_deliver branch from d4897b0 to e2b5db6 Compare October 1, 2024 12:54
@jbaudoux jbaudoux force-pushed the 16.0-release_channel_deliver branch 2 times, most recently from ca339dc to 2f028de Compare October 1, 2024 13:00
@jbaudoux
Copy link
Owner

jbaudoux commented Oct 1, 2024

I cherry-picked the commits

@jbaudoux jbaudoux closed this Oct 1, 2024
@lmignon lmignon deleted the 16.0-imp-deliver-check-progress-dro branch October 10, 2024 14:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants