diff --git a/modules/stock/period.py b/modules/stock/period.py index 64d8603a72..76c77f59b0 100644 --- a/modules/stock/period.py +++ b/modules/stock/period.py @@ -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,