Integer, Numeric and Float allow None as value
NULL value is None and not False issue2022 review237004
This commit is contained in:
+2
-2
@@ -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([
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user