Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
9655 Переглядів

Is it possible to use the following?:

<field .. .. attrs="{'invisible': [('partner_id.name', '!=', False)]}">

The main question is: is the dot ('.') allowed?

We couldn't get it to work..

Аватар
Відмінити
Найкраща відповідь

Well you could not get it works, because it does not. To make such things, you need to add fields on the current model (see fields.related)

Аватар
Відмінити
Автор

OK, you already gave an alternative solution! Thanks!

Автор

Why does a +domain+ allow the dot notation? and attrs not? Do you know why? Or where it is documented?

A related field in not set till you save. What happens if you've got a boolean and depending on the setting of the boolean you will be able to see certain fields.

Related Posts Відповіді Переглядів Дія
1
бер. 24
5659
2
лип. 18
8100
1
бер. 15
12029
0
бер. 15
4531
2
вер. 24
4459