From a2590cc58b3698d38b287bc1dfd226699f0deafd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 16 Mar 2014 15:38:33 +0100 Subject: [PATCH] Fix scenario when switching user review4261002 --- tests/scenario_account_dunning.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/scenario_account_dunning.rst b/tests/scenario_account_dunning.rst index 53e65220d4..d3c6f6c31f 100644 --- a/tests/scenario_account_dunning.rst +++ b/tests/scenario_account_dunning.rst @@ -309,6 +309,7 @@ Create dunnings on 30 days:: Pay dunning:: >>> config.user = account_user.id + >>> MoveLine = Model.get('account.move.line') >>> move = Move() >>> move.period = period >>> move.journal = journal_cash @@ -323,7 +324,7 @@ Pay dunning:: >>> move.save() >>> reconcile2, = [l for l in move.lines if l.account == receivable] >>> reconcile_lines = Wizard('account.move.reconcile_lines', - ... [dunning.line, reconcile2]) + ... [MoveLine(dunning.line.id), reconcile2]) >>> Dunning.find([]) []