Limit reschedule to contextual company

issue11010
review376111002
This commit is contained in:
Cédric Krier
2021-12-21 23:15:23 +01:00
parent 6b18d4dec3
commit 154aff25eb
+2
View File
@@ -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),
]