details: https://code.tryton.org/tryton/commit/504795bdb0b1
branch: default
user: Sergi Almacellas Abellana <[email protected]>
date: Thu Sep 04 09:08:41 2025 +0200
description:
Limit closed period assigned moves search
diffstat:
modules/stock/period.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 3bddb1b8f1e5 -r 504795bdb0b1 modules/stock/period.py
--- a/modules/stock/period.py Fri Nov 21 10:57:32 2025 +0100
+++ b/modules/stock/period.py Thu Sep 04 09:08:41 2025 +0200
@@ -134,7 +134,8 @@
('planned_date', '<=', recent_date),
],
('effective_date', '<=', recent_date),
- ]]):
+ ]],
+ limit=1):
raise PeriodCloseError(
gettext('stock.msg_period_close_assigned_move'))