Skip to content

Commit

Permalink
Merge PR #967 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 Jan 7, 2025
2 parents fa7e372 + 1018187 commit 31216b2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .oca/oca-port/blacklist/stock_release_channel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"pull_requests": {
"OCA/wms#533": "(auto) Nothing to port from PR #533",
"OCA/wms#595": "(auto) Nothing to port from PR #595",
"OCA/wms#772": "Lint",
"OCA/wms#860": "(auto) Nothing to port from PR #860"
}
}
7 changes: 6 additions & 1 deletion stock_release_channel/models/stock_release_channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,12 @@ def get_action_picking_form(self):

@staticmethod
def _pickings_sort_key(picking):
return (-int(picking.priority or 1), picking.date_priority, picking.id)
return (
-int(picking.priority or 1),
picking.scheduled_date,
picking.date_priority or picking.create_date,
picking.id,
)

def _get_next_pickings(self):
return getattr(self, "_get_next_pickings_{}".format(self.batch_mode))()
Expand Down

0 comments on commit 31216b2

Please sign in to comment.