Need to add widget radio to a field in one2many line in Odoo 12 community, My code
<page string="Questions">
<field name="evaluation_line_ids">
<tree editable="bottom">
<field name="training_id" invisible="1"/>
<field name="name"/>
<field name="ranking" widget="radio" options="{'horizontal': true}"/>
</tree>
</field>
</page>
It shows the same as the selection field in Odoo, not as a radio button