跳至内容
菜单
此问题已终结
2 回复
577 查看

how to show and hide a field based on another radio button value

形象
丢弃
最佳答案

Hi,

We can use the 'invisible' attribute inside the XML code,

for example,


<field name="desired_field" string="Next Number" invisible="radio_field"/>


Replace the desired_field and radio_field based on your model.


For more details, refer to the slide:

https://www.cybrosys.com/slides/how-to-make-a-field-invisible-in-odoo-17

Hope it helps

形象
丢弃
最佳答案

Hi Rachel, where are you trying to execute this conditional field? Website form? One of the core Odoo apps? More context would be helpful.

形象
丢弃