Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4655 Widoki

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?

Awatar
Odrzuć
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.

Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
cze 19
15830
0
sty 25
1335
0
kwi 24
856
0
lis 23
1119
0
cze 23
2094