Fix: percentage field is now required when a tax type is percentage.

This commit is contained in:
Bertrand Chenal committed 2008-06-02 20:43:17 +02:00
1 parent 1ace88d18e
commit e3c88ffb1e
1 file changed
+1
+1
View File
@@ -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'),