Show only valid line from Open Account wizard
issue5265 review17771002
This commit is contained in:
1 parent
2223016e7e
commit
7054512e99
1 file changed
+1
@@ -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'))
|
||||
|
||||
Reference in new issue
Block a user