Limit assign to contextual company

issue11010
review376111002
(grafted from 1f608370cd326df578eb01295582f0004431ee2c)

--HG--
branch : 6.0
This commit is contained in:
Cédric Krier committed 2021-12-21 23:14:59 +01:00
1 parent 020d90a10c
commit aa2a969c85
1 file changed
+2
+2
View File
@@ -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()),
]