From 9ddac9db52602a846125b39106cd9ff130139ee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 12 Jan 2023 22:35:56 +0100 Subject: [PATCH] Create next fiscal year using renew wizard in budget scenario Since 4510115eabf7, fiscal year from scenario are centered around the date. So using the next day after the last day of the previous fiscal year, creates an overlap. Closes #12002 --- modules/account_budget/tests/scenario_account_budget.rst | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/account_budget/tests/scenario_account_budget.rst b/modules/account_budget/tests/scenario_account_budget.rst index a95c7563eb..a9e3979ba6 100644 --- a/modules/account_budget/tests/scenario_account_budget.rst +++ b/modules/account_budget/tests/scenario_account_budget.rst @@ -35,9 +35,10 @@ Create a fiscal year:: >>> fiscalyear = create_fiscalyear(company) >>> fiscalyear.click('create_period') >>> period = fiscalyear.periods[0] - >>> next_fiscalyear = create_fiscalyear( - ... company, fiscalyear.end_date + dt.timedelta(days=1)) - >>> next_fiscalyear.click('create_period') + + >>> renew_fiscalyear = Wizard('account.fiscalyear.renew') + >>> renew_fiscalyear.execute('create_') + >>> next_fiscalyear, = renew_fiscalyear.actions[0] Create a chart of accounts::