Cédric Krier pushed to branch branch/default at Tryton / Tryton
Commits:
60e7a584 by Cédric Krier at 2023-08-06T01:04:24+02:00
Cancel cancelling move instead of delete in test scenario
Since efdb98eb55e5 cancel move is posted of the cancelled move is already
posted. So the cancelling move can no more be deleted, instead it must be
cancelled without reversal to have the same effect.
- - - - -
1 changed file:
- modules/analytic_account/tests/scenario_analytic_account.rst
Changes:
=====================================
modules/analytic_account/tests/scenario_analytic_account.rst
=====================================
@@ -117,8 +117,14 @@
>>> reconciliations = {
... l.reconciliation for l in cancel_move.lines if l.reconciliation}
>>> Reconciliation.delete(list(reconciliations))
- >>> cancel_move.reload()
- >>> cancel_move.delete()
+ >>> cancel_move = Wizard('account.move.cancel', [cancel_move])
+ >>> cancel_move.form.reversal = False
+ >>> cancel_move.execute('cancel')
+ >>> analytic_account.reload()
+ >>> analytic_account.credit
+ Decimal('42.00')
+ >>> analytic_account.debit
+ Decimal('0.00')
Cancel move::
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/60e7a584f7f773ad7f79716808360d7b1297ab05
--
View it on Heptapod:
https://foss.heptapod.net/tryton/tryton/-/commit/60e7a584f7f773ad7f79716808360d7b1297ab05
You're receiving this email because of your account on foss.heptapod.net.