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:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
1
回复
4127
查看
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
|
4055 | ||
|
4
1月 24
|
23082 | ||
Attrs attribute
已解决
|
|
2
1月 24
|
2407 | |
|
2
12月 23
|
14645 | ||
|
0
10月 23
|
33 |