[FIX] s_p_group_by_: fix _get_sorted_moves by calling super()

This commit is contained in:
Sébastien Alix
2021-10-18 12:24:04 +02:00
parent ce573ddbf1
commit 7e05698960

View File

@@ -8,8 +8,8 @@ class StockPicking(models.Model):
_inherit = "stock.picking"
def _get_sorted_moves(self):
self.ensure_one()
return self.move_lines.sorted(
moves = super()._get_sorted_moves()
return moves.sorted(
lambda m: m.sale_line_id.order_id.id * 1000 + m.sale_line_id.position
)