コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4747 ビュー

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

アバター
破棄
関連投稿 返信 ビュー 活動
2
6月 19
16025
0
1月 25
1495
0
4月 24
962
0
11月 23
1271
0
6月 23
2248