changeset 89bde885b6c2 in modules/account_dunning_letter:5.0
details:
https://hg.tryton.org/modules/account_dunning_letter?cmd=changeset;node=89bde885b6c2
description:
Update state test from done to waiting
issue8169
review48741002
(grafted from d490f7ee29421d53e8bd0e051f4823e0985d2d07)
diffstat:
dunning.py | 4 ++--
tests/scenario_account_dunning_letter.rst | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
diffs (29 lines):
diff -r 320cd8646609 -r 89bde885b6c2 dunning.py
--- a/dunning.py Tue Feb 19 21:55:03 2019 +0100
+++ b/dunning.py Fri Mar 08 18:51:48 2019 +0100
@@ -34,7 +34,7 @@
Dunning = pool.get('account.dunning')
dunnings = Dunning.browse(Transaction().context['active_ids'])
ids = [d.id for d in dunnings
- if d.state == 'done'
+ if d.state == 'waiting'
and not d.blocked
and d.party
and d.level.print_on_letter]
@@ -64,7 +64,7 @@
Date = pool.get('ir.date')
dunnings = [d for d in records
- if d.state == 'done'
+ if d.state == 'waiting'
and not d.blocked
and d.party]
parties = list(set((d.party for d in dunnings)))
diff -r 320cd8646609 -r 89bde885b6c2 tests/scenario_account_dunning_letter.rst
--- a/tests/scenario_account_dunning_letter.rst Tue Feb 19 21:55:03 2019 +0100
+++ b/tests/scenario_account_dunning_letter.rst Fri Mar 08 18:51:48 2019 +0100
@@ -186,3 +186,4 @@
>>> dunning.reload()
>>> dunning.state
'waiting'
+ >>> (_, _, _, _), = process_dunning.actions