Integer, Numeric and Float allow None as value

NULL value is None and not False

issue2022
review237004
This commit is contained in:
Nicolas Évrard committed 2012-03-23 18:38:54 +01:00
1 parent 4936372ff4
commit bd7cbe0ecb
1 file changed
+1 -1
+1 -1
View File
@@ -7,7 +7,7 @@ from trytond.pyson import Not, Eval, Bool
class Location(ModelSQL, ModelView):
"Stock Location"
_name = 'stock.location'
sequence = fields.Integer('Sequence', states={
sequence = fields.Integer('Sequence', required=True, states={
'readonly': Not(Bool(Eval('active'))),
},
depends=['active'])