Clear stock moves in staging when validating amendment
Closes #12999 (grafted from abebfcfa0616585fcea20e17b9bafd6413011964) --HG-- branch : 7.0
This commit is contained in:
1 parent
4ef1675faf
commit
206494442f
2 files changed
+2
-2
No files matched your search
@@ -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