Return operations when the context is from_done_operation to false

This commit is contained in:
Raimon Esteve 2016-09-26 13:27:54 +02:00
parent a07f3cef41
commit b673d40aa7
1 changed files with 1 additions and 1 deletions

View File

@ -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,