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