Hello i make selection field
registered_by_police = fields.Selection(selection=BOOLEAN_SELECTOR, string='Registered by')
BOOLEAN_SELECTOR = (
(False, _('No')),
(True, _('Yes')),
)
and call in view
<field name="registered_by_police" widget="radio" string="Registered by Police?"/>
if i choose no all is ok, it show no in view and i am happy. But when i choose Yes it show free space and don't save my choose. How can i solve this problem. and maybe i can make boolean field and make similar display
I need to use boolean values because before this field was boolean and now the client wanted a different type of visual and I tried to make the old records work too, maybe there are some other solutions to the problem