Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
4471 Visualizzazioni

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
lug 21
8627
1
mag 19
2274
2
gen 19
17651
1
lug 24
8074
6
mar 24
22076