From 4726d2a2ad09a9dfe73f64fb50235c5a8a38043a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Wed, 5 Nov 2008 14:06:12 +0100 Subject: [PATCH] Fix states required for accounts on account.tax for issue496 --- tax.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tax.py b/tax.py index 12ed492402..4b77afa31d 100644 --- a/tax.py +++ b/tax.py @@ -495,14 +495,14 @@ class Tax(OSV): help='Keep empty to use the default invoice account', states={ 'readonly': "type == 'none' or not company", - 'required': "company", + 'required': "type != 'none' and company", }) credit_note_account = fields.Many2One('account.account', 'Credit Note Account', domain="[('company', '=', company)]", help='Keep empty to use the default credit_note account', states={ 'readonly': "type == 'none' or not company", - 'required': "company", + 'required': "type != 'none' and company", }) invoice_base_code = fields.Many2One('account.tax.code',