From aa2a969c856b9e8ef813d691527f5db3fc9ade1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Tue, 21 Dec 2021 23:14:59 +0100 Subject: [PATCH] Limit assign to contextual company issue11010 review376111002 (grafted from 1f608370cd326df578eb01295582f0004431ee2c) --HG-- branch : 6.0 --- shipment.py | 2 ++ 1 file changed, 2 insertions(+) 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()), ]