How can I make a field (M2o) invisible if it doesn't contain any values?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- 회계
- 재고 관리
- PoS
- 프로젝트
- MRP
신고된 질문입니다
1
회신
4928
화면
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
|
4864 | ||
|
|
4
1월 24
|
24401 | ||
|
Attrs attribute
해결 완료
|
|
2
1월 24
|
3249 | |
|
Odoo Mail Sending Limit
해결 완료
|
|
2
12월 23
|
16343 | |
|
|
0
10월 23
|
33 |