Se rendre au contenu
Menu
Cette question a été signalée

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 

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
juil. 21
8147
1
mai 19
2075
2
janv. 19
17362
1
juil. 24
7161
6
mars 24
21655