コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
2650 ビュー

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
3299
2
8月 19
19854
1
11月 24
1381
5
7月 24
92369
1
12月 23
2843