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

i want to change field size attribute dynamically if user define 15 then digit limit should be 15 if user define 10 then field size should be 10 

any solution you suggest pls ..


what i'm doing 

```

@api.multi 

 @api.onchange('id_proof') 

 def _id_proof_onchange(self):

 return {'attrs': {'id_proof_no': [('size', '=', self.id_proof.digit_limit)]}}


```


no result 

アバター
破棄
関連投稿 返信 ビュー 活動
1
7月 21
8638
1
5月 19
2294
2
1月 19
17679
1
7月 24
8112
6
3月 24
22088