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

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
Annuleer
Auteur

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.

Beste antwoord

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
jun. 19
16074
0
jan. 25
1510
0
apr. 24
971
0
nov. 23
1282
0
jun. 23
2263