How can I make a field (M2o) invisible if it doesn't contain any values?
Це запитання позначене
1
Відповісти
5871
Переглядів
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Реєстрація| Related Posts | Відповіді | Переглядів | Дія | |
|---|---|---|---|---|
|
|
2
груд. 19
|
5814 | ||
|
|
1
квіт. 26
|
4653 | ||
|
|
4
січ. 24
|
26385 | ||
|
Attrs attribute
Вирішено
|
|
2
січ. 24
|
4796 | |
|
Odoo Mail Sending Limit
Вирішено
|
|
2
груд. 23
|
18980 |