Skip to content

Commit

Permalink
Merge PR #779 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by sebalix
  • Loading branch information
OCA-git-bot committed Nov 13, 2023
2 parents 060c85a + e4c4301 commit 664a29e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion stock_release_channel/models/stock_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 664a29e

Please sign in to comment.