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

When I want to create a new customer, customer boolean field is true by default.

In my inherited view I have the field cust_type:

<field name="cust_type" attrs="{'invisible':[('customer','!=',True)],'required':[('customer','=',True)]}"/>

Although, the customer field is True the cust_type field is invisible. When I unckeck and check again the customer field the cust _type becomes visible.

What can I do to have cust_type visible from the beginning?

Avatar
Vazgeç
Üretici

I found the problem. When I try to create a new customer the boolean field customer by default is 1 and when check it and uncheck the customer field is true.

En İyi Yanıt

Set your field value cust_type as true in default for a customer

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Haz 19
15998
0
Oca 25
1470
0
Nis 24
950
0
Kas 23
1255
0
Haz 23
2228