Integer, Numeric and Float allow None as value

NULL value is None and not False

issue2022
review237004
This commit is contained in:
Nicolas Évrard
2012-03-23 18:38:50 +01:00
parent b7e30701bb
commit 997929fed0
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -33,11 +33,11 @@ class Template(ModelSQL, ModelView):
category = fields.Many2One('product.category', 'Category',
states=STATES, depends=DEPENDS)
list_price = fields.Property(fields.Numeric('List Price', states=STATES,
digits=(16, 4), depends=DEPENDS))
digits=(16, 4), depends=DEPENDS, required=True))
list_price_uom = fields.Function(fields.Numeric('List Price',
digits=(16, 4)), 'get_price_uom')
cost_price = fields.Property(fields.Numeric('Cost Price',
states=STATES, digits=(16, 4), depends=DEPENDS))
states=STATES, digits=(16, 4), depends=DEPENDS, required=True))
cost_price_uom = fields.Function(fields.Numeric('Cost Price',
digits=(16, 4)), 'get_price_uom')
cost_price_method = fields.Property(fields.Selection([
+1 -1
View File
@@ -46,7 +46,7 @@ class Uom(ModelSQL, ModelView):
'coef (base unit) = 1 (this unit)')
rounding = fields.Float('Rounding Precision', digits=(12, 12),
required=True, states=STATES, depends=DEPENDS)
digits = fields.Integer('Display Digits')
digits = fields.Integer('Display Digits', required=True)
active = fields.Boolean('Active')
def init(self, module_name):