Show only valid line from Open Account wizard

issue5265
review17771002
This commit is contained in:
Cédric Krier committed 2016-01-22 18:26:15 +01:00
1 parent 2223016e7e
commit 7054512e99
1 file changed
+1
+1
View File
@@ -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'))