Skip to Content
Menu
This question has been flagged
1871 Views

Guys, I'm a complete newbie, trying to do something but unfortunately it won't work.

example:

<xml>

......

<field name="name" on_change="onchange_name('name')"/>

......

</xml>

<py>

 def onchange_name(self):

print '=========================================================================================='

print '||                                                                                   Name changed                                                                     ||'

print '=========================================================================================='

</py>

What I'm expecting: if name changed print '........'

How should i do this to make it work ?

Avatar
Discard