fix domain of account for issue1299

(transplanted from bf6110c39700a750c7e9dc5b364ff29a98c69e6d)
This commit is contained in:
Korbinian Preisler
2009-11-12 17:43:28 +01:00
parent d814090ef9
commit e450c0b1e5
+1 -1
View File
@@ -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',