From b540f5bbb840929635d562266bdb173583d44d7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 11 Feb 2026 11:02:34 +0100 Subject: [PATCH] Cancel before reset to draft and validate before posting statement in test scenario --- modules/account_statement/tests/scenario_statement_origin.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/account_statement/tests/scenario_statement_origin.rst b/modules/account_statement/tests/scenario_statement_origin.rst index 1d509de75d..1b31321a37 100644 --- a/modules/account_statement/tests/scenario_statement_origin.rst +++ b/modules/account_statement/tests/scenario_statement_origin.rst @@ -68,6 +68,7 @@ Statement can not be posted until all origins are finished:: Traceback (most recent call last): ... StatementPostError: ... + >>> statement.click('cancel') >>> statement.click('draft') >>> origin, = statement.origins >>> line = origin.lines.new() @@ -82,6 +83,7 @@ Statement can not be posted until all origins are finished:: Decimal('-2.00') >>> line.account = expense >>> line.description = "Bank Fees" + >>> statement.click('validate_statement') >>> statement.click('post') >>> statement.state 'posted'