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), ]