Change select=1|2 to select=True

issue2305
review269003
This commit is contained in:
Mathias Behrle committed 2012-03-05 10:53:03 +01:00
1 parent 39ab2807b0
commit 4cf4b24949
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ from . import luhn
class Address(Model):
_name = 'party.address'
siret_nic = fields.Char('SIRET NIC', select=1, states={
siret_nic = fields.Char('SIRET NIC', select=True, states={
'readonly': ~Eval('active', True),
}, size=5, depends=['active'])
siret = fields.Function(fields.Char('SIRET'), 'get_siret')
+1 -1
View File
@@ -8,7 +8,7 @@ from . import luhn
class Party(Model):
_name = 'party.party'
siren = fields.Char('SIREN', select=1, states={
siren = fields.Char('SIREN', select=True, states={
'readonly': ~Eval('active', True),
}, size=9, depends=['active'])