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
- Project
- MRP
この質問にフラグが付けられました
1
返信
4184
ビュー
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
|
4133 | ||
|
4
1月 24
|
23195 | ||
Attrs attribute
解決済
|
|
2
1月 24
|
2494 | |
|
2
12月 23
|
14768 | ||
|
0
10月 23
|
33 |