details: https://code.tryton.org/tryton/commit/23446beaa98a
branch: default
user: Cédric Krier <[email protected]>
date: Wed Jan 14 00:35:13 2026 +0100
description:
Set DESC as index options instead of the expression
diffstat:
trytond/trytond/model/modelsql.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r b45a29b26853 -r 23446beaa98a trytond/trytond/model/modelsql.py
--- a/trytond/trytond/model/modelsql.py Tue Jan 13 16:50:08 2026 +0100
+++ b/trytond/trytond/model/modelsql.py Wed Jan 14 00:35:13 2026 +0100
@@ -369,8 +369,9 @@
history_table,
(Coalesce(
history_table.write_date,
- history_table.create_date).desc,
+ history_table.create_date),
Index.Range()),
+ order='DESC',
include=[
Column(history_table, '__id'),
history_table.id]),