I try to hide the custom field "voornaam" when a company is selected in the contacts form view and the stadard Odoo field website when a individual is selected. What do I do wrong ?

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I try to hide the custom field "voornaam" when a company is selected in the contacts form view and the stadard Odoo field website when a individual is selected. What do I do wrong ?

Hi,
Which version are you using ? If v16 or below, change modifiers to attrs and if v17 change it as:
invisible="not is_company"
Thanks
It worked in V17, has this changed in V18 ?
| 相关帖文 | 回复 | 查看 | 活动 | |
|---|---|---|---|---|
|
2
11月 25
|
211 | |||
|
1
11月 25
|
202 | |||
|
1
11月 25
|
2231 | |||
|
1
11月 25
|
3457 | |||
|
1
11月 25
|
4051 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.