From e3c88ffb1e3f82980c4ffcb3c70174c1cdfd097b Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Mon, 2 Jun 2008 20:43:17 +0200 Subject: [PATCH] Fix: percentage field is now required when a tax type is percentage. --- tax.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tax.py b/tax.py index 03254a5133..f059b07c79 100644 --- a/tax.py +++ b/tax.py @@ -211,6 +211,7 @@ class Tax(OSV): percentage = fields.Numeric('Percentage', digits=(16, 8), states={ 'invisible': "type != 'percentage'", + 'required': "type == 'percentage'", }, help='In %') type = fields.Selection([ ('percentage', 'Percentage'),