finally i found the answer, we can use read method to do it
def read(self, cr, uid, ids, fields=None, context=None, load='_classic_read'):
res = super(inspection, self).read(cr, uid, ids, fields, context=context, load=load)
if len(res) == 1:
cr.execute('select id from inspection_category')
categories = [int(c[0]) for c in cr.fetchall()]
for ce in categories:
res[0]['category_id_'+str(ce)] = True
return res