How can I make a field (M2o) invisible if it doesn't contain any values?
신고된 질문입니다
1
회신
5896
화면
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
|
5847 | ||
|
|
1
4월 26
|
4742 | ||
|
|
4
1월 24
|
26429 | ||
|
Attrs attribute
해결 완료
|
|
2
1월 24
|
4841 | |
|
Odoo Mail Sending Limit
해결 완료
|
|
2
12월 23
|
19051 |