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:51 +01:00
1 parent fd04a7c776
commit 0ccfc9fe72
1 file changed
+1 -1
+1 -1
View File
@@ -138,7 +138,7 @@ class PriceListLine(ModelSQL, ModelView):
price_list = fields.Many2One('product.price_list', 'Price List',
required=True, ondelete='CASCADE')
product = fields.Many2One('product.product', 'Product')
sequence = fields.Integer('Sequence')
sequence = fields.Integer('Sequence', required=True)
quantity = fields.Float('Quantity', digits=(16, Eval('unit_digits', 2)),
depends=['unit_digits'])
unit_digits = fields.Function(fields.Integer('Unit Digits',