跳至內容
選單
此問題已被標幟
4245 瀏覽次數

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
8148
1
5月 19
2075
2
1月 19
17369
1
7月 24
7164
6
3月 24
21655