changeset 33ff022b4928 in modules/analytic_account:default
details:
https://hg.tryton.org/modules/analytic_account?cmd=changeset&node=33ff022b4928
description:
Open move as balance action
This allows the user to post the move directly.
issue10494
review369161002
diffstat:
tests/scenario_analytic_account.rst | 5 +----
1 files changed, 1 insertions(+), 4 deletions(-)
diffs (15 lines):
diff -r 5d79461d2913 -r 33ff022b4928 tests/scenario_analytic_account.rst
--- a/tests/scenario_analytic_account.rst Fri May 28 09:03:50 2021 +0200
+++ b/tests/scenario_analytic_account.rst Fri Jul 02 11:49:14 2021 +0200
@@ -179,10 +179,7 @@
>>> balance_non_deferral.form.credit_account = account_pl
>>> balance_non_deferral.form.debit_account = account_pl
>>> balance_non_deferral.execute('balance')
- >>> move, = Move.find([
- ... ('state', '=', 'draft'),
- ... ('journal', '=', journal_closing.id),
- ... ])
+ >>> move, = balance_non_deferral.actions[0]
>>> move.click('post')
>>> [l for l in move.lines if l.analytic_lines]
[]