Add location and use product range in stock period cache index
The cache is always filtered by location and the product is often filtered with reduced ids.
This commit is contained in:
@@ -190,7 +190,8 @@ class Cache(ModelSQL, ModelView):
|
||||
Index(
|
||||
t,
|
||||
(t.period, Index.Equality()),
|
||||
(t.product, Index.Equality()),
|
||||
(t.location, Index.Range()),
|
||||
(t.product, Index.Range()),
|
||||
include=[t.internal_quantity]),
|
||||
Index(
|
||||
t,
|
||||
|
||||
Reference in New Issue
Block a user