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

Hello. I want to have my xpath customisations to take effect depending on the value of another boolean field. In other words, is it possible to show the default view of res.partner when a boolean is checked and the inherited and customised view when the boolean isn't checked. Every answer is appreciated, thank you.

形象
丢弃
最佳答案

Hi,

Showing or hiding the fields based on this boolean field will help ? If yes, you can easily achieve it using attrs in Odoo.


Sample: attrs="{'invisible': [('state', '!=', ('option'))]}"

Video: Conditionally Hide Fields in Odoo


Thanks

形象
丢弃
编写者 最佳答案

I don't think I can as I've manipulated the default fields in the view too. I think putting attrs would just make them invisible, not the way they were as default.

形象
丢弃
相关帖文 回复 查看 活动
1
5月 22
3459
2
8月 19
20036
1
11月 24
1596
5
7月 24
92856
1
12月 23
3022