Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
9694 Vizualizări

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..

Imagine profil
Abandonează
Cel mai bun răspuns

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)

Imagine profil
Abandonează
Autor

OK, you already gave an alternative solution! Thanks!

Autor

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 Răspunsuri Vizualizări Activitate
1
mar. 24
5866
2
iul. 18
8117
1
mar. 15
12068
0
mar. 15
4574
2
sept. 24
4498