Order lines in grouped line by descending id

This is to have the same order as the calculation of payable/receivable balance.
This commit is contained in:
Cédric Krier
2025-03-13 18:34:04 +01:00
parent 3b0b5f279e
commit b66f41cdca
@@ -118,7 +118,7 @@ class MoveLineGroup(MoveLineMixin, ModelSQL, ModelView):
lines = fields.Many2Many(
'account.move.line.group-move.line', 'group', 'line', "Lines",
readonly=True)
readonly=True, order=[('id', 'DESC')])
currency = fields.Function(fields.Many2One(
'currency.currency', "Currency"), 'on_change_with_currency')