@@ -161,7 +161,7 @@ class Amendment(Workflow, ModelSQL, ModelView):
|
||||
@classmethod
|
||||
def _stock_moves(cls, line):
|
||||
for move in line.moves:
|
||||
if move.state == 'draft':
|
||||
if move.state in {'staging', 'draft'}:
|
||||
yield move
|
||||
|
||||
|
||||
|
||||
@@ -177,7 +177,7 @@ class Amendment(Workflow, ModelSQL, ModelView):
|
||||
@classmethod
|
||||
def _stock_moves(cls, line):
|
||||
for move in line.moves:
|
||||
if move.state == 'draft':
|
||||
if move.state in {'staging', 'draft'}:
|
||||
yield move
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user