How can I make a field (M2o) invisible if it doesn't contain any values?
此问题已终结
1
回复
5897
查看
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
|
5849 | ||
|
|
1
4月 26
|
4746 | ||
|
|
4
1月 24
|
26431 | ||
|
Attrs attribute
已解决
|
|
2
1月 24
|
4841 | |
|
|
2
12月 23
|
19059 |