What is the equivalent attribute for attrs="{'invisible': [('one2many_field', '=', [])]}" , in odoo17?
I use invisible="assignment_ids == []" and invisible="assignment_ids == ''" and invisible="assignment_ids == False"
But not working.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
What is the equivalent attribute for attrs="{'invisible': [('one2many_field', '=', [])]}" , in odoo17?
I use invisible="assignment_ids == []" and invisible="assignment_ids == ''" and invisible="assignment_ids == False"
But not working.
Hi Hery,
You can refer to this:
in V16
<field name="categ_ids" attrs="{'invisible': [('categ_ids', '=', [])]}"/>
in V17
<field name="categ_ids" invisible="not categ_ids" options="{'icon': 'fa fa-tag', 'color_field': 'color'}"/>
Hope it helps
try this way:
field name="your_field_name" invisible="['|', ('assignment_ids', '=', False), ('assignment_ids', '=', [(6, 0, [])])]"/>
In Odoo 17, the equivalent attribute for attrs="{'invisible': [('one2many_field', '=', [])]}" is attrs="{'invisible': [('one2many_field', '=', [(6, 0, [])])]}". This notation (6, 0, []) represents an empty list for a one2many field.
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
3
4月 25
|
885 | ||
|
4
5月 25
|
2571 | ||
|
2
5月 25
|
5954 | ||
|
1
3月 25
|
1715 | ||
|
4
3月 25
|
4563 |