diff --git a/shipment.py b/shipment.py index ba9e71251c..76c55d9a20 100644 --- a/shipment.py +++ b/shipment.py @@ -75,7 +75,9 @@ class ShipmentAssignMixin(ShipmentMixin): def _get_assign_domain(cls): pool = Pool() Date = pool.get('ir.date') + context = Transaction().context return [ + ('company', '=', context.get('company')), ('state', '=', 'waiting'), ('planned_date', '=', Date.today()), ]