Use the right order of columns in the index used for account.account.party

issue10216
review 348241002
This commit is contained in:
Nicolas Évrard
2021-04-28 10:15:54 +02:00
parent a5cdab4d30
commit 4fceb23ccc
+1 -1
View File
@@ -774,7 +774,7 @@ class Line(ModelSQL, ModelView):
table_h.index_action(['move', 'account'], 'add')
# Index for account.account.party
table_h.index_action(
['party', 'account', 'id'], 'add', where=table.party != Null)
['account', 'party', 'id'], 'add', where=table.party != Null)
@classmethod
def default_date(cls):