diff --git a/stock_release_channel/models/stock_move.py b/stock_release_channel/models/stock_move.py index e653533211..aafc48aba4 100644 --- a/stock_release_channel/models/stock_move.py +++ b/stock_release_channel/models/stock_move.py @@ -13,7 +13,10 @@ def release_available_to_promise(self): # as we may release only partially, the channel may # change res = super().release_available_to_promise() - self.picking_id.assign_release_channel() + # As moves can be merged (and then unlinked), we should ensure + # they still exist. + moves = self.exists() + moves.picking_id.assign_release_channel() return res def _action_confirm(self, merge=True, merge_into=False):