From bd7cbe0ecbfd30953a392a72e268b889b0115250 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20=C3=89vrard?= Date: Fri, 23 Mar 2012 18:38:54 +0100 Subject: [PATCH] Integer, Numeric and Float allow None as value NULL value is None and not False issue2022 review237004 --- stock.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock.py b/stock.py index c59a32665f..81769fdced 100644 --- a/stock.py +++ b/stock.py @@ -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'])