Limit reschedule to contextual company

issue11010
review376111002
(grafted from 44f3b5c202c0339eacc23196af8659d62dd25738)

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