Odoo Help

1

on_change function

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

can anyone help to learn on_change function?

1
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.

Register

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)

Stats

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