Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4754 Переглядів

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?

Аватар
Відмінити
Автор

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.

Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
черв. 19
16028
0
січ. 25
1501
0
квіт. 24
964
0
лист. 23
1272
0
черв. 23
2250