Odoo Help


on_change function

Milva Joy
on 4/15/15, 7:23 AM 696 views

can anyone help to learn on_change function?

Alby Antony
On 4/15/15, 7:26 AM

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',{})}

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 4/15/15, 7:23 AM
Seen: 696 times
Last updated: 4/15/15, 7:27 AM