diff --git a/modules/stock/period.py b/modules/stock/period.py index 0cbe0ad7ac..76d37019aa 100644 --- a/modules/stock/period.py +++ b/modules/stock/period.py @@ -134,7 +134,8 @@ class Period(Workflow, ModelSQL, ModelView): ('planned_date', '<=', recent_date), ], ('effective_date', '<=', recent_date), - ]]): + ]], + limit=1): raise PeriodCloseError( gettext('stock.msg_period_close_assigned_move'))