line, type: fix index

This commit is contained in:
Frederik Jaeckel 2023-06-08 17:08:47 +02:00
parent 2b6731d071
commit e605d5f0d3
2 changed files with 7 additions and 2 deletions

View file

@ -245,7 +245,7 @@ class Line(SecondCurrencyMixin, MemCacheIndexMx, Workflow, ModelSQL, ModelView):
(t.state, Index.Equality())),
Index(
t,
(t.reference, Index.Range())),
(t.reference, Index.Equality())),
})
cls._sql_constraints.extend([
('state_val2',