From 7054512e9921ed5478ac23e37578fcb0e4897eb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 22 Jan 2016 18:26:15 +0100 Subject: [PATCH] Show only valid line from Open Account wizard issue5265 review17771002 --- move.py | 1 + 1 file changed, 1 insertion(+) diff --git a/move.py b/move.py index 15d25030ac..905d697f43 100644 --- a/move.py +++ b/move.py @@ -1691,6 +1691,7 @@ class OpenAccount(Wizard): action['pyson_domain'] = [ ('period', 'in', [p.id for p in periods]), ('account', '=', Transaction().context['active_id']), + ('state', '=', 'valid'), ] if Transaction().context.get('posted'): action['pyson_domain'].append(('move.state', '=', 'posted'))