changeset 4d122b7a7611 in modules/account_statement:default
details:
https://hg.tryton.org/modules/account_statement?cmd=changeset;node=4d122b7a7611
description:
Do not post a second times move
issue8864
review288581002
diffstat:
statement.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r b3754400de7d -r 4d122b7a7611 statement.py
--- a/statement.py Wed Dec 04 11:09:35 2019 +0100
+++ b/statement.py Thu Dec 05 21:38:03 2019 +0100
@@ -920,7 +920,8 @@
@classmethod
def post_move(cls, lines):
Move = Pool().get('account.move')
- Move.post(list({l.move for l in lines if l.move}))
+ Move.post(list({l.move for l in lines
+ if l.move and l.move.state != 'posted'}))
@classmethod
def delete_move(cls, lines):