Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
9621 Weergaven

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

Avatar
Annuleer
Beste antwoord

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)

Avatar
Annuleer
Auteur

OK, you already gave an alternative solution! Thanks!

Auteur

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.

Gerelateerde posts Antwoorden Weergaven Activiteit
1
mrt. 24
5583
2
jul. 18
8069
1
mrt. 15
12002
0
mrt. 15
4514
2
sep. 24
4412