details: https://code.tryton.org/tryton/commit/4428e64551df
branch: default
user: Cédric Krier <[email protected]>
date: Wed Feb 11 11:02:34 2026 +0100
description:
Cancel before reset to draft and validate before posting statement in
test scenario
diffstat:
modules/account_statement/tests/scenario_statement_origin.rst | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (19 lines):
diff -r b5d1fe248473 -r 4428e64551df
modules/account_statement/tests/scenario_statement_origin.rst
--- a/modules/account_statement/tests/scenario_statement_origin.rst Wed Feb
11 10:57:23 2026 +0100
+++ b/modules/account_statement/tests/scenario_statement_origin.rst Wed Feb
11 11:02:34 2026 +0100
@@ -68,6 +68,7 @@
Traceback (most recent call last):
...
StatementPostError: ...
+ >>> statement.click('cancel')
>>> statement.click('draft')
>>> origin, = statement.origins
>>> line = origin.lines.new()
@@ -82,6 +83,7 @@
Decimal('-2.00')
>>> line.account = expense
>>> line.description = "Bank Fees"
+ >>> statement.click('validate_statement')
>>> statement.click('post')
>>> statement.state
'posted'