From 1f562be7563b281bf9b0182d9e78f48d38cd8fd2 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 (grafted from 44f3b5c202c0339eacc23196af8659d62dd25738) --HG-- branch : 6.0 --- production.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/production.py b/production.py index 6f660b1a79..06d034ed17 100644 --- a/production.py +++ b/production.py @@ -776,7 +776,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), ]