[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:
Nirali Sapra
2018-08-09 13:30:39 +02:00
committed by Pierre Masereel
parent d590410925
commit 23415c2b52
+1 -1
View File
@@ -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