can anyone help to learn on_change function?
Se marcó esta pregunta
1
Responder
2684
Vistas
in the view
<field name="date_of_death" on_change="onchange_deathdate(date_of_death)"/>
python file
def onchange_deathdate(self, cr, uid, ids, date_of_death=None, context=None):
res = {'value':{}}
// any code that you want to run //
return {'value': res.get('value',{})}
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Registrarse