Se rendre au contenu
Menu
Cette question a été signalée
1 Répondre
4804 Vues

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

Meilleure réponse

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

Avatar
Ignorer
Publications associées Réponses Vues Activité
2
juin 19
16112
0
janv. 25
1520
0
avr. 24
999
0
nov. 23
1316
0
juin 23
2289