Cédric Krier pushed to branch branch/default at Tryton / Tryton
Commits: d69d5dc1 by Cédric Krier at 2023-01-12T22:35:56+01:00 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 - - - - - 1 changed file: - modules/account_budget/tests/scenario_account_budget.rst Changes: ===================================== modules/account_budget/tests/scenario_account_budget.rst ===================================== @@ -35,9 +35,10 @@ >>> 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:: View it on Heptapod: https://foss.heptapod.net/tryton/tryton/-/commit/d69d5dc1edd1cb24855c771042845ddbbaaaa04e -- View it on Heptapod: https://foss.heptapod.net/tryton/tryton/-/commit/d69d5dc1edd1cb24855c771042845ddbbaaaa04e You're receiving this email because of your account on foss.heptapod.net.