details: https://code.tryton.org/tryton/commit/609bb3237c0d
branch: default
user: Cédric Krier <[email protected]>
date: Mon May 11 15:50:41 2026 +0200
description:
Order the lines of the general ledger account
They must use the same order as the order used to calculate the
cumulative
balance.
Closes #14829
diffstat:
modules/account/account.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 868b0e31fbde -r 609bb3237c0d modules/account/account.py
--- a/modules/account/account.py Sat Jun 06 11:47:25 2026 +0200
+++ b/modules/account/account.py Mon May 11 15:50:41 2026 +0200
@@ -2110,7 +2110,8 @@
debit_type = fields.Many2One('account.account.type', "Debit Type")
credit_type = fields.Many2One('account.account.type', "Credit Type")
lines = fields.One2Many(
- 'account.general_ledger.line', 'account', "Lines", readonly=True)
+ 'account.general_ledger.line', 'account', "Lines", readonly=True,
+ order=[('move.date', 'ASC'), ('id', None)])
general_ledger_balance = fields.Boolean("General Ledger Balance")
@classmethod