Integer, Numeric and Float allow None as value
NULL value is None and not False issue2022 review237004
This commit is contained in:
1 parent
4936372ff4
commit
bd7cbe0ecb
1 file changed
+1
-1
@@ -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'])
|
||||
|
||||
Reference in new issue
Block a user