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

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?

Imagine profil
Abandonează
Autor

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.

Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
iun. 19
16034
0
ian. 25
1505
0
apr. 24
967
0
nov. 23
1278
0
iun. 23
2253