Here is my declared field in account_voucher.py file,
'type':fields.selection([('dr','Debit'),('cr','Credit')], 'Dr/Cr')
In the view(xml file),
<field name="type" widget="radio" options='{"horizontal": 1}' />
Right now it is radio button I want to change it to checkbox