-
Notifications
You must be signed in to change notification settings - Fork 0
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
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
Name the tests
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).
Includes also : #9 |
…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.
97ee1b9
to
5bcd8db
Compare
I needed to remove test-requirements as I had conflicts merging all branches locally |
stock_release_channel_shipment_advice_deliver/models/stock_release_channel.py
Outdated
Show resolved
Hide resolved
stock_release_channel_shipment_advice_deliver/models/stock_release_channel.py
Show resolved
Hide resolved
…unrelease at deliver Add the stock rule option to filter moves to unrelease at deliver
stock_release_channel_shipment_advice_deliver/models/stock_release_channel.py
Outdated
Show resolved
Hide resolved
…ted pickings twice
33790a6
to
7d773df
Compare
@@ -136,23 +119,42 @@ def _picking_moves_to_unrelease(self): | |||
] | |||
) | |||
|
|||
def _shipping_moves_to_unrelease(self): | |||
moves = self.picking_ids.move_ids.filtered( |
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 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
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.
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.
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.
Done here:
@jbaudoux In production for weeks |
d4897b0
to
e2b5db6
Compare
ca339dc
to
2f028de
Compare
I cherry-picked the commits |
Don't raise error if an unstarted backorder still remains in the chain