can anyone help to learn on_change function?
This question has been flagged
1
Reply
2668
Views
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',{})}
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up