İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
9590 Görünümler

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
Vazgeç
En İyi Yanıt

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
Vazgeç
Üretici

OK, you already gave an alternative solution! Thanks!

Üretici

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.

İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Mar 24
5437
2
Tem 18
8027
1
Mar 15
11945
0
Mar 15
4503
2
Eyl 24
4356