Openerp: onChange event to create lines on account move
sometimes error '0' will be generate so we have to write a code with like this.
In case of above Example 
lis.append((0,0,res))
I have a field amount on the Journal Entries (account move form) and I need to define an onChange event which automatically inserts the lines once I fill in the amount. But I am not sure how.