Limit closed period assigned moves search

This commit is contained in:
Sergi Almacellas Abellana
2025-09-04 09:08:41 +02:00
parent bf6165076a
commit 31a8acf935
+2 -1
View File
@@ -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'))