跳至內容
選單
此問題已被標幟
2 回覆
2822 瀏覽次數

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
3497
2
8月 19
20082
1
11月 24
1662
5
7月 24
92958
1
12月 23
3063