Limit reschedule to contextual company
issue11010 review376111002 (grafted from 44f3b5c202c0339eacc23196af8659d62dd25738) --HG-- branch : 6.0
This commit is contained in:
1 parent
d1e0475d43
commit
1f562be756
1 file changed
+2
@@ -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),
|
||||
]
|
||||
|
||||
Reference in new issue
Block a user