Limit reschedule to contextual company
issue11010 review376111002
This commit is contained in:
@@ -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),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user