From f654c6ff36c2fee5d645f7e7bd89af9bdfbbbd53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 12 Jun 2008 09:13:44 +0200 Subject: [PATCH] Fix domain "account not view" for issue112 --- journal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/journal.py b/journal.py index 7413d423aa..663a26af60 100644 --- a/journal.py +++ b/journal.py @@ -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'", })