changeset 073eca862466 in modules/account_statement:5.0
details:
https://hg.tryton.org/modules/account_statement?cmd=changeset;node=073eca862466
description:
Do not post a second times move
issue8864
review288581002
(grafted from 4d122b7a7611fbbfabe1cb4b40b4a81cdc2606da)
diffstat:
statement.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diffs (13 lines):
diff -r 5337d08eb6af -r 073eca862466 statement.py
--- a/statement.py Fri Nov 08 19:50:03 2019 +0100
+++ b/statement.py Thu Dec 05 21:38:03 2019 +0100
@@ -834,7 +834,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):