Skip to Content
Menu
This question has been flagged
1 Reply
2501 Views

I want to show a fields.Selection field on the website, how can I achieve this?

I tried the following but it gives me an internal server error, the field itself is properly setup since it works on the forms

<span t-field="my_selection_field"/>
Avatar
Discard
Best Answer

try this one

<span t-field="obj.my_selection_field"
t-field-options='{"widget": "selection"}'/>
Avatar
Discard