[REF] uom: Change constraint message
When an uom is created with a rounding of 0.0, an error message is triggered, we improved this message. TASK-60709
This commit is contained in:
committed by
Pierre Masereel
parent
d590410925
commit
23415c2b52
@@ -53,7 +53,7 @@ class UoM(models.Model):
|
||||
|
||||
_sql_constraints = [
|
||||
('factor_gt_zero', 'CHECK (factor!=0)', 'The conversion ratio for a unit of measure cannot be 0!'),
|
||||
('rounding_gt_zero', 'CHECK (rounding>0)', 'The rounding precision must be greater than 0!')
|
||||
('rounding_gt_zero', 'CHECK (rounding>0)', 'The rounding precision must be strictly positive.')
|
||||
]
|
||||
|
||||
@api.one
|
||||
|
||||
Reference in New Issue
Block a user