details: https://code.tryton.org/tryton/commit/d308e8a6210b
branch: 7.8
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
(grafted from 23446beaa98ae648af5e44d47e3f360782765204)
diffstat:
trytond/trytond/model/modelsql.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (14 lines):
diff -r 7f1047d3b484 -r d308e8a6210b trytond/trytond/model/modelsql.py
--- a/trytond/trytond/model/modelsql.py Wed Jan 14 19:04:50 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]),