How can I make a field (M2o) invisible if it doesn't contain any values?
この質問にフラグが付けられました
1
返信
5866
ビュー
Hi,
If your Many2one field is ‘partner_id’. Then you can set ‘invisible’ attribute inside ‘attrs’ like this in your xml file.
<field name="partner_id" attrs="{'invisible':[('partner_id', '=', False)]}"/>
Regards
| 関連投稿 | 返信 | ビュー | 活動 | |
|---|---|---|---|---|
|
|
2
12月 19
|
5807 | ||
|
|
1
4月 26
|
4641 | ||
|
|
4
1月 24
|
26384 | ||
|
Attrs attribute
解決済
|
|
2
1月 24
|
4792 | |
|
|
2
12月 23
|
18976 |