Return operations when the context is from_done_operation to false
This commit is contained in:
parent
a07f3cef41
commit
b673d40aa7
|
@ -270,7 +270,7 @@ class Production:
|
|||
], limit=1)
|
||||
if pending_operations:
|
||||
if Transaction().context.get('from_done_operation', False):
|
||||
return
|
||||
return productions
|
||||
operation, = pending_operations
|
||||
cls.raise_user_error('pending_operations', error_args={
|
||||
'production': operation.production.rec_name,
|
||||
|
|
Loading…
Reference in New Issue