From 154aff25ebcb7cbf368abcf66b0870d792120355 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 21 Dec 2021 23:15:23 +0100 Subject: [PATCH] Limit reschedule to contextual company issue11010 review376111002 --- production.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/production.py b/production.py index 46e6ea9ec2..ef4aba288c 100644 --- a/production.py +++ b/production.py @@ -771,7 +771,9 @@ class Production(ShipmentAssignMixin, Workflow, ModelSQL, ModelView): @classmethod def _get_reschedule_domain(cls, date): + context = Transaction().context return [ + ('company', '=', context.get('company')), ('state', '=', 'waiting'), ('planned_start_date', '<', date), ]