diff --git a/statement.py b/statement.py index ad8b345513..0dc9790c67 100644 --- a/statement.py +++ b/statement.py @@ -290,7 +290,7 @@ class Line(OSV): party = fields.Many2One('party.party', 'Party', on_change=['amount', 'party', 'invoice']) account = fields.Many2One('account.account', 'Account', required=True, - on_change=['account', 'invoice']) + on_change=['account', 'invoice'], domain=[('kind', '!=', 'view')]) description = fields.Char('Description') move = fields.Many2One('account.move', 'Account Move', readonly=True) invoice = fields.Many2One('account.invoice', 'Invoice',