details: https://code.tryton.org/tryton/commit/4d15f132eb36
branch: default
user: Cédric Krier <[email protected]>
date: Fri Feb 27 21:41:52 2026 +0100
description:
Order cron logs by descending ID
User is mostly interested in the last runs.
diffstat:
trytond/trytond/ir/cron.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r dcb697c1777e -r 4d15f132eb36 trytond/trytond/ir/cron.py
--- a/trytond/trytond/ir/cron.py Thu Feb 05 15:40:29 2026 +0100
+++ b/trytond/trytond/ir/cron.py Fri Feb 27 21:41:52 2026 +0100
@@ -100,7 +100,8 @@
('ir.model|refresh_materialized', "Refresh Materialized Models"),
], "Method", required=True, states=_states)
- logs = fields.One2Many('ir.cron.log', 'cron', "Logs", readonly=True)
+ logs = fields.One2Many(
+ 'ir.cron.log', 'cron', "Logs", readonly=True, order=[('id', 'DESC')])
del _states