How can I make a field (M2o) invisible if it doesn't contain any values?
此問題已被標幟
1
回覆
5870
瀏覽次數
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
|
5814 | ||
|
|
1
4月 26
|
4653 | ||
|
|
4
1月 24
|
26385 | ||
|
Attrs attribute
已解決
|
|
2
1月 24
|
4796 | |
|
|
2
12月 23
|
18980 |