'validate that leave allocation is in multiples of 0.5'

def validate_new_leaves_allocated_value(self):

    if (flt(self.new_leaves_allocated) % 0.5):
        frappe.throw(_(u'Leaves    must    be    allocated    in    multiples    of    0.5'), ValueMultiplierError)
