How to force user to enter value > 0 for Field Type Float?


I have created a frappe.ui.Dialog in which I have added a field of Type Float and made this field Mandatory.

   label: __('Wire Size'),
   fieldname: 'wire_size',
   fieldtype: 'Float',
   precision: 2,
   reqd: 1

If a user enters the value 0.00 the Dialog accepts is as valid value. What I was expecting is that the value should be accepted only if it is greater then Zero and not Zero.

Have I to write a validation script for this field or is there a better way to force a user to enter a value greater then 0?


Yogi Yang