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.
This commit is contained in:
@@ -117,8 +117,14 @@ Cancel reversal move::
|
||||
>>> 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::
|
||||
|
||||
|
||||
Reference in New Issue
Block a user