Fix domain "account not view" for issue112

This commit is contained in:
Cédric Krier
2008-06-12 09:13:44 +02:00
parent 337087b826
commit f654c6ff36
+2 -2
View File
@@ -78,13 +78,13 @@ class Journal(OSV):
domain="[('code', '=', 'account.journal')]")
credit_account = fields.Property(type='many2one',
relation='account.account', string='Default Credit Account',
domain="[('type', '!=', 'view'), ('company', '=', company)]",
domain="[('type.code', '!=', 'view'), ('company', '=', company)]",
states={
'required': "centralised or type == 'cash'",
})
debit_account = fields.Property(type='many2one',
relation='account.account', string='Default Debit Account',
domain="[('type', '!=', 'view'), ('company', '=', company)]",
domain="[('type.code', '!=', 'view'), ('company', '=', company)]",
states={
'required': "centralised or type == 'cash'",
})