From d3d874084ad9806e156089e886d209e620cbfe78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 7 Oct 2011 20:27:27 +0200 Subject: [PATCH] Fix typo introduced by cebf2de2baa2 issue2173 --- account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/account.py b/account.py index 09b52c980d..4ea668c2b5 100644 --- a/account.py +++ b/account.py @@ -535,7 +535,7 @@ class Account(ModelSQL, ModelView): type = fields.Many2One('account.account.type', 'Type', ondelete="RESTRICT", states={ 'invisible': Eval('kind') == 'view', - 'required': Eval('kind') == 'view', + 'required': Eval('kind') != 'view', }, domain=[ ('company', '=', Eval('company')),