Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
2437 Vizualizări

Hi,

how can i search a specific field (mobile) in res.partner using on_change function 

Imagine profil
Abandonează
Cel mai bun răspuns

Hi Abir,

When you call an onchange function you can access any value from that model through self. For example:

@api.onchange('mobile')
def onchange_phone(self):
    # for example: get the value from the field 'mobile' in a variable named 'mobile'
mobile = self.mobile
# Set a static value on the field 'phone'. You can also use the 'mobile' variable or anything else here. self.phone = '014'

Regards,
Yenthe

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
iul. 20
21582
1
mar. 19
5256
0
dec. 18
13
0
ian. 17
2815
1
mai 16
4420